diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-12 15:55:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-13 06:54:23 +0000 |
commit | 8fce16fb573506c24aa06e86b476fa6f42ea60b9 (patch) | |
tree | 2817c8c6ff49b141dcb2dfd38582b7272ecff0f1 /sc/source/ui/docshell/docsh4.cxx | |
parent | b39feae4f12b07a0fdb2c8c2a48d5aae613cd7c9 (diff) |
convert SvxPageUsage to scoped enum
and expand out the bit-tricks some of the code was playing to make it
more obvious what is going on
Change-Id: I9c98334393b939b1d900425f6133556ce88247ae
Reviewed-on: https://gerrit.libreoffice.org/29734
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/docshell/docsh4.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 26ac1ab2f238..e9a362c15e0f 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1651,12 +1651,12 @@ void ScDocShell::ExecutePageStyle( SfxViewShell& rCaller, switch ( eUsage ) { - case SVX_PAGE_LEFT: - case SVX_PAGE_RIGHT: + case SvxPageUsage::Left: + case SvxPageUsage::Right: { if ( bHeaderOn && bFooterOn ) nResId = RID_SCDLG_HFEDIT; - else if ( SVX_PAGE_RIGHT == eUsage ) + else if ( SvxPageUsage::Right == eUsage ) { if ( !bHeaderOn && bFooterOn ) nResId = RID_SCDLG_HFEDIT_RIGHTFOOTER; @@ -1678,8 +1678,8 @@ void ScDocShell::ExecutePageStyle( SfxViewShell& rCaller, } break; - case SVX_PAGE_MIRROR: - case SVX_PAGE_ALL: + case SvxPageUsage::Mirror: + case SvxPageUsage::All: default: { if ( !bShareHeader && !bShareFooter ) |