diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-22 15:14:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-29 10:41:38 +0200 |
commit | ab1b535fb049f4b6354561e60eb027b4cc691a6c (patch) | |
tree | 291a885c0b57cde97bbb8daafba1ca70ca07cce6 /include | |
parent | 83ab72efe7dbb9047e89ba2775228b2d81f96bc9 (diff) |
convert SVX_ flags to scoped enum
Change-Id: I6ca73a459597f06fc301a12d6556775a77a7c4c7
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/flagsdef.hxx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/include/svx/flagsdef.hxx b/include/svx/flagsdef.hxx index 86a8f3480364..4a12a87fc11d 100644 --- a/include/svx/flagsdef.hxx +++ b/include/svx/flagsdef.hxx @@ -38,10 +38,18 @@ namespace o3tl } // flags for SvxBackgroundTabPage -#define SVX_SHOW_SELECTOR 0x01 -#define SVX_SHOW_PARACTL 0x02 -#define SVX_ENABLE_TRANSPARENCY 0x04 -#define SVX_SHOW_TBLCTL 0x08 +enum class SvxBackgroundTabFlags +{ + NONE = 0x00, + SHOW_SELECTOR = 0x01, + SHOW_PARACTL = 0x02, + ENABLE_TRANSPARENCY = 0x04, + SHOW_TBLCTL = 0x08, +}; +namespace o3tl +{ + template<> struct typed_flags<SvxBackgroundTabFlags> : is_typed_flags<SvxBackgroundTabFlags, 0x0f> {}; +} // flags for SvxBorderTabPage #define SVX_HIDESHADOWCTL 0x01 |