summaryrefslogtreecommitdiff
path: root/svx/source/stbctrls
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 /svx/source/stbctrls
parent23e0b0ba4b67a402a89b3752ae5aede1c5249cc8 (diff)
convert SvxZoomType to enum class
Change-Id: I7308e848d3f9ac391dc656a145139dabbc792df3
Diffstat (limited to 'svx/source/stbctrls')
-rw-r--r--svx/source/stbctrls/zoomctrl.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/stbctrls/zoomctrl.cxx b/svx/source/stbctrls/zoomctrl.cxx
index 4ab723225359..b50efb208782 100644
--- a/svx/source/stbctrls/zoomctrl.cxx
+++ b/svx/source/stbctrls/zoomctrl.cxx
@@ -150,13 +150,13 @@ void SvxZoomStatusBarControl::Command( const CommandEvent& rCEvt )
if ( aPop.Execute( &rStatusbar, rCEvt.GetMousePosPixel() ) && ( nZoom != aPop.GetZoom() || !nZoom ) )
{
nZoom = aPop.GetZoom();
- SvxZoomItem aZoom( SVX_ZOOM_PERCENT, nZoom, GetId() );
+ SvxZoomItem aZoom( SvxZoomType::PERCENT, nZoom, GetId() );
switch( aPop.GetCurId() )
{
- case ZOOM_OPTIMAL: aZoom.SetType( SVX_ZOOM_OPTIMAL ); break;
- case ZOOM_PAGE_WIDTH: aZoom.SetType( SVX_ZOOM_PAGEWIDTH ); break;
- case ZOOM_WHOLE_PAGE: aZoom.SetType( SVX_ZOOM_WHOLEPAGE ); break;
+ case ZOOM_OPTIMAL: aZoom.SetType( SvxZoomType::OPTIMAL ); break;
+ case ZOOM_PAGE_WIDTH: aZoom.SetType( SvxZoomType::PAGEWIDTH ); break;
+ case ZOOM_WHOLE_PAGE: aZoom.SetType( SvxZoomType::WHOLEPAGE ); break;
}
::com::sun::star::uno::Any a;
@@ -194,7 +194,7 @@ void SvxZoomPageStatusBarControl::Paint(const UserDrawEvent& rUsrEvt)
bool SvxZoomPageStatusBarControl::MouseButtonDown(const MouseEvent&)
{
- SvxZoomItem aZoom( SVX_ZOOM_WHOLEPAGE, 0, GetId() );
+ SvxZoomItem aZoom( SvxZoomType::WHOLEPAGE, 0, GetId() );
::com::sun::star::uno::Any a;
INetURLObject aObj( m_aCommandURL );