summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-23 15:20:12 +0200
committerNoel Grandin <noel@peralex.com>2015-03-24 09:36:58 +0200
commitecec9afe852d3bca019b6b44a40d8be39e0f58f4 (patch)
treedc030eaa8f80a0dc3ff6103507ed4dabf9558bbd /cui/source
parent5d37fa2a710e3bd76d3f1e18d1d66b8a4ab15030 (diff)
convert SVX_ZOOM_ENABLE constants to enum class
Change-Id: Iead354b95b832edd72eb8e881855f228fd85be70
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/dialogs/zoom.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/dialogs/zoom.cxx b/cui/source/dialogs/zoom.cxx
index 446e47a8e3b7..32dea8c5ab77 100644
--- a/cui/source/dialogs/zoom.cxx
+++ b/cui/source/dialogs/zoom.cxx
@@ -207,7 +207,7 @@ SvxZoomDialog::SvxZoomDialog( vcl::Window* pParent, const SfxItemSet& rCoreSet )
const SvxZoomItem& rZoomItem = static_cast<const SvxZoomItem&>(rItem);
const sal_uInt16 nZoom = rZoomItem.GetValue();
const SvxZoomType eType = rZoomItem.GetType();
- const sal_uInt16 nValSet = rZoomItem.GetValueSet();
+ const SvxZoomEnableFlags nValSet = rZoomItem.GetValueSet();
sal_uInt16 nButtonId = 0;
switch (eType)
@@ -227,13 +227,13 @@ SvxZoomDialog::SvxZoomDialog( vcl::Window* pParent, const SfxItemSet& rCoreSet )
break;
}
- if (!(SVX_ZOOM_ENABLE_100 & nValSet))
+ if (!(SvxZoomEnableFlags::N100 & nValSet))
m_p100Btn->Disable();
- if (!(SVX_ZOOM_ENABLE_OPTIMAL & nValSet))
+ if (!(SvxZoomEnableFlags::OPTIMAL & nValSet))
m_pOptimalBtn->Disable();
- if (!(SVX_ZOOM_ENABLE_PAGEWIDTH & nValSet))
+ if (!(SvxZoomEnableFlags::PAGEWIDTH & nValSet))
m_pPageWidthBtn->Disable();
- if (!(SVX_ZOOM_ENABLE_WHOLEPAGE & nValSet))
+ if (!(SvxZoomEnableFlags::WHOLEPAGE & nValSet))
m_pWholePageBtn->Disable();
SetFactor(nZoom, nButtonId);