summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-03 15:37:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-03 16:55:11 +0200
commit2b6385a9f58e9f8adfd406e087186eb0cbba700b (patch)
tree192db26b5fed1c91f3a737ef53e75c9071dddbda /svtools
parent532a4dcba6ec6fe1bd88f3c2db77f05868167886 (diff)
convert TPB_DISPLAY_NAME constants to scoped enum
Change-Id: I0e4f9ce3392e48fc82c232ba3e6581f3b0d9af9f Reviewed-on: https://gerrit.libreoffice.org/43083 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/tabbar.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 86b2f3587b80..2e3a5a3b563f 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -1199,17 +1199,17 @@ void TabBar::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& r
// Special display of tab name depending on page bits
- if (pItem->mnBits & TPB_DISPLAY_NAME_BLUE)
+ if (pItem->mnBits & TabBarPageBits::Blue)
{
rRenderContext.SetTextColor(Color(COL_LIGHTBLUE));
}
- if (pItem->mnBits & TPB_DISPLAY_NAME_ITALIC)
+ if (pItem->mnBits & TabBarPageBits::Italic)
{
vcl::Font aSpecialFont = rRenderContext.GetFont();
aSpecialFont.SetItalic(FontItalic::ITALIC_NORMAL);
rRenderContext.SetFont(aSpecialFont);
}
- if (pItem->mnBits & TPB_DISPLAY_NAME_UNDERLINE)
+ if (pItem->mnBits & TabBarPageBits::Underline)
{
vcl::Font aSpecialFont = rRenderContext.GetFont();
aSpecialFont.SetUnderline(LINESTYLE_SINGLE);
@@ -1792,7 +1792,7 @@ TabBarPageBits TabBar::GetPageBits(sal_uInt16 nPageId) const
if (nPos != PAGE_NOT_FOUND)
return mpImpl->mpItemList[nPos]->mnBits;
else
- return 0;
+ return TabBarPageBits::NONE;
}
sal_uInt16 TabBar::GetPageCount() const
@@ -2091,7 +2091,7 @@ bool TabBar::StartEditMode(sal_uInt16 nPageId)
aForegroundColor = aFaceTextColor;
aBackgroundColor = aFaceColor;
}
- if (GetPageBits( mnEditId ) & TPB_DISPLAY_NAME_BLUE)
+ if (GetPageBits( mnEditId ) & TabBarPageBits::Blue)
{
aForegroundColor = Color(COL_LIGHTBLUE);
}