summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-26 15:22:10 +0200
committerNoel Grandin <noel@peralex.com>2015-05-27 11:14:26 +0200
commit9e3b1236b68069016d646b5682ce541335b5340c (patch)
tree5554d6d0baba0cc3c55ab5e1a9fba04104b0ae74 /include/vcl
parentedc69a55c30ac6cc12de0bf18bddb7dc3f210be4 (diff)
convert WINDOW_DLGCTRL flags to scoped enum
Change-Id: I6c3a95cdcb15e5b1d4adb13908a751b06a302e20
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/window.hxx20
1 files changed, 14 insertions, 6 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index 9b9ebd27d3e3..ec12c25b496b 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -349,10 +349,18 @@ enum class StateChangedType : sal_uInt16
#define WINDOW_DRAW_ROLLOVER ((sal_uLong)0x00000100)
// DialogControl-Flags
-#define WINDOW_DLGCTRL_RETURN ((sal_uInt16)0x0001)
-#define WINDOW_DLGCTRL_WANTFOCUS ((sal_uInt16)0x0002)
-#define WINDOW_DLGCTRL_MOD1TAB ((sal_uInt16)0x0004)
-#define WINDOW_DLGCTRL_FLOATWIN_POPUPMODEEND_CANCEL ((sal_uInt16)0x0008)
+enum class DialogControlFlags
+{
+ NONE = 0x0000,
+ Return = 0x0001,
+ WantFocus = 0x0002,
+ Mod1Tab = 0x0004,
+ FloatWinPopupModeEndCancel = 0x0008,
+};
+namespace o3tl
+{
+ template<> struct typed_flags<DialogControlFlags> : is_typed_flags<DialogControlFlags, 0x000f> {};
+}
// EndExtTextInput() Flags
enum class EndExtTextInputFlags
@@ -900,8 +908,8 @@ public:
bool IsPaintTransparent() const;
void SetDialogControlStart( bool bStart );
bool IsDialogControlStart() const;
- void SetDialogControlFlags( sal_uInt16 nFlags );
- sal_uInt16 GetDialogControlFlags() const;
+ void SetDialogControlFlags( DialogControlFlags nFlags );
+ DialogControlFlags GetDialogControlFlags() const;
struct PointerState
{