From 4105174973aaabc25148e53571b7a4fc356098de Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 18 Aug 2017 16:32:18 +0200 Subject: convert extended WinBits to scoped enum Change-Id: If35f4fcda2415c858ba8f963e9f471c87169bc99 Reviewed-on: https://gerrit.libreoffice.org/41301 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- include/tools/wintypes.hxx | 4 ---- include/vcl/window.hxx | 17 ++++++++++++++--- 2 files changed, 14 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/tools/wintypes.hxx b/include/tools/wintypes.hxx index 7c0c29a87a82..def5ffd6bb09 100644 --- a/include/tools/wintypes.hxx +++ b/include/tools/wintypes.hxx @@ -271,10 +271,6 @@ WinBits const WB_SAVEAS = 0x00400000; // Window-Bits for TabControl WinBits const WB_SLIDERSET = 0x02000000; -// extended WinBits -WinBits const WB_EXT_DOCUMENT = 0x00000001; -WinBits const WB_EXT_DOCMODIFIED = 0x00000002; - // WindowAlign enum class WindowAlign { Left, Top, Right, Bottom }; diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 3b8a42ac5d0b..c4d3540df1d9 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -451,8 +451,9 @@ class ImplDockingWindowWrapper; class ImplPopupFloatWin; class MenuFloatingWindow; class LifecycleTest; - namespace svt { class PopupWindowControllerImpl; } + + enum class WindowHitTest { NONE = 0x0000, Inside = 0x0001, @@ -462,6 +463,16 @@ namespace o3tl { template<> struct typed_flags : is_typed_flags {}; }; + +enum class WindowExtendedStyle { + NONE = 0x0000, + Document = 0x0001, + DocModified = 0x0002, +}; +namespace o3tl { + template<> struct typed_flags : is_typed_flags {}; +}; + namespace vcl { class VCL_DLLPUBLIC RenderTools @@ -823,8 +834,8 @@ public: void SetStyle( WinBits nStyle ); WinBits GetStyle() const; WinBits GetPrevStyle() const; - void SetExtendedStyle( WinBits nExtendedStyle ); - WinBits GetExtendedStyle() const; + void SetExtendedStyle( WindowExtendedStyle nExtendedStyle ); + WindowExtendedStyle GetExtendedStyle() const; void SetType( WindowType nType ); WindowType GetType() const; bool IsSystemWindow() const; -- cgit