1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
24 // defines ---------------------------------------------------------------
26 // copy from border.hxx
27 // Border-Modes for SvxBorderTabPage
28 enum class SwBorderModes
37 template<> struct typed_flags
<SwBorderModes
> : is_typed_flags
<SwBorderModes
, 0x07> {};
40 // flags for SvxBackgroundTabPage
41 enum class SvxBackgroundTabFlags
46 ENABLE_TRANSPARENCY
= 0x04,
48 SHOW_HIGHLIGHTING
= 0x10,
52 template<> struct typed_flags
<SvxBackgroundTabFlags
> : is_typed_flags
<SvxBackgroundTabFlags
, 0x0f> {};
55 // flags for SvxBorderTabPage
56 #define SVX_HIDESHADOWCTL 0x01
58 // copy from chardlg.hxx
59 #define DISABLE_CASEMAP ((sal_uInt16)0x0001)
60 #define DISABLE_WORDLINE ((sal_uInt16)0x0002)
61 #define DISABLE_BLINK ((sal_uInt16)0x0004)
62 #define DISABLE_UNDERLINE_COLOR ((sal_uInt16)0x0008)
64 #define DISABLE_LANGUAGE ((sal_uInt16)0x0010)
65 #define DISABLE_HIDE_LANGUAGE ((sal_uInt16)0x0020)
67 // flags for SvxCharBasePage's child class
68 #define SVX_PREVIEW_CHARACTER 0x01
69 // flags for SvxCharNamePage
70 #define SVX_RELATIVE_MODE 0x02
71 // flags for SvxCharEffectsPage
72 #define SVX_ENABLE_FLASH 0x04
75 // copy from numfmt.hxx
76 #define SVX_NUMVAL_STANDARD -1234.12345678901234
77 #define SVX_NUMVAL_CURRENCY -1234
78 #define SVX_NUMVAL_PERCENT -0.1295
79 #define SVX_NUMVAL_TIME 36525.5678935185
80 #define SVX_NUMVAL_DATE 36525.5678935185
81 #define SVX_NUMVAL_BOOLEAN 1
84 // enum ------------------------------------------------------------------
88 SVX_PAGE_MODE_STANDARD
,
90 SVX_PAGE_MODE_PRESENTATION
92 // define ----------------------------------------------------------------
95 // Is also used for minimum size of LayFrms of any kind
96 #define MM50 283 //from original svx/inc/paragrph.hxx
98 //--------------from original svx/inc/tabstpge.hxx
99 #define TABTYPE_LEFT 0x0001
100 #define TABTYPE_RIGHT 0x0002
101 #define TABTYPE_CENTER 0x0004
102 #define TABTYPE_DEZIMAL 0x0008
103 #define TABTYPE_ALL 0x000F
105 #define TABFILL_NONE 0x0010
106 #define TABFILL_POINT 0x0020
107 #define TABFILL_DASHLINE 0x0040
108 #define TABFILL_SOLIDLINE 0x0080
109 #define TABFILL_SPECIAL 0x0100
110 #define TABFILL_ALL 0x01F0
116 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */