summaryrefslogtreecommitdiff
path: root/vcl/inc/vcl/salnativewidgets.hxx
diff options
context:
space:
mode:
authorRuslan Kabatsayev <b7.10110111@gmail.com>2012-07-09 03:31:54 +0400
committerMichael Meeks <michael.meeks@suse.com>2012-07-10 17:34:55 +0100
commit17ea32a1a36d81a0a12df12adbe15e8eaf1c7c62 (patch)
treef2571b7f5b0a1da2b040ee48efeb160cd82319ba /vcl/inc/vcl/salnativewidgets.hxx
parent1c222c5a767311d6628bdef3cfc7d7bc1e72e6ea (diff)
Make bottom tabbar items follow native theme
Change-Id: Ia1c4b4ece81655a91c6e489ee51291684e06c157
Diffstat (limited to 'vcl/inc/vcl/salnativewidgets.hxx')
-rw-r--r--vcl/inc/vcl/salnativewidgets.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/inc/vcl/salnativewidgets.hxx b/vcl/inc/vcl/salnativewidgets.hxx
index 40d4fbde371a..2ae9473766a8 100644
--- a/vcl/inc/vcl/salnativewidgets.hxx
+++ b/vcl/inc/vcl/salnativewidgets.hxx
@@ -366,16 +366,20 @@ class VCL_DLLPUBLIC SliderValue : public ImplControlValue
#define TABITEM_RIGHTALIGNED 0x002 // the tabitem is aligned with the right border of the TabControl
#define TABITEM_FIRST_IN_GROUP 0x004 // the tabitem is the first in group of tabitems
#define TABITEM_LAST_IN_GROUP 0x008 // the tabitem is the last in group of tabitems
+/* This constant is independent from the ones above */
+#define TABITEM_IS_AT_BOTTOM 0x001 // the tabitem at the bottom of the TabControl
class VCL_DLLPUBLIC TabitemValue : public ImplControlValue
{
public:
unsigned int mnAlignment;
+ unsigned int mnPosition;
inline TabitemValue()
: ImplControlValue( CTRL_TAB_ITEM, BUTTONVALUE_DONTKNOW, 0 )
{
mnAlignment = 0;
+ mnPosition = 0;
};
virtual ~TabitemValue();
virtual TabitemValue* clone() const;
@@ -386,6 +390,7 @@ class VCL_DLLPUBLIC TabitemValue : public ImplControlValue
sal_Bool isNotAligned() const { return (mnAlignment & (TABITEM_LEFTALIGNED | TABITEM_RIGHTALIGNED)) == 0; }
sal_Bool isFirst() const { return (mnAlignment & TABITEM_FIRST_IN_GROUP) != 0; }
sal_Bool isLast() const { return (mnAlignment & TABITEM_LAST_IN_GROUP) != 0; }
+ sal_Bool isAtBottom() const { return (mnPosition & TABITEM_IS_AT_BOTTOM) != 0; }
};
/* SpinbuttonValue: