summaryrefslogtreecommitdiff
path: root/include/svtools/apearcfg.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-20 14:46:54 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-05-22 06:33:12 +0000
commit83eb114394879cbfd073322a51c47d02553c1fcf (patch)
tree5cd7d277ffc175fc7e6fd66140cb280caf1b0451 /include/svtools/apearcfg.hxx
parente929194317a7debb1c5467282230cbbabe61a710 (diff)
convert constants in include/vcl/settings.hxx to scoped enums
Change-Id: I2a110c017f13eca6ddbd70ef3ed195d24adef0a3 Reviewed-on: https://gerrit.libreoffice.org/15828 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/svtools/apearcfg.hxx')
-rw-r--r--include/svtools/apearcfg.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/svtools/apearcfg.hxx b/include/svtools/apearcfg.hxx
index cb308b821ae6..26a4413782a6 100644
--- a/include/svtools/apearcfg.hxx
+++ b/include/svtools/apearcfg.hxx
@@ -23,6 +23,7 @@
#include <unotools/configitem.hxx>
class Application;
+enum class MouseMiddleButtonAction;
typedef enum {
SnapToButton = 0,
@@ -42,7 +43,7 @@ class SVT_DLLPUBLIC SvtTabAppearanceCfg : public utl::ConfigItem
short nDragMode ;
short nScaleFactor ;
short nSnapMode ;
- short nMiddleMouse;
+ MouseMiddleButtonAction nMiddleMouse;
#if defined( UNX )
short nAAMinPixelHeight ;
#endif
@@ -71,8 +72,8 @@ public:
sal_uInt16 GetSnapMode () const { return nSnapMode; }
void SetSnapMode ( sal_uInt16 nSet );
- sal_uInt16 GetMiddleMouseButton () const { return nMiddleMouse; }
- void SetMiddleMouseButton ( sal_uInt16 nSet );
+ MouseMiddleButtonAction GetMiddleMouseButton () const { return nMiddleMouse; }
+ void SetMiddleMouseButton ( MouseMiddleButtonAction nSet );
void SetApplicationDefaults ( Application* pApp );