diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-23 14:40:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-24 09:36:57 +0200 |
commit | 5d37fa2a710e3bd76d3f1e18d1d66b8a4ab15030 (patch) | |
tree | b472de3b77857a725b3a469e648151b12a7bb9d9 /include/sfx2/zoomitem.hxx | |
parent | 23e0b0ba4b67a402a89b3752ae5aede1c5249cc8 (diff) |
convert SvxZoomType to enum class
Change-Id: I7308e848d3f9ac391dc656a145139dabbc792df3
Diffstat (limited to 'include/sfx2/zoomitem.hxx')
-rw-r--r-- | include/sfx2/zoomitem.hxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/sfx2/zoomitem.hxx b/include/sfx2/zoomitem.hxx index e08665365291..23542239c725 100644 --- a/include/sfx2/zoomitem.hxx +++ b/include/sfx2/zoomitem.hxx @@ -25,32 +25,32 @@ -enum SvxZoomType +enum class SvxZoomType { - SVX_ZOOM_PERCENT, // GetValue() is no special percentage value - SVX_ZOOM_OPTIMAL, // GetValue() corresponds to the optimal size - SVX_ZOOM_WHOLEPAGE, // GetValue() corresponds to the whole page - SVX_ZOOM_PAGEWIDTH, // GetValue() corresponds to the page width - SVX_ZOOM_PAGEWIDTH_NOBORDER // GetValue() pagewidth without border + PERCENT, // GetValue() is no special percentage value + OPTIMAL, // GetValue() corresponds to the optimal size + WHOLEPAGE, // GetValue() corresponds to the whole page + PAGEWIDTH, // GetValue() corresponds to the page width + PAGEWIDTH_NOBORDER // GetValue() pagewidth without border }; class SFX2_DLLPUBLIC SvxZoomItem: public SfxUInt16Item { - sal_uInt16 nValueSet; // allowed values (see #defines below) + sal_uInt16 nValueSet; // allowed values (see #defines below) SvxZoomType eType; public: TYPEINFO_OVERRIDE(); - SvxZoomItem( SvxZoomType eZoomType = SVX_ZOOM_PERCENT, + SvxZoomItem( SvxZoomType eZoomType = SvxZoomType::PERCENT, sal_uInt16 nVal = 0, sal_uInt16 nWhich = SID_ATTR_ZOOM ); SvxZoomItem( const SvxZoomItem& ); virtual ~SvxZoomItem(); void SetValueSet( sal_uInt16 nValues ) { nValueSet = nValues; } - sal_uInt16 GetValueSet() const { return nValueSet; } + sal_uInt16 GetValueSet() const { return nValueSet; } bool IsValueAllowed( sal_uInt16 nValue ) const { return nValue == ( nValue & nValueSet ); } |