LibreOffice Module svx (master)
1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
svx
flagsdef.hxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
5
* This Source Code Form is subject to the terms of the Mozilla Public
6
* License, v. 2.0. If a copy of the MPL was not distributed with this
7
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
11
* Licensed to the Apache Software Foundation (ASF) under one or more
12
* contributor license agreements. See the NOTICE file distributed
13
* with this work for additional information regarding copyright
14
* ownership. The ASF licenses this file to you under the Apache
15
* License, Version 2.0 (the "License"); you may not use this file
16
* except in compliance with the License. You may obtain a copy of
17
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
18
*/
19
#ifndef INCLUDED_SVX_FLAGSDEF_HXX
20
#define INCLUDED_SVX_FLAGSDEF_HXX
21
22
#include <
o3tl/typed_flags_set.hxx
>
23
#include <
o3tl/enumarray.hxx
>
24
25
// Border-Modes for SvxBorderTabPage
26
enum class
SwBorderModes
27
{
28
NONE
= 0x00,
29
PARA
= 0x01,
30
TABLE
= 0x02,
31
FRAME
= 0x04,
32
};
33
34
namespace
o3tl
35
{
36
template
<>
struct
typed_flags
<
SwBorderModes
> :
is_typed_flags
<SwBorderModes, 0x07> {};
37
}
38
39
// flags for SvxBackgroundTabPage
40
enum class
SvxBackgroundTabFlags
41
{
42
NONE
= 0x00,
43
SHOW_SELECTOR
= 0x01,
44
SHOW_TBLCTL
= 0x08,
45
SHOW_HIGHLIGHTING
= 0x10,
46
SHOW_CHAR_BKGCOLOR
= 0x20,
47
};
48
namespace
o3tl
49
{
50
template
<>
struct
typed_flags
<
SvxBackgroundTabFlags
> :
is_typed_flags
<SvxBackgroundTabFlags, 0x39> {};
51
}
52
53
// flags for SvxBorderTabPage
54
#define SVX_HIDESHADOWCTL 0x01
55
56
#define DISABLE_CASEMAP (sal_uInt16(0x0001))
57
#define DISABLE_HIDE_LANGUAGE (sal_uInt16(0x0020))
58
59
// flags for SvxCharBasePage's child class
60
#define SVX_PREVIEW_CHARACTER 0x01
61
// flags for SvxCharNamePage
62
#define SVX_RELATIVE_MODE 0x02
63
// flags for SvxCharEffectsPage
64
#define SVX_ENABLE_CHAR_TRANSPARENCY 0x08
65
66
67
// Default values for Number Format Category List and Preview
68
enum class
SvxNumValCategory
69
{
70
Standard
= 0,
71
Percent
,
72
Currency
,
73
Date
,
74
Time
,
75
Scientific
,
76
Fraction
,
77
Boolean
,
78
NoValue
,
79
LAST
= NoValue
80
};
81
const
o3tl::enumarray<SvxNumValCategory, double>
fSvxNumValConst
= {
82
-1234.56789012345678,
// SvxNumValCategory::Standard
83
-0.1295,
// SvxNumValCategory::Percent
84
-1234.0,
// SvxNumValCategory::Currency
85
36525.5678935185,
// SvxNumValCategory::Date
86
36525.5678935185,
// SvxNumValCategory::Time
87
12345.67889,
// SvxNumValCategory::Scientific
88
123.456,
// SvxNumValCategory::Fraction
89
1.0,
// SvxNumValCategory::Boolean
90
0.0
// SvxNumValCategory::NoValue
91
};
92
93
enum
SvxModeType
94
{
95
SVX_PAGE_MODE_STANDARD
,
96
SVX_PAGE_MODE_CENTER
,
97
SVX_PAGE_MODE_PRESENTATION
98
};
99
100
// 1/2 cm in TWIPS
101
// Is also used for minimum size of LayFrms of any kind
102
#define MM50 283 //from original svx/inc/paragrph.hxx
103
104
enum class
TabulatorDisableFlags
{
105
TypeLeft
= 0x0001,
106
TypeRight
= 0x0002,
107
TypeCenter
= 0x0004,
108
TypeDecimal
= 0x0008,
109
TypeMask
= 0x000F,
110
111
FillNone
= 0x0010,
112
FillPoint
= 0x0020,
113
FillDashLine
= 0x0040,
114
FillSolidLine
= 0x0080,
115
FillSpecial
= 0x0100,
116
FillMask
= 0x01F0
117
};
118
namespace
o3tl
{
119
template
<>
struct
typed_flags
<
TabulatorDisableFlags
> :
is_typed_flags
<TabulatorDisableFlags, 0x1ff> {};
120
}
121
122
#endif
123
124
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
TabulatorDisableFlags::TypeDecimal
SVX_PAGE_MODE_PRESENTATION
Definition:
flagsdef.hxx:97
o3tl::enumarray
TabulatorDisableFlags
TabulatorDisableFlags
Definition:
flagsdef.hxx:104
SvxNumValCategory::Fraction
SvxBackgroundTabFlags::SHOW_SELECTOR
TabulatorDisableFlags::TypeLeft
SwBorderModes::TABLE
SvxNumValCategory::Standard
FormulaError::NoValue
enumarray.hxx
SwBorderModes::NONE
SvxNumValCategory::Currency
SvxBackgroundTabFlags
SvxBackgroundTabFlags
Definition:
flagsdef.hxx:40
SwBorderModes::FRAME
SvxBackgroundTabFlags::SHOW_CHAR_BKGCOLOR
TabulatorDisableFlags::TypeMask
typed_flags_set.hxx
TabulatorDisableFlags::FillMask
SvxNumValCategory::Boolean
SvxNumValCategory::Date
SvxBackgroundTabFlags::SHOW_HIGHLIGHTING
fSvxNumValConst
const o3tl::enumarray< SvxNumValCategory, double > fSvxNumValConst
Definition:
flagsdef.hxx:81
SvxBackgroundTabFlags::SHOW_TBLCTL
o3tl::is_typed_flags
TabulatorDisableFlags::FillSpecial
SVX_PAGE_MODE_STANDARD
Definition:
flagsdef.hxx:95
SvxModeType
SvxModeType
Definition:
flagsdef.hxx:93
o3tl
SvxNumValCategory::Time
SvxBackgroundTabFlags::NONE
TabulatorDisableFlags::FillDashLine
TextPropMap::PARA
TabulatorDisableFlags::TypeCenter
SvxNumValCategory::LAST
o3tl::typed_flags
TabulatorDisableFlags::TypeRight
TabulatorDisableFlags::FillPoint
SvxNumValCategory::Scientific
SwBorderModes
SwBorderModes
Definition:
flagsdef.hxx:26
SvxNumValCategory::Percent
SvxNumValCategory
SvxNumValCategory
Definition:
flagsdef.hxx:68
SVX_PAGE_MODE_CENTER
Definition:
flagsdef.hxx:96
TabulatorDisableFlags::FillNone
TabulatorDisableFlags::FillSolidLine
Generated on Thu Jan 14 2021 06:08:35 for LibreOffice Module svx (master) by
1.8.10