summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-11 10:39:29 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-11 10:46:18 +0000
commitadcd59aebbdeba925eb5c5c4b74a90855bca286f (patch)
treec8136e4152e0f75851d92492881c97a415eb2139 /svtools
parent8e4a113229298b4fa5bddd6cf71715d1fb87c3ef (diff)
Convert RulerExtra to scoped enum
Change-Id: I81f5380e27a741ab6049bcec6b4136d8f2d1169a Reviewed-on: https://gerrit.libreoffice.org/24878 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ruler.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 5022bc3c6c1b..2c9abac4d231 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -253,7 +253,7 @@ void Ruler::ImplInit( WinBits nWinBits )
mbActive = true; // Is ruler active
mnUpdateFlags = 0; // What needs to be updated
mpData = mpSaveData; // Pointer to normal data
- meExtraType = RULER_EXTRA_DONTKNOW; // What is in extra field
+ meExtraType = RulerExtra::DontKnow; // What is in extra field
meDragType = RULER_TYPE_DONTKNOW; // Which element is dragged
// Initialize Units
@@ -1416,7 +1416,7 @@ void Ruler::ImplDrawExtra(vcl::RenderContext& rRenderContext)
}
// output content
- if (meExtraType == RULER_EXTRA_NULLOFFSET)
+ if (meExtraType == RulerExtra::NullOffset)
{
rRenderContext.SetLineColor(rStyleSettings.GetButtonTextColor());
rRenderContext.DrawLine(Point(aRect.Left() + 1, aRect.Top() + 4),
@@ -1424,7 +1424,7 @@ void Ruler::ImplDrawExtra(vcl::RenderContext& rRenderContext)
rRenderContext.DrawLine(Point(aRect.Left() + 4, aRect.Top() + 1),
Point(aRect.Left() + 4, aRect.Bottom() - 1));
}
- else if (meExtraType == RULER_EXTRA_TAB)
+ else if (meExtraType == RulerExtra::Tab)
{
sal_uInt16 nTabStyle = mnExtraStyle & RULER_TAB_STYLE;
if (mpData->bTextRTL)