diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-23 15:20:12 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-24 09:36:58 +0200 |
commit | ecec9afe852d3bca019b6b44a40d8be39e0f58f4 (patch) | |
tree | dc030eaa8f80a0dc3ff6103507ed4dabf9558bbd /sw | |
parent | 5d37fa2a710e3bd76d3f1e18d1d66b8a4ab15030 (diff) |
convert SVX_ZOOM_ENABLE constants to enum class
Change-Id: Iead354b95b832edd72eb8e881855f228fd85be70
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uiview/pview.cxx | 22 | ||||
-rw-r--r-- | sw/source/uibase/uiview/view2.cxx | 20 |
2 files changed, 21 insertions, 21 deletions
diff --git a/sw/source/uibase/uiview/pview.cxx b/sw/source/uibase/uiview/pview.cxx index d72438c72246..b713b2ae477c 100644 --- a/sw/source/uibase/uiview/pview.cxx +++ b/sw/source/uibase/uiview/pview.cxx @@ -750,12 +750,12 @@ void SwPagePreview::Execute( SfxRequest &rReq ) SvxZoomItem aZoom( (SvxZoomType)pVOpt->GetZoomType(), pVOpt->GetZoom() ); aZoom.SetValueSet( - SVX_ZOOM_ENABLE_50| - SVX_ZOOM_ENABLE_75| - SVX_ZOOM_ENABLE_100| - SVX_ZOOM_ENABLE_150| - SVX_ZOOM_ENABLE_200| - SVX_ZOOM_ENABLE_WHOLEPAGE); + SvxZoomEnableFlags::N50| + SvxZoomEnableFlags::N75| + SvxZoomEnableFlags::N100| + SvxZoomEnableFlags::N150| + SvxZoomEnableFlags::N200| + SvxZoomEnableFlags::WHOLEPAGE); aCoreSet.Put( aZoom ); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); @@ -992,11 +992,11 @@ void SwPagePreview::GetState( SfxItemSet& rSet ) SvxZoomItem aZoom((SvxZoomType)pVOpt->GetZoomType(), pVOpt->GetZoom()); aZoom.SetValueSet( - SVX_ZOOM_ENABLE_50| - SVX_ZOOM_ENABLE_75| - SVX_ZOOM_ENABLE_100| - SVX_ZOOM_ENABLE_150| - SVX_ZOOM_ENABLE_200); + SvxZoomEnableFlags::N50| + SvxZoomEnableFlags::N75| + SvxZoomEnableFlags::N100| + SvxZoomEnableFlags::N150| + SvxZoomEnableFlags::N200); rSet.Put( aZoom ); } break; diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index 2bb5d4408795..f79372be5e53 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -1403,11 +1403,11 @@ void SwView::StateStatusLine(SfxItemSet &rSet) if( pVOpt->getBrowseMode() ) { aZoom.SetValueSet( - SVX_ZOOM_ENABLE_50| - SVX_ZOOM_ENABLE_75| - SVX_ZOOM_ENABLE_100| - SVX_ZOOM_ENABLE_150| - SVX_ZOOM_ENABLE_200); + SvxZoomEnableFlags::N50| + SvxZoomEnableFlags::N75| + SvxZoomEnableFlags::N100| + SvxZoomEnableFlags::N150| + SvxZoomEnableFlags::N200); } rSet.Put( aZoom ); } @@ -1690,11 +1690,11 @@ void SwView::ExecuteStatusLine(SfxRequest &rReq) if( bBrowseMode ) { aZoom.SetValueSet( - SVX_ZOOM_ENABLE_50| - SVX_ZOOM_ENABLE_75| - SVX_ZOOM_ENABLE_100| - SVX_ZOOM_ENABLE_150| - SVX_ZOOM_ENABLE_200); + SvxZoomEnableFlags::N50| + SvxZoomEnableFlags::N75| + SvxZoomEnableFlags::N100| + SvxZoomEnableFlags::N150| + SvxZoomEnableFlags::N200); } aCoreSet.Put( aZoom ); |