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 /starmath/source | |
parent | 23e0b0ba4b67a402a89b3752ae5aede1c5249cc8 (diff) |
convert SvxZoomType to enum class
Change-Id: I7308e848d3f9ac391dc656a145139dabbc792df3
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/view.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 5d4010257429..31bc611a1948 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -1743,7 +1743,7 @@ void SmViewShell::Execute(SfxRequest& rReq) if ( !pSet ) { SfxItemSet aSet( GetDoc()->GetPool(), SID_ATTR_ZOOM, SID_ATTR_ZOOM); - aSet.Put( SvxZoomItem( SVX_ZOOM_PERCENT, aGraphic.GetZoom())); + aSet.Put( SvxZoomItem( SvxZoomType::PERCENT, aGraphic.GetZoom())); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); if(pFact) { @@ -1759,16 +1759,16 @@ void SmViewShell::Execute(SfxRequest& rReq) const SvxZoomItem &rZoom = static_cast<const SvxZoomItem &>(pSet->Get(SID_ATTR_ZOOM)); switch( rZoom.GetType() ) { - case SVX_ZOOM_PERCENT: + case SvxZoomType::PERCENT: aGraphic.SetZoom((sal_uInt16)rZoom.GetValue ()); break; - case SVX_ZOOM_OPTIMAL: + case SvxZoomType::OPTIMAL: aGraphic.ZoomToFitInWindow(); break; - case SVX_ZOOM_PAGEWIDTH: - case SVX_ZOOM_WHOLEPAGE: + case SvxZoomType::PAGEWIDTH: + case SvxZoomType::WHOLEPAGE: { const MapMode aMap( MAP_100TH_MM ); SfxPrinter *pPrinter = GetPrinter( true ); @@ -1871,7 +1871,7 @@ void SmViewShell::GetState(SfxItemSet &rSet) break; case SID_ATTR_ZOOM: - rSet.Put(SvxZoomItem( SVX_ZOOM_PERCENT, aGraphic.GetZoom())); + rSet.Put(SvxZoomItem( SvxZoomType::PERCENT, aGraphic.GetZoom())); /* no break here */ case SID_ZOOMIN: case SID_ZOOMOUT: |