summaryrefslogtreecommitdiff
path: root/svtools/source/control
diff options
context:
space:
mode:
authorUlrich Gemkow <lobugs@ikr.uni-stuttgart.de>2017-08-03 20:51:26 +0200
committerEike Rathke <erack@redhat.com>2017-08-18 11:34:08 +0200
commitb37c344274072df92a8a9624c261aa51c9145217 (patch)
tree1a4c52306e5314e23a4774326205e6b60ce7c6fd /svtools/source/control
parent75539963e621faafdc0d3ef6759cadb2e0a5d9b4 (diff)
Rename flag to less generic name to prepare adding more flags
Change-Id: I27663a42890bbae3279847a7da971cd367335cb3 Reviewed-on: https://gerrit.libreoffice.org/40736 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svtools/source/control')
-rw-r--r--svtools/source/control/tabbar.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 8d8bb6d9cdbd..a1d5218786a9 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -1192,7 +1192,7 @@ void TabBar::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& r
bool bSelected = pItem->IsSelected(pCurItem);
// We disable custom background color in high contrast mode.
bool bCustomBgColor = !pItem->IsDefaultTabBgColor() && !rStyleSettings.GetHighContrastMode();
- bool bSpecialTab = (pItem->mnBits & TPB_SPECIAL);
+ bool bSpecialTab = (pItem->mnBits & TPB_DISPLAY_NAME_BLUE);
OUString aText = pItem->mbShort ? rRenderContext.GetEllipsisString(pItem->maText, mnCurMaxWidth) : pItem->maText;
aDrawer.setRect(aRect);
@@ -1618,7 +1618,7 @@ void TabBar::InsertPage(sal_uInt16 nPageId, const OUString& rText,
DBG_ASSERT( nPageId, "TabBar::InsertPage(): PageId == 0" );
DBG_ASSERT( GetPagePos( nPageId ) == PAGE_NOT_FOUND,
"TabBar::InsertPage(): PageId already exists" );
- DBG_ASSERT( nBits <= TPB_SPECIAL, "TabBar::InsertPage(): nBits is wrong" );
+ DBG_ASSERT( nBits <= TPB_DISPLAY_NAME_BLUE, "TabBar::InsertPage(): nBits is wrong" );
// create PageItem and insert in the item list
ImplTabBarItem* pItem = new ImplTabBarItem( nPageId, rText, nBits );
@@ -2097,7 +2097,7 @@ bool TabBar::StartEditMode(sal_uInt16 nPageId)
aForegroundColor = aFaceTextColor;
aBackgroundColor = aFaceColor;
}
- if (GetPageBits( mnEditId ) & TPB_SPECIAL)
+ if (GetPageBits( mnEditId ) & TPB_DISPLAY_NAME_BLUE)
{
aForegroundColor = Color(COL_LIGHTBLUE);
}