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 --- sc/source/ui/docshell/docsh3.cxx | 2 +- sc/source/ui/view/printfun.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx index 3d9408c80bdb..baf390806fce 100644 --- a/sc/source/ui/docshell/docsh3.cxx +++ b/sc/source/ui/docshell/docsh3.cxx @@ -538,7 +538,7 @@ sal_uInt16 ScDocShell::SetPrinter( SfxPrinter* pNewPrinter, SfxPrinterChangeFlag { const SvxPageItem& rOldItem = static_cast(rSet.Get(ATTR_PAGE)); bool bWasLand = rOldItem.IsLandscape(); - bool bNewLand = ( pNewPrinter->GetOrientation() == ORIENTATION_LANDSCAPE ); + bool bNewLand = ( pNewPrinter->GetOrientation() == Orientation::Landscape ); if (bNewLand != bWasLand) { SvxPageItem aNewItem( rOldItem ); diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx index 089069736b8a..b23ffcdb163e 100644 --- a/sc/source/ui/view/printfun.cxx +++ b/sc/source/ui/view/printfun.cxx @@ -2587,7 +2587,7 @@ void ScPrintFunc::ApplyPrintSettings() Size aEnumSize = aPageSize; - pPrinter->SetOrientation( bLandscape ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT ); + pPrinter->SetOrientation( bLandscape ? Orientation::Landscape : Orientation::Portrait ); if ( bLandscape ) { // landscape is always interpreted as a rotation by 90 degrees ! -- cgit