diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-20 14:46:54 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-05-22 06:33:12 +0000 |
commit | 83eb114394879cbfd073322a51c47d02553c1fcf (patch) | |
tree | 5cd7d277ffc175fc7e6fd66140cb280caf1b0451 /include/svtools/apearcfg.hxx | |
parent | convert POINTER constants to scoped enum (diff) | |
download | core-83eb114394879cbfd073322a51c47d02553c1fcf.tar.gz core-83eb114394879cbfd073322a51c47d02553c1fcf.zip |
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.hxx | 7 |
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 ); |