diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-18 14:45:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-18 18:41:52 +0200 |
commit | fd2c6137ea45e0587a56bf219b1e5d8fb72cce03 (patch) | |
tree | 58366199f5667d6c4b8f3c0666c40a44904a7bfc /svtools | |
parent | c22883f6018858bd3198059f696fa3dff264c24d (diff) |
WB_TOPBORDER,WB_3DTAB are dead
since
commit 8ab086b6cc054501bfbf7ef6fa509c393691e860
initial import
Change-Id: Icbbf01de92c6dab4f9f94052cda784326a051ad8
Reviewed-on: https://gerrit.libreoffice.org/41295
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/tabbar.cxx | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index a1d5218786a9..8ca68320d8eb 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -78,18 +78,11 @@ public: WinBits nWinStyle = mrParent.GetStyle(); // draw extra line if above and below border - if ((nWinStyle & WB_BORDER) || (nWinStyle & WB_TOPBORDER)) + if (nWinStyle & WB_BORDER) { Size aOutputSize(mrParent.GetOutputSizePixel()); tools::Rectangle aOutRect = mrParent.GetPageArea(); - // also draw border in 3D for 3D-tabs - if (nWinStyle & WB_3DTAB) - { - mrRenderContext.SetLineColor(mrStyleSettings.GetShadowColor()); - mrRenderContext.DrawLine(Point(aOutRect.Left(), 0), Point(aOutputSize.Width(), 0)); - } - // draw border (line above and line below) mrRenderContext.SetLineColor(mrStyleSettings.GetDarkShadowColor()); mrRenderContext.DrawLine(aOutRect.TopLeft(), Point(aOutputSize.Width() - 1, aOutRect.Top())); @@ -552,9 +545,6 @@ void TabBar::ImplInit( WinBits nWinStyle ) mbMirrored = false; mbScrollAlwaysEnabled = false; - if ( nWinStyle & WB_3DTAB ) - mnOffY++; - ImplInitControls(); if (mpImpl->mpFirstButton) @@ -645,15 +635,6 @@ void TabBar::ImplGetColors(const StyleSettings& rStyleSettings, rFaceTextColor = rStyleSettings.GetButtonTextColor(); rSelectColor = rStyleSettings.GetActiveTabColor(); rSelectTextColor = rStyleSettings.GetWindowTextColor(); - - // For 3D-tabs the selection- and face-colours are swapped, - // as the selected tabs should appear in 3D - if (mnWinStyle & WB_3DTAB) - { - using std::swap; - swap(rFaceColor, rSelectColor); - swap(rFaceTextColor, rSelectTextColor); - } } bool TabBar::ImplCalcWidth() |