summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-07-03 12:37:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-07-03 12:48:21 +0100
commit491bb212fae98c93197401cbd10aff8e24dc541f (patch)
tree65eb3483327fcde068f4543140af1c648dd0d8db /svtools
parentc98e1b127be779cbe9b388afa043f8d3c8798183 (diff)
allow changing the fill color user for tab previews
Change-Id: Ie20e900fe9e1f9bfdcd5784b380aa4574d52c001
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ruler.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 7e5e2f17585d..0a683692be2a 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2746,15 +2746,14 @@ void Ruler::SetStyle( WinBits nStyle )
// -----------------------------------------------------------------------
-void Ruler::DrawTab( OutputDevice* pDevice, const Point& rPos, sal_uInt16 nStyle )
+void Ruler::DrawTab( OutputDevice* pDevice, const Color &rFillColor, const Point& rPos, sal_uInt16 nStyle )
{
- /*const StyleSettings& rStyleSettings =*/ pDevice->GetSettings().GetStyleSettings();
Point aPos( rPos );
- sal_uInt16 nTabStyle = nStyle & (RULER_TAB_STYLE | RULER_TAB_RTL);
+ sal_uInt16 nTabStyle = nStyle & (RULER_TAB_STYLE | RULER_TAB_RTL);
pDevice->Push( PUSH_LINECOLOR | PUSH_FILLCOLOR );
pDevice->SetLineColor();
- pDevice->SetFillColor( pDevice->GetSettings().GetStyleSettings().GetShadowColor() );
+ pDevice->SetFillColor(rFillColor);
ImplCenterTabPos( aPos, nTabStyle );
ImplDrawRulerTab( pDevice, aPos, nTabStyle, nStyle );
pDevice->Pop();