LibreOffice Module svx (master)
1
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
#include <
o3tl/unit_conversion.hxx
>
25
#include <
tools/long.hxx
>
26
27
// Border-Modes for SvxBorderTabPage
28
enum class
SwBorderModes
29
{
30
NONE
= 0x00,
31
PARA
= 0x01,
32
TABLE
= 0x02,
33
FRAME
= 0x04,
34
};
35
36
namespace
o3tl
37
{
38
template
<>
struct
typed_flags
<
SwBorderModes
> :
is_typed_flags
<SwBorderModes, 0x07> {};
39
}
40
41
// flags for SvxBackgroundTabPage
42
enum class
SvxBackgroundTabFlags
43
{
44
NONE
= 0x00,
45
SHOW_SELECTOR
= 0x01,
46
SHOW_TBLCTL
= 0x08,
47
SHOW_HIGHLIGHTING
= 0x10,
48
SHOW_CHAR_BKGCOLOR
= 0x20,
49
};
50
namespace
o3tl
51
{
52
template
<>
struct
typed_flags
<
SvxBackgroundTabFlags
> :
is_typed_flags
<SvxBackgroundTabFlags, 0x39> {};
53
}
54
55
// flags for SvxBorderTabPage
56
#define SVX_HIDESHADOWCTL 0x01
57
58
#define DISABLE_CASEMAP (sal_uInt16(0x0001))
59
#define DISABLE_HIDE_LANGUAGE (sal_uInt16(0x0020))
60
61
// flags for SvxCharBasePage's child class
62
#define SVX_PREVIEW_CHARACTER 0x01
63
// flags for SvxCharNamePage
64
#define SVX_RELATIVE_MODE 0x02
65
// flags for SvxCharEffectsPage
66
#define SVX_ENABLE_CHAR_TRANSPARENCY 0x08
67
68
69
// Default values for Number Format Category List and Preview
70
enum class
SvxNumValCategory
71
{
72
Standard
= 0,
73
Percent
,
74
Currency
,
75
Date
,
76
Time
,
77
Scientific
,
78
Fraction
,
79
Boolean
,
80
NoValue
,
81
LAST
=
NoValue
82
};
83
const
o3tl::enumarray<SvxNumValCategory, double>
fSvxNumValConst
= {
84
-1234.56789012345678,
// SvxNumValCategory::Standard
85
-0.1295,
// SvxNumValCategory::Percent
86
-1234.0,
// SvxNumValCategory::Currency
87
36525.5678935185,
// SvxNumValCategory::Date
88
36525.5678935185,
// SvxNumValCategory::Time
89
12345.67889,
// SvxNumValCategory::Scientific
90
123.456,
// SvxNumValCategory::Fraction
91
1.0,
// SvxNumValCategory::Boolean
92
0.0
// SvxNumValCategory::NoValue
93
};
94
95
enum
SvxModeType
96
{
97
SVX_PAGE_MODE_STANDARD
,
98
SVX_PAGE_MODE_CENTER
,
99
SVX_PAGE_MODE_PRESENTATION
100
};
101
102
// 1/2 cm in TWIPS
103
// Is also used for minimum size of LayFrms of any kind
104
constexpr
tools::Long
MM50
=
o3tl::convert
(
tools::Long
(5),
o3tl::Length::mm
,
o3tl::Length::twip
);
105
106
enum class
TabulatorDisableFlags
{
107
TypeLeft
= 0x0001,
108
TypeRight
= 0x0002,
109
TypeCenter
= 0x0004,
110
TypeDecimal
= 0x0008,
111
TypeMask
= 0x000F,
112
113
FillNone
= 0x0010,
114
FillPoint
= 0x0020,
115
FillDashLine
= 0x0040,
116
FillSolidLine
= 0x0080,
117
FillSpecial
= 0x0100,
118
FillMask
= 0x01F0
119
};
120
namespace
o3tl
{
121
template
<>
struct
typed_flags
<
TabulatorDisableFlags
> :
is_typed_flags
<TabulatorDisableFlags, 0x1ff> {};
122
}
123
124
#endif
125
126
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Date
Fraction
o3tl::enumarray
enumarray.hxx
FormulaError::NoValue
@ NoValue
ScRotateDir::Standard
@ Standard
SvxBackgroundTabFlags
SvxBackgroundTabFlags
Definition:
flagsdef.hxx:43
SvxBackgroundTabFlags::SHOW_SELECTOR
@ SHOW_SELECTOR
SvxBackgroundTabFlags::SHOW_HIGHLIGHTING
@ SHOW_HIGHLIGHTING
SvxBackgroundTabFlags::SHOW_TBLCTL
@ SHOW_TBLCTL
SvxBackgroundTabFlags::SHOW_CHAR_BKGCOLOR
@ SHOW_CHAR_BKGCOLOR
SvxNumValCategory
SvxNumValCategory
Definition:
flagsdef.hxx:71
SvxNumValCategory::Scientific
@ Scientific
fSvxNumValConst
const o3tl::enumarray< SvxNumValCategory, double > fSvxNumValConst
Definition:
flagsdef.hxx:83
MM50
constexpr tools::Long MM50
Definition:
flagsdef.hxx:104
SwBorderModes
SwBorderModes
Definition:
flagsdef.hxx:29
SvxModeType
SvxModeType
Definition:
flagsdef.hxx:96
SVX_PAGE_MODE_STANDARD
@ SVX_PAGE_MODE_STANDARD
Definition:
flagsdef.hxx:97
SVX_PAGE_MODE_PRESENTATION
@ SVX_PAGE_MODE_PRESENTATION
Definition:
flagsdef.hxx:99
SVX_PAGE_MODE_CENTER
@ SVX_PAGE_MODE_CENTER
Definition:
flagsdef.hxx:98
TabulatorDisableFlags
TabulatorDisableFlags
Definition:
flagsdef.hxx:106
TabulatorDisableFlags::FillDashLine
@ FillDashLine
TabulatorDisableFlags::FillSpecial
@ FillSpecial
TabulatorDisableFlags::TypeCenter
@ TypeCenter
TabulatorDisableFlags::TypeRight
@ TypeRight
TabulatorDisableFlags::FillSolidLine
@ FillSolidLine
TabulatorDisableFlags::FillPoint
@ FillPoint
TabulatorDisableFlags::TypeMask
@ TypeMask
TabulatorDisableFlags::TypeLeft
@ TypeLeft
TabulatorDisableFlags::FillNone
@ FillNone
TabulatorDisableFlags::TypeDecimal
@ TypeDecimal
TabulatorDisableFlags::FillMask
@ FillMask
SwFieldIds::Time
@ Time
SwFieldIds::LAST
@ LAST
long.hxx
MathMLLengthUnit::Percent
@ Percent
NONE
NONE
o3tl
o3tl::Length::twip
@ twip
o3tl::Length::mm
@ mm
o3tl::convert
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
tools::Long
long Long
FRAME
FRAME
ConfigurationHints::Currency
@ Currency
o3tl::is_typed_flags
o3tl::typed_flags
TextPropMap::PARA
@ PARA
typed_flags_set.hxx
ScMatValType::Boolean
@ Boolean
unit_conversion.hxx
TABLE
TABLE
Generated on Sun Jul 30 2023 04:27:32 for LibreOffice Module svx (master) by
1.9.3