diff options
author | Ruslan Kabatsayev <b7.10110111@gmail.com> | 2012-07-08 23:40:46 +0400 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-25 12:50:33 +0100 |
commit | 64124314a11493849e50c27ad210378743f39056 (patch) | |
tree | 1d6988e68e3da2265b9cb9343e64e26645d190c6 /svtools | |
parent | 4c3a16be845abf4037fab028148423c18a964056 (diff) |
Use native theme to draw TabBar background
Change-Id: Ia274a6438dbb1e3ae94d492df6b9ff86343dd272
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/tabbar.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index a922241b2b44..e844ef787fe3 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -1328,8 +1328,12 @@ private: } -void TabBar::Paint( const Rectangle& ) +void TabBar::Paint( const Rectangle& rect ) { + if(IsNativeControlSupported(CTRL_WINDOW_BACKGROUND,PART_ENTIRE_CONTROL)) + DrawNativeControl(CTRL_WINDOW_BACKGROUND,PART_ENTIRE_CONTROL,rect, + CTRL_STATE_ENABLED,ImplControlValue(0),rtl::OUString()); + // Items berechnen und ausgeben sal_uInt16 nItemCount = (sal_uInt16)mpItemList->size(); if (!nItemCount) |