Bump version to 6.4-15
[LibreOffice.git] / include / svx / flagsdef.hxx
blob750e5c9326fcb6e37e0585365dc8dda22df7c296
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SVX_FLAGSDEF_HXX
20 #define INCLUDED_SVX_FLAGSDEF_HXX
22 #include <o3tl/typed_flags_set.hxx>
23 #include <o3tl/enumarray.hxx>
25 // Border-Modes for SvxBorderTabPage
26 enum class SwBorderModes
28 NONE = 0x00,
29 PARA = 0x01,
30 TABLE = 0x02,
31 FRAME = 0x04,
34 namespace o3tl
36 template<> struct typed_flags<SwBorderModes> : is_typed_flags<SwBorderModes, 0x07> {};
39 // flags for SvxBackgroundTabPage
40 enum class SvxBackgroundTabFlags
42 NONE = 0x00,
43 SHOW_SELECTOR = 0x01,
44 SHOW_TBLCTL = 0x08,
45 SHOW_HIGHLIGHTING = 0x10,
46 SHOW_CHAR_BKGCOLOR = 0x20,
48 namespace o3tl
50 template<> struct typed_flags<SvxBackgroundTabFlags> : is_typed_flags<SvxBackgroundTabFlags, 0x39> {};
53 // flags for SvxBorderTabPage
54 #define SVX_HIDESHADOWCTL 0x01
56 #define DISABLE_CASEMAP (sal_uInt16(0x0001))
57 #define DISABLE_WORDLINE (sal_uInt16(0x0002))
58 #define DISABLE_BLINK (sal_uInt16(0x0004))
59 #define DISABLE_UNDERLINE_COLOR (sal_uInt16(0x0008))
61 #define DISABLE_LANGUAGE (sal_uInt16(0x0010))
62 #define DISABLE_HIDE_LANGUAGE (sal_uInt16(0x0020))
64 // flags for SvxCharBasePage's child class
65 #define SVX_PREVIEW_CHARACTER 0x01
66 // flags for SvxCharNamePage
67 #define SVX_RELATIVE_MODE 0x02
68 // flags for SvxCharEffectsPage
69 #define SVX_ENABLE_FLASH 0x04
70 #define SVX_ENABLE_CHAR_TRANSPARENCY 0x08
73 // Default values for Number Format Category List and Preview
74 enum class SvxNumValCategory
76 Standard = 0,
77 Percent,
78 Currency,
79 Date,
80 Time,
81 Scientific,
82 Fraction,
83 Boolean,
84 NoValue,
85 LAST = NoValue
87 const o3tl::enumarray<SvxNumValCategory, double> fSvxNumValConst = {
88 -1234.56789012345678, // SvxNumValCategory::Standard
89 -0.1295, // SvxNumValCategory::Percent
90 -1234.0, // SvxNumValCategory::Currency
91 36525.5678935185, // SvxNumValCategory::Date
92 36525.5678935185, // SvxNumValCategory::Time
93 12345.67889, // SvxNumValCategory::Scientific
94 123.456, // SvxNumValCategory::Fraction
95 1.0, // SvxNumValCategory::Boolean
96 0.0 // SvxNumValCategory::NoValue
99 enum SvxModeType
101 SVX_PAGE_MODE_STANDARD,
102 SVX_PAGE_MODE_CENTER,
103 SVX_PAGE_MODE_PRESENTATION
106 // 1/2 cm in TWIPS
107 // Is also used for minimum size of LayFrms of any kind
108 #define MM50 283 //from original svx/inc/paragrph.hxx
110 enum class TabulatorDisableFlags {
111 TypeLeft = 0x0001,
112 TypeRight = 0x0002,
113 TypeCenter = 0x0004,
114 TypeDecimal = 0x0008,
115 TypeMask = 0x000F,
117 FillNone = 0x0010,
118 FillPoint = 0x0020,
119 FillDashLine = 0x0040,
120 FillSolidLine = 0x0080,
121 FillSpecial = 0x0100,
122 FillMask = 0x01F0
124 namespace o3tl {
125 template<> struct typed_flags<TabulatorDisableFlags> : is_typed_flags<TabulatorDisableFlags, 0x1ff> {};
128 #endif
130 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */