summaryrefslogtreecommitdiff
path: root/include/svx/flagsdef.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-05-14 15:23:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-18 10:13:57 +0000
commit21a68e1745dec1f4c4fd5b90d3a58000ed11c324 (patch)
tree2d2d1eac6a3394db8b066fdb142b32245667af04 /include/svx/flagsdef.hxx
parent2c8fe2e737b84ecd3dbac36a4fe6bd061bbd3bae (diff)
convert TAB to scoped enum
and rename the SID constant to something more meaningful Change-Id: Ic07888936df3d537158fd2fb671b0df11350d676 Reviewed-on: https://gerrit.libreoffice.org/24986 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/svx/flagsdef.hxx')
-rw-r--r--include/svx/flagsdef.hxx29
1 files changed, 17 insertions, 12 deletions
diff --git a/include/svx/flagsdef.hxx b/include/svx/flagsdef.hxx
index 234623dde9d6..eedea33e8323 100644
--- a/include/svx/flagsdef.hxx
+++ b/include/svx/flagsdef.hxx
@@ -94,18 +94,23 @@ enum SvxModeType
#define MM50 283 //from original svx/inc/paragrph.hxx
//--------------from original svx/inc/tabstpge.hxx
-#define TABTYPE_LEFT 0x0001
-#define TABTYPE_RIGHT 0x0002
-#define TABTYPE_CENTER 0x0004
-#define TABTYPE_DEZIMAL 0x0008
-#define TABTYPE_ALL 0x000F
-
-#define TABFILL_NONE 0x0010
-#define TABFILL_POINT 0x0020
-#define TABFILL_DASHLINE 0x0040
-#define TABFILL_SOLIDLINE 0x0080
-#define TABFILL_SPECIAL 0x0100
-#define TABFILL_ALL 0x01F0
+enum class TabulatorDisableFlags {
+ TypeLeft = 0x0001,
+ TypeRight = 0x0002,
+ TypeCenter = 0x0004,
+ TypeDecimal = 0x0008,
+ TypeMask = 0x000F,
+
+ FillNone = 0x0010,
+ FillPoint = 0x0020,
+ FillDashLine = 0x0040,
+ FillSolidLine = 0x0080,
+ FillSpecial = 0x0100,
+ FillMask = 0x01F0
+};
+namespace o3tl {
+ template<> struct typed_flags<TabulatorDisableFlags> : is_typed_flags<TabulatorDisableFlags, 0x1ff> {};
+}
#endif