summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-27 14:05:45 +0200
committerNoel Grandin <noel@peralex.com>2015-05-28 12:47:06 +0200
commita086ca18987a91543a65a3965b2bbc4c022400f8 (patch)
tree77b2183d290cbdcb25f33d35b629da955ad3d035 /include
parent4c93c30c79ae885d488a8a04d383fe5308a1d520 (diff)
convert AUTOSCROLL constants to scoped enum
Change-Id: Id1d2b5c13ad6af05314cba60ba5b9a62e0683f5e
Diffstat (limited to 'include')
-rw-r--r--include/vcl/window.hxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index c3be2c647e6a..f3f3b4da1ca0 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -295,8 +295,16 @@ namespace o3tl
#define STARTTRACK_FOCUSCANCEL ((sal_uInt16)0x0040)
// Flags for StartAutoScroll()
-#define AUTOSCROLL_VERT ((sal_uInt16)0x0001)
-#define AUTOSCROLL_HORZ ((sal_uInt16)0x0002)
+enum class StartAutoScrollFlags
+{
+ NONE = 0x0000,
+ Vert = 0x0001,
+ Horz = 0x0002,
+};
+namespace o3tl
+{
+ template<> struct typed_flags<StartAutoScrollFlags> : is_typed_flags<StartAutoScrollFlags, 0x0003> {};
+}
// Flags for StateChanged()
enum class StateChangedType : sal_uInt16
@@ -1244,7 +1252,7 @@ public:
void EndTracking( TrackingEventFlags nFlags = TrackingEventFlags::NONE );
bool IsTracking() const;
- void StartAutoScroll( sal_uInt16 nFlags );
+ void StartAutoScroll( StartAutoScrollFlags nFlags );
void EndAutoScroll();
bool HandleScrollCommand( const CommandEvent& rCmd,