summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl
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 /sd/source/ui/unoidl
parent23e0b0ba4b67a402a89b3752ae5aede1c5249cc8 (diff)
convert SvxZoomType to enum class
Change-Id: I7308e848d3f9ac391dc656a145139dabbc792df3
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r--sd/source/ui/unoidl/SdUnoDrawView.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/unoidl/SdUnoDrawView.cxx b/sd/source/ui/unoidl/SdUnoDrawView.cxx
index 0c07056be177..c073db21d60e 100644
--- a/sd/source/ui/unoidl/SdUnoDrawView.cxx
+++ b/sd/source/ui/unoidl/SdUnoDrawView.cxx
@@ -470,7 +470,7 @@ sal_Int16 SdUnoDrawView::GetZoom(void) const
void SdUnoDrawView::SetZoom( sal_Int16 nZoom )
{
- SvxZoomItem aZoomItem( SVX_ZOOM_PERCENT, nZoom );
+ SvxZoomItem aZoomItem( SvxZoomType::PERCENT, nZoom );
SfxViewFrame* pViewFrame = mrDrawViewShell.GetViewFrame();
if( pViewFrame )
@@ -512,16 +512,16 @@ void SdUnoDrawView::SetZoomType ( sal_Int16 nType )
switch( nType )
{
case com::sun::star::view::DocumentZoomType::OPTIMAL:
- eZoomType = SVX_ZOOM_OPTIMAL;
+ eZoomType = SvxZoomType::OPTIMAL;
break;
case com::sun::star::view::DocumentZoomType::PAGE_WIDTH:
case com::sun::star::view::DocumentZoomType::PAGE_WIDTH_EXACT:
- eZoomType = SVX_ZOOM_PAGEWIDTH;
+ eZoomType = SvxZoomType::PAGEWIDTH;
break;
case com::sun::star::view::DocumentZoomType::ENTIRE_PAGE:
- eZoomType = SVX_ZOOM_WHOLEPAGE;
+ eZoomType = SvxZoomType::WHOLEPAGE;
break;
default: