From 0779e5a6a7bd4388638c337718ff3f934b64bd3a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 22 Apr 2015 14:29:44 +0200 Subject: convert CS_ constants to scoped enum Change-Id: I7fb03a04f086c1952a6f186a00fffad0b6c1236b --- include/svx/dlgctrl.hxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'include') 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 #include #include +#include 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 : is_typed_flags {}; +} class SvxRectCtlAccessibleContext; class SvxPixelCtlAccessible; -- cgit