summaryrefslogtreecommitdiff
path: root/include/svtools/apearcfg.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-20 15:58:24 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-22 17:53:24 +0000
commit84c7efb4aebbfcd2526e9f73f023bbda3c11a75c (patch)
treeb644c0618dd8ead61902e28741bc6d64a9b2d892 /include/svtools/apearcfg.hxx
parentae033e72144645bb86e70071acc6bf7e2f0dda80 (diff)
Convert DragMode to scoped enum
Change-Id: I68dafefc74bad355047738605defd97f3c6bebcd Reviewed-on: https://gerrit.libreoffice.org/25209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/svtools/apearcfg.hxx')
-rw-r--r--include/svtools/apearcfg.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/svtools/apearcfg.hxx b/include/svtools/apearcfg.hxx
index c4ae3703656d..7b431c267241 100644
--- a/include/svtools/apearcfg.hxx
+++ b/include/svtools/apearcfg.hxx
@@ -31,16 +31,16 @@ typedef enum {
NoSnap
} SnapType;
-typedef enum {
- DragFullWindow,
- DragFrame,
- DragSystemDep
-} DragMode;
+enum class DragMode {
+ FullWindow,
+ Frame,
+ SystemDep
+};
class SVT_DLLPUBLIC SvtTabAppearanceCfg : public utl::ConfigItem
{
- short nDragMode ;
+ DragMode nDragMode ;
short nScaleFactor ;
short nSnapMode ;
MouseMiddleButtonAction nMiddleMouse;
@@ -64,7 +64,7 @@ public:
virtual void Notify( const css::uno::Sequence< OUString >& _rPropertyNames) override;
- sal_uInt16 GetDragMode () const { return nDragMode; }
+ DragMode GetDragMode () const { return nDragMode; }
sal_uInt16 GetScaleFactor () const { return nScaleFactor; }
void SetScaleFactor ( sal_uInt16 nSet );