summaryrefslogtreecommitdiff
path: root/sw/source/uibase/frmdlg
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-12 15:55:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-13 06:54:23 +0000
commit8fce16fb573506c24aa06e86b476fa6f42ea60b9 (patch)
tree2817c8c6ff49b141dcb2dfd38582b7272ecff0f1 /sw/source/uibase/frmdlg
parentb39feae4f12b07a0fdb2c8c2a48d5aae613cd7c9 (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 'sw/source/uibase/frmdlg')
-rw-r--r--sw/source/uibase/frmdlg/colex.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/frmdlg/colex.cxx b/sw/source/uibase/frmdlg/colex.cxx
index 60eb0c3abcf3..a71f884dab30 100644
--- a/sw/source/uibase/frmdlg/colex.cxx
+++ b/sw/source/uibase/frmdlg/colex.cxx
@@ -224,7 +224,7 @@ void SwColExample::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOr
long nL = GetLeft();
long nR = GetRight();
- if (GetUsage() == SVX_PAGE_MIRROR && !bSecond)
+ if (GetUsage() == SvxPageUsage::Mirror && !bSecond)
{
// swap for mirrored
nL = GetRight();
@@ -545,7 +545,7 @@ void SwPageGridExample::DrawPage(vcl::RenderContext& rRenderContext, const Point
long nL = GetLeft();
long nR = GetRight();
- if (GetUsage() == SVX_PAGE_MIRROR && !bSecond)
+ if (GetUsage() == SvxPageUsage::Mirror && !bSecond)
{
// rotate for mirrored
nL = GetRight();