diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-03-31 09:06:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-31 13:23:04 +0200 |
commit | 81fbf1386a36972be7d3eff3f7a0c6bab80be764 (patch) | |
tree | c0d3a8c6f55d00ebf2024fe69bba403528008f8b /sw/inc/swmodule.hxx | |
parent | 77c494de9bf9191a66fb6f90cc2148f60c25c088 (diff) |
tdf#84938 convert VIEWOPT_ constants to scoped enum
Change-Id: I7d72ed66ea2cf920a0a03a2aa71b5de079f0cf6e
Diffstat (limited to 'sw/inc/swmodule.hxx')
-rw-r--r-- | sw/inc/swmodule.hxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx index 4dedce760946..05b74ee71a07 100644 --- a/sw/inc/swmodule.hxx +++ b/sw/inc/swmodule.hxx @@ -54,10 +54,13 @@ class SvtCTLOptions; class SvtUserOptions; struct SwDBData; -#define VIEWOPT_DEST_VIEW 0 -#define VIEWOPT_DEST_TEXT 1 -#define VIEWOPT_DEST_WEB 2 -#define VIEWOPT_DEST_VIEW_ONLY 3 //ViewOptions are set only at View, not at the appl. + +enum class SvViewOpt { + DestView, + DestText, + DestWeb, + DestViewOnly //ViewOptions are set only at View, not at the appl. +}; namespace com{ namespace sun{ namespace star{ namespace scanner{ class XScannerManager2; @@ -145,7 +148,7 @@ public: const SwMasterUsrPref *GetUsrPref(bool bWeb) const; const SwViewOption* GetViewOption(bool bWeb); void ApplyUsrPref(const SwViewOption &, SwView*, - sal_uInt16 nDest = VIEWOPT_DEST_VIEW ); + SvViewOpt nDest = SvViewOpt::DestView ); void ApplyUserMetric( FieldUnit eMetric, bool bWeb ); void ApplyRulerMetric( FieldUnit eMetric, bool bHorizontal, bool bWeb ); void ApplyFieldUpdateFlags(SwFieldUpdateFlags eFieldFlags); |