diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/doc/zoomitem.cxx | 2 |
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; } |