diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-03 12:37:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-03 12:48:21 +0100 |
commit | 491bb212fae98c93197401cbd10aff8e24dc541f (patch) | |
tree | 65eb3483327fcde068f4543140af1c648dd0d8db /cui | |
parent | c98e1b127be779cbe9b388afa043f8d3c8798183 (diff) |
allow changing the fill color user for tab previews
Change-Id: Ie20e900fe9e1f9bfdcd5784b380aa4574d52c001
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tabstpge.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cui/source/tabpages/tabstpge.cxx b/cui/source/tabpages/tabstpge.cxx index 0426c3b8a62f..b620af14f0f6 100644 --- a/cui/source/tabpages/tabstpge.cxx +++ b/cui/source/tabpages/tabstpge.cxx @@ -45,7 +45,9 @@ private: public: TabWin_Impl( Window* pParent, WinBits nBits) : - Window( pParent, nBits ){} + Window( pParent, nBits ) + { + } virtual void Paint( const Rectangle& rRect ); @@ -55,7 +57,7 @@ public: extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeTabWin_Impl(Window *pParent, VclBuilder::stringmap &) { - return new TabWin_Impl(pParent, WB_BORDER); + return new TabWin_Impl(pParent, 0); } // static ---------------------------------------------------------------- @@ -87,7 +89,7 @@ void TabWin_Impl::Paint( const Rectangle& ) Size aSize = GetOutputSizePixel(); aPnt.X() = aSize.Width() / 2; aPnt.Y() = aSize.Height() / 2; - Ruler::DrawTab( this, aPnt, nTabStyle ); + Ruler::DrawTab( this, GetSettings().GetStyleSettings().GetFontColor(), aPnt, nTabStyle ); } // class SvxTabulatorTabPage --------------------------------------------- |