From 5d37fa2a710e3bd76d3f1e18d1d66b8a4ab15030 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 23 Mar 2015 14:40:02 +0200 Subject: convert SvxZoomType to enum class Change-Id: I7308e848d3f9ac391dc656a145139dabbc792df3 --- svx/source/stbctrls/zoomctrl.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'svx/source/stbctrls') 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 ); -- cgit