From 491bb212fae98c93197401cbd10aff8e24dc541f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 3 Jul 2013 12:37:29 +0100 Subject: allow changing the fill color user for tab previews Change-Id: Ie20e900fe9e1f9bfdcd5784b380aa4574d52c001 --- cui/source/tabpages/tabstpge.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cui') 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 --------------------------------------------- -- cgit