diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-22 15:25:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-25 10:32:24 +0200 |
commit | 4de86ac0c62b446426136b620cfd65d088c51cd8 (patch) | |
tree | 2b2118247af23b7780550ce6f53ef497ab332a9c /include | |
parent | 65be8fd0f7f30eaca4fbc35e3fdc9cb7763cb44d (diff) |
convert ACTIVATE_MODE constants to scoped enum
Change-Id: Ica20e033d5cde8a0c18eff51c63c66e6a3845fd0
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/window.hxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index cc5c695a90d6..eb2d6a864169 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -196,7 +196,15 @@ namespace o3tl } // Activate-Flags -#define ACTIVATE_MODE_GRABFOCUS ((sal_uInt16)0x0001) +enum class ActivateModeFlags +{ + NONE = 0, + GrabFocus = 0x0001, +}; +namespace o3tl +{ + template<> struct typed_flags<ActivateModeFlags> : is_typed_flags<ActivateModeFlags, 0x0001> {}; +} // ToTop-Flags #define TOTOP_RESTOREWHENMIN ((sal_uInt16)0x0001) @@ -1009,8 +1017,8 @@ public: */ bool IsInModalMode() const; - void SetActivateMode( sal_uInt16 nMode ); - sal_uInt16 GetActivateMode() const; + void SetActivateMode( ActivateModeFlags nMode ); + ActivateModeFlags GetActivateMode() const; void ToTop( sal_uInt16 nFlags = 0 ); void SetZOrder( vcl::Window* pRefWindow, ZOrderFlags nFlags ); |