diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-04 12:02:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-05 08:21:46 +0200 |
commit | 87ee6c044d79978d2121087f5e1a10f417adf9c7 (patch) | |
tree | 5b1747d9d625da42a47c3ff0635f0124de0cd511 /sc | |
parent | 04a8ba2084950f998d791edad29739c124c8c4b8 (diff) |
convert Orientation to scoped enum
Change-Id: Ifbfcf3557ca2a16d21e7a1d613ee54c1c6625f07
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docsh3.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/printfun.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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<const SvxPageItem&>(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 ! |