From 87ee6c044d79978d2121087f5e1a10f417adf9c7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 4 Sep 2016 12:02:54 +0200 Subject: convert Orientation to scoped enum Change-Id: Ifbfcf3557ca2a16d21e7a1d613ee54c1c6625f07 --- cui/source/tabpages/page.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cui') diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx index ca206e6b9e40..7b54e08336d1 100644 --- a/cui/source/tabpages/page.cxx +++ b/cui/source/tabpages/page.cxx @@ -467,7 +467,7 @@ void SvxPageDescPage::Reset( const SfxItemSet* rSet ) // general page data SvxNumType eNumType = SVX_ARABIC; - bLandscape = ( mpDefPrinter->GetOrientation() == ORIENTATION_LANDSCAPE ); + bLandscape = ( mpDefPrinter->GetOrientation() == Orientation::Landscape ); sal_uInt16 nUse = (sal_uInt16)SVX_PAGE_ALL; pItem = GetItem( *rSet, SID_ATTR_PAGE ); @@ -1059,10 +1059,10 @@ IMPL_LINK_TYPED( SvxPageDescPage, SwapOrientation_Impl, Button *, pBtn, void ) void SvxPageDescPage::SwapFirstValues_Impl( bool bSet ) { MapMode aOldMode = mpDefPrinter->GetMapMode(); - Orientation eOri = ORIENTATION_PORTRAIT; + Orientation eOri = Orientation::Portrait; if ( bLandscape ) - eOri = ORIENTATION_LANDSCAPE; + eOri = Orientation::Landscape; Orientation eOldOri = mpDefPrinter->GetOrientation(); mpDefPrinter->SetOrientation( eOri ); mpDefPrinter->SetMapMode( MAP_TWIP ); -- cgit