summaryrefslogtreecommitdiff
path: root/sfx2
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 /sfx2
parent23e0b0ba4b67a402a89b3752ae5aede1c5249cc8 (diff)
convert SvxZoomType to enum class
Change-Id: I7308e848d3f9ac391dc656a145139dabbc792df3
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appserv.cxx8
-rw-r--r--sfx2/source/doc/zoomitem.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 9256ea270966..40e8a9533ac0 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -595,7 +595,7 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
// make sure aZoom is initialized with a proper value if SetType
// doesn't work
- SvxZoomItem aZoom( SVX_ZOOM_PERCENT, 100 );
+ SvxZoomItem aZoom( SvxZoomType::PERCENT, 100 );
switch (rReq.GetSlot())
{
@@ -615,13 +615,13 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
aZoom.SetValue(200);
break;
case SID_ZOOM_OPTIMAL:
- aZoom.SetType( SVX_ZOOM_OPTIMAL );
+ aZoom.SetType( SvxZoomType::OPTIMAL );
break;
case SID_ZOOM_ENTIRE_PAGE:
- aZoom.SetType( SVX_ZOOM_WHOLEPAGE );
+ aZoom.SetType( SvxZoomType::WHOLEPAGE );
break;
case SID_ZOOM_PAGE_WIDTH:
- aZoom.SetType( SVX_ZOOM_PAGEWIDTH );
+ aZoom.SetType( SvxZoomType::PAGEWIDTH );
break;
}
diff --git a/sfx2/source/doc/zoomitem.cxx b/sfx2/source/doc/zoomitem.cxx
index 7ee923c74ff2..a89e590ddf39 100644
--- a/sfx2/source/doc/zoomitem.cxx
+++ b/sfx2/source/doc/zoomitem.cxx
@@ -89,7 +89,7 @@ SvStream& SvxZoomItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) con
{
rStrm.WriteUInt16( GetValue() )
.WriteUInt16( nValueSet )
- .WriteSChar( eType );
+ .WriteSChar( static_cast<int>(eType) );
return rStrm;
}