summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/view/tabvwsh3.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-23 14:40:02 +0200
committerNoel Grandin <noel@peralex.com>2015-03-24 09:36:57 +0200
commit5d37fa2a710e3bd76d3f1e18d1d66b8a4ab15030 (patch)
treeb472de3b77857a725b3a469e648151b12a7bb9d9 /sc/source/ui/view/tabvwsh3.cxx
parentconvert sfxlink to enum class (diff)
downloadcore-5d37fa2a710e3bd76d3f1e18d1d66b8a4ab15030.tar.gz
core-5d37fa2a710e3bd76d3f1e18d1d66b8a4ab15030.zip
convert SvxZoomType to enum class
Change-Id: I7308e848d3f9ac391dc656a145139dabbc792df3
Diffstat (limited to 'sc/source/ui/view/tabvwsh3.cxx')
-rw-r--r--sc/source/ui/view/tabvwsh3.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx
index 8253b37d35df..e7da39649637 100644
--- a/sc/source/ui/view/tabvwsh3.cxx
+++ b/sc/source/ui/view/tabvwsh3.cxx
@@ -681,7 +681,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
if ( !bCancel )
{
- if ( eNewZoomType == SVX_ZOOM_PERCENT )
+ if ( eNewZoomType == SvxZoomType::PERCENT )
{
if ( nZoom < MINZOOM ) nZoom = MINZOOM;
if ( nZoom > MAXZOOM ) nZoom = MAXZOOM;
@@ -694,13 +694,13 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
switch ( eNewZoomType )
{
- case SVX_ZOOM_WHOLEPAGE:
- case SVX_ZOOM_PAGEWIDTH:
+ case SvxZoomType::WHOLEPAGE:
+ case SvxZoomType::PAGEWIDTH:
SetZoomType( eNewZoomType, bSyncZoom );
break;
default:
- SetZoomType( SVX_ZOOM_PERCENT, bSyncZoom );
+ SetZoomType( SvxZoomType::PERCENT, bSyncZoom );
}
}
@@ -734,7 +734,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
const sal_uInt16 nCurrentZoom = static_cast<const SvxZoomSliderItem *>(pItem)->GetValue();
if( nCurrentZoom )
{
- SetZoomType( SVX_ZOOM_PERCENT, bSyncZoom );
+ SetZoomType( SvxZoomType::PERCENT, bSyncZoom );
if (!GetViewData().IsPagebreakMode())
{
ScAppOptions aNewOpt = pScMod->GetAppOptions();