summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-14 13:55:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-15 06:45:52 +0000
commit7f8bc0af4b35c22ead1310984926b26749b3143d (patch)
tree511e6e19c6540e23eadb0806d3caec24a196dcd1 /sw/inc
parent516a320ad496604296433f1471e2dd5434f4872d (diff)
convert MirrorGraph to scoped enum
Change-Id: I2eae815a10e23a7904e1aa54577a959cb8579172 Reviewed-on: https://gerrit.libreoffice.org/35179 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/grfatr.hxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/sw/inc/grfatr.hxx b/sw/inc/grfatr.hxx
index b169ce43d7bf..396c4439d27a 100644
--- a/sw/inc/grfatr.hxx
+++ b/sw/inc/grfatr.hxx
@@ -29,14 +29,12 @@
#include <swatrset.hxx>
#include <format.hxx>
-enum MirrorGraph
+enum class MirrorGraph
{
-RES_MIRROR_GRAPH_BEGIN,
- RES_MIRROR_GRAPH_DONT = RES_MIRROR_GRAPH_BEGIN,
- RES_MIRROR_GRAPH_VERT,
- RES_MIRROR_GRAPH_HOR,
- RES_MIRROR_GRAPH_BOTH,
-RES_MIRROR_GRAPH_END
+ Dont,
+ Vertical,
+ Horizontal,
+ Both
};
class SW_DLLPUBLIC SwMirrorGrf : public SfxEnumItem<MirrorGraph>
@@ -44,7 +42,7 @@ class SW_DLLPUBLIC SwMirrorGrf : public SfxEnumItem<MirrorGraph>
bool bGrfToggle; // Flip graphics on even pages.
public:
- SwMirrorGrf( MirrorGraph eMiro = RES_MIRROR_GRAPH_DONT )
+ SwMirrorGrf( MirrorGraph eMiro = MirrorGraph::Dont )
: SfxEnumItem( RES_GRFATR_MIRRORGRF, eMiro ), bGrfToggle( false )
{}
SwMirrorGrf( const SwMirrorGrf &rMirrorGrf )