diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-22 14:29:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-29 10:41:38 +0200 |
commit | 0779e5a6a7bd4388638c337718ff3f934b64bd3a (patch) | |
tree | c409b1835bf82d351eb0ac1d0bba43cb45d8da83 /include | |
parent | 9fb3b992df26283e21e89bb2121b3cadd4b22c4d (diff) |
convert CS_ constants to scoped enum
Change-Id: I7fb03a04f086c1952a6f186a00fffad0b6c1236b
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/dlgctrl.hxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx index 788873344b6e..076f4c16ba25 100644 --- a/include/svx/dlgctrl.hxx +++ b/include/svx/dlgctrl.hxx @@ -25,6 +25,7 @@ #include <svx/rectenum.hxx> #include <vcl/graph.hxx> #include <svx/xtable.hxx> +#include <o3tl/typed_flags_set.hxx> class XOBitmap; class XOutdevItemPool; @@ -54,9 +55,16 @@ public: |* an object \************************************************************************/ -typedef sal_uInt16 CTL_STATE; -#define CS_NOHORZ 1 // no horizontal input information is used -#define CS_NOVERT 2 // no vertikal input information is used +enum class CTL_STATE +{ + NONE = 0, + NOHORZ = 1, // no horizontal input information is used + NOVERT = 2, // no vertical input information is used +}; +namespace o3tl +{ + template<> struct typed_flags<CTL_STATE> : is_typed_flags<CTL_STATE, 0x03> {}; +} class SvxRectCtlAccessibleContext; class SvxPixelCtlAccessible; |