diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-22 14:59:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-29 10:41:38 +0200 |
commit | 83ab72efe7dbb9047e89ba2775228b2d81f96bc9 (patch) | |
tree | cfa3f2a661775d285b57369b63ee369a3aa7c881 /include/svx/flagsdef.hxx | |
parent | 0779e5a6a7bd4388638c337718ff3f934b64bd3a (diff) |
convert SW_BORDER_MODE constants to scoped enum
Change-Id: I7b2e03a5cacf5d2a706ba8e2d3b276fcb3f7e88b
Diffstat (limited to 'include/svx/flagsdef.hxx')
-rw-r--r-- | include/svx/flagsdef.hxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/svx/flagsdef.hxx b/include/svx/flagsdef.hxx index a3e637bea94f..86a8f3480364 100644 --- a/include/svx/flagsdef.hxx +++ b/include/svx/flagsdef.hxx @@ -19,13 +19,23 @@ #ifndef INCLUDED_SVX_FLAGSDEF_HXX #define INCLUDED_SVX_FLAGSDEF_HXX +#include <o3tl/typed_flags_set.hxx> + // defines --------------------------------------------------------------- // copy from border.hxx // Border-Modes for SvxBorderTabPage -#define SW_BORDER_MODE_PARA 0x01 -#define SW_BORDER_MODE_TABLE 0x02 -#define SW_BORDER_MODE_FRAME 0x04 +enum class SwBorderModes +{ + NONE = 0x00, + PARA = 0x01, + TABLE = 0x02, + FRAME = 0x04, +}; +namespace o3tl +{ + template<> struct typed_flags<SwBorderModes> : is_typed_flags<SwBorderModes, 0x07> {}; +} // flags for SvxBackgroundTabPage #define SVX_SHOW_SELECTOR 0x01 |