summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-26 09:30:27 +0200
committerNoel Grandin <noel@peralex.com>2015-05-27 11:14:25 +0200
commit5ad3886ec8d3d465c956d99fab42fffda656392c (patch)
tree254005df19d464031ece341354107850df42970d /include
parentc6dfe0545cca8dc5e40864fd90e0ffe0b6182578 (diff)
convert EXTTEXTINPUT constants to scoped enum
Change-Id: I1bb4ff2c13eaa2a9da3e32963ac0802e947e18d9
Diffstat (limited to 'include')
-rw-r--r--include/vcl/window.hxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index 32f3ea80e2c1..e2578acc9fc9 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -358,9 +358,16 @@ enum class StateChangedType : sal_uInt16
#define WINDOW_GETCLIPREGION_NULL ((sal_uInt16)0x0001)
#define WINDOW_GETCLIPREGION_NOCHILDREN ((sal_uInt16)0x0002)
-// EndExtTextInput-Flags
-#define EXTTEXTINPUT_END_COMPLETE ((sal_uInt16)0x0001)
-#define EXTTEXTINPUT_END_CANCEL ((sal_uInt16)0x0002)
+// EndExtTextInput() Flags
+enum class EndExtTextInputFlags
+{
+ NONE = 0x0000,
+ Complete = 0x0001
+};
+namespace o3tl
+{
+ template<> struct typed_flags<EndExtTextInputFlags> : is_typed_flags<EndExtTextInputFlags, 0x0001> {};
+}
#define IMPL_MINSIZE_BUTTON_WIDTH 70
#define IMPL_MINSIZE_BUTTON_HEIGHT 22
@@ -912,7 +919,7 @@ public:
void SetInputContext( const InputContext& rInputContext );
const InputContext& GetInputContext() const;
- void EndExtTextInput( sal_uInt16 nFlags );
+ void EndExtTextInput( EndExtTextInputFlags nFlags );
void SetCursorRect( const Rectangle* pRect = NULL, long nExtTextInputWidth = 0 );
const Rectangle* GetCursorRect() const;
long GetCursorExtTextInputWidth() const;