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 /sd/source/ui/unoidl | |
parent | 23e0b0ba4b67a402a89b3752ae5aede1c5249cc8 (diff) |
convert SvxZoomType to enum class
Change-Id: I7308e848d3f9ac391dc656a145139dabbc792df3
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r-- | sd/source/ui/unoidl/SdUnoDrawView.cxx | 8 |
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: |