summaryrefslogtreecommitdiff
path: root/vcl/osx/salnativewidgets.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-20 13:29:57 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-05-21 06:40:36 +0000
commitebdba869de1de51b4cc7ca24c1a6a639d44de1bf (patch)
treea51965a28861f7e82dd2f55cf88be251a67f0347 /vcl/osx/salnativewidgets.cxx
parent5bf6fecde772d1fb35645fe217e6fe3b5b5ac918 (diff)
convert TABITEM constants to scoped enum
Change-Id: Ia16127a7d97ef7db59bd2b0e6b8d14d8625bc526 Reviewed-on: https://gerrit.libreoffice.org/15827 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/osx/salnativewidgets.cxx')
-rw-r--r--vcl/osx/salnativewidgets.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx
index 5aa6f8d097e8..8103b56235f0 100644
--- a/vcl/osx/salnativewidgets.cxx
+++ b/vcl/osx/salnativewidgets.cxx
@@ -829,18 +829,18 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
aTabItemDrawInfo.position=kHIThemeTabPositionMiddle;
TabitemValue const * pTabValue = static_cast<TabitemValue const *>(&aValue);
- unsigned int nAlignment = pTabValue->mnAlignment;
- //TABITEM_LEFTALIGNED (and TABITEM_RIGHTALIGNED) for the leftmost (or rightmost) tab
+ TabitemFlags nAlignment = pTabValue->mnAlignment;
+ //TabitemFlags::LeftAligned (and TabitemFlags::RightAligned) for the leftmost (or rightmost) tab
//when there are several lines of tabs because there is only one first tab and one
- //last tab and TABITEM_FIRST_IN_GROUP (and TABITEM_LAST_IN_GROUP) because when the
- //line width is different from window width, there may not be TABITEM_RIGHTALIGNED
- if( ( (nAlignment & TABITEM_LEFTALIGNED)&&(nAlignment & TABITEM_RIGHTALIGNED) ) ||
- ( (nAlignment & TABITEM_FIRST_IN_GROUP)&&(nAlignment & TABITEM_LAST_IN_GROUP) )
+ //last tab and TabitemFlags::FirstInGroup (and TabitemFlags::LastInGroup) because when the
+ //line width is different from window width, there may not be TabitemFlags::RightAligned
+ if( ( (nAlignment & TabitemFlags::LeftAligned)&&(nAlignment & TabitemFlags::RightAligned) ) ||
+ ( (nAlignment & TabitemFlags::FirstInGroup)&&(nAlignment & TabitemFlags::LastInGroup) )
) //tab alone
aTabItemDrawInfo.position=kHIThemeTabPositionOnly;
- else if((nAlignment & TABITEM_LEFTALIGNED)||(nAlignment & TABITEM_FIRST_IN_GROUP))
+ else if((nAlignment & TabitemFlags::LeftAligned)||(nAlignment & TabitemFlags::FirstInGroup))
aTabItemDrawInfo.position=kHIThemeTabPositionFirst;
- else if((nAlignment & TABITEM_RIGHTALIGNED)||(nAlignment & TABITEM_LAST_IN_GROUP))
+ else if((nAlignment & TabitemFlags::RightAligned)||(nAlignment & TabitemFlags::LastInGroup))
aTabItemDrawInfo.position=kHIThemeTabPositionLast;
//support for RTL