diff options
author | Ruslan Kabatsayev <b7.10110111@gmail.com> | 2012-07-16 01:33:02 +0400 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-07-16 09:29:03 +0200 |
commit | 720e2906921ed10d9d8ec62a0121813fac9c622a (patch) | |
tree | 994b1b9f92ce515552db517957837d404989b345 /svtools | |
parent | 8b8e611e9e17d55c49209f02f70c4a0acd2e0448 (diff) |
Revert "Make bottom tabbar items follow native theme"
This reverts commit 17ea32a1a36d81a0a12df12adbe15e8eaf1c7c62.
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/tabbar.cxx | 42 |
1 files changed, 6 insertions, 36 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 0c43549beccf..a922241b2b44 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -1098,20 +1098,14 @@ public: void drawOutputAreaBorder() { - Size aOutputSize = mrParent.GetOutputSizePixel(); - Rectangle aOutRect = mrParent.GetPageArea(); - - Rectangle borderRect(Point(aOutRect.Left(),-10),Size(aOutputSize.Width(),12)); - if( mrParent.IsNativeControlSupported(CTRL_FRAME,PART_ENTIRE_CONTROL) && - mrParent.DrawNativeControl(CTRL_FRAME,PART_ENTIRE_CONTROL,borderRect, - CTRL_STATE_ENABLED,ImplControlValue(FRAME_DRAW_IN),rtl::OUString()) ) - return; - WinBits nWinStyle = mrParent.GetStyle(); // Bei Border oben und unten einen Strich extra malen if ( (nWinStyle & WB_BORDER) || (nWinStyle & WB_TOPBORDER) ) { + Size aOutputSize = mrParent.GetOutputSizePixel(); + Rectangle aOutRect = mrParent.GetPageArea(); + // Bei 3D-Tabs wird auch der Border in 3D gemalt if ( nWinStyle & WB_3DTAB ) { @@ -1204,27 +1198,6 @@ public: void drawTab() { - ControlState nState(CTRL_STATE_ENABLED); - if( mbSelected ) - nState|=CTRL_STATE_SELECTED; - TabitemValue tiValue; - tiValue.mnPosition|=TABITEM_IS_AT_BOTTOM; - Rectangle tabRect(maRect); - tabRect.Left()+=5; - tabRect.Right()-=4; - tabRect.Bottom()+=1; - if( !mbSelected ) - { - tabRect.Bottom()-=2; - tabRect.Top()+=2; - } - if( mrParent.IsNativeControlSupported(CTRL_TAB_ITEM,PART_ENTIRE_CONTROL) && - mrParent.DrawNativeControl(CTRL_TAB_ITEM,PART_ENTIRE_CONTROL,tabRect, - nState,tiValue,rtl::OUString()) ) - { - return; - } - mrParent.SetLineColor(mpStyleSettings->GetDarkShadowColor()); // Je nach Status die richtige FillInBrush setzen @@ -1449,12 +1422,9 @@ void TabBar::Paint( const Rectangle& ) if ( bCurrent ) { - if(!IsNativeControlSupported(CTRL_TAB_ITEM,PART_ENTIRE_CONTROL)) - { - SetLineColor(); - SetFillColor(aSelectColor); - aDrawer.drawOverTopBorder(mnWinStyle & WB_3DTAB); - } + SetLineColor(); + SetFillColor(aSelectColor); + aDrawer.drawOverTopBorder(mnWinStyle & WB_3DTAB); return; } |