diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-20 09:10:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-21 09:06:40 +0200 |
commit | 182fc4f184b77330fdbb32096b64f5fbc5b5f874 (patch) | |
tree | 1ba73fb9188796ed43976fe32f291f9c64fb1d5b /include/rsc/rsc-vcl-shared-types.hxx | |
parent | 43327878920f424f8bac1114bee51c54609796c5 (diff) |
fdo#84938: replace WINDOW_BORDER constants with enum
Change-Id: I91ca8e09971aee26f16257a4fd01125cfb2ebcdb
Diffstat (limited to 'include/rsc/rsc-vcl-shared-types.hxx')
-rw-r--r-- | include/rsc/rsc-vcl-shared-types.hxx | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/include/rsc/rsc-vcl-shared-types.hxx b/include/rsc/rsc-vcl-shared-types.hxx index 1da829d46c15..66c12919ada9 100644 --- a/include/rsc/rsc-vcl-shared-types.hxx +++ b/include/rsc/rsc-vcl-shared-types.hxx @@ -118,14 +118,20 @@ enum class SymbolType : sal_uInt16 // Border-Styles fuer SetBorder() -typedef sal_uInt16 WindowBorderStyle; - -#define WINDOW_BORDER_NORMAL ((WindowBorderStyle)0x0001) -#define WINDOW_BORDER_MONO ((WindowBorderStyle)0x0002) -#define WINDOW_BORDER_MENU ((WindowBorderStyle)0x0010) -#define WINDOW_BORDER_NWF ((WindowBorderStyle)0x0020) -#define WINDOW_BORDER_NOBORDER ((WindowBorderStyle)0x1000) -#define WINDOW_BORDER_REMOVEBORDER ((WindowBorderStyle)0x2000) +enum class WindowBorderStyle : sal_uInt16 +{ + NONE = 0x0000, + NORMAL = 0x0001, + MONO = 0x0002, + MENU = 0x0010, + NWF = 0x0020, + NOBORDER = 0x1000, + REMOVEBORDER = 0x2000 +}; +namespace o3tl +{ + template<> struct typed_flags<WindowBorderStyle> : is_typed_flags<WindowBorderStyle, 0x3033> {}; +} #define KEY_CODE ((sal_uInt16)0x0FFF) |