summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-04 12:02:54 +0200
committerNoel Grandin <noel@peralex.com>2016-09-05 08:21:46 +0200
commit87ee6c044d79978d2121087f5e1a10f417adf9c7 (patch)
tree5b1747d9d625da42a47c3ff0635f0124de0cd511 /cui
parent04a8ba2084950f998d791edad29739c124c8c4b8 (diff)
convert Orientation to scoped enum
Change-Id: Ifbfcf3557ca2a16d21e7a1d613ee54c1c6625f07
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/page.cxx6
1 files changed, 3 insertions, 3 deletions
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 );