summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-11 13:55:59 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-11 13:58:33 +0900
commit0617f87cddb2154b8d03380f0b20ecd09687fb1c (patch)
tree855919b8d7e0eddc8a30b6bbdaedc9c0d9294b4c /cui
parent71c561740d3a11081c7737376948212fb0937fe4 (diff)
refactor Ruler to use RenderContext
Change-Id: Ic4c57e161419a9b185b2c5ee8e8b79d3da9e4a7e
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/tabstpge.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/tabpages/tabstpge.cxx b/cui/source/tabpages/tabstpge.cxx
index 5aee6efa500e..f16ca09d0804 100644
--- a/cui/source/tabpages/tabstpge.cxx
+++ b/cui/source/tabpages/tabstpge.cxx
@@ -85,14 +85,14 @@ void FillUpWithDefTabs_Impl( long nDefDist, SvxTabStopItem& rTabs )
// class TabWin_Impl -----------------------------------------------------
-void TabWin_Impl::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& )
+void TabWin_Impl::Paint(vcl::RenderContext& rRenderContext, const Rectangle&)
{
// Paint tabulators
- Point aPnt;
- Size aSize = GetOutputSizePixel();
- aPnt.X() = aSize.Width() / 2;
- aPnt.Y() = aSize.Height() / 2;
- Ruler::DrawTab( this, GetSettings().GetStyleSettings().GetFontColor(), aPnt, nTabStyle );
+ Point aPoint;
+ Size aSize = rRenderContext.GetOutputSizePixel();
+ aPoint.X() = aSize.Width() / 2;
+ aPoint.Y() = aSize.Height() / 2;
+ Ruler::DrawTab(rRenderContext, rRenderContext.GetSettings().GetStyleSettings().GetFontColor(), aPoint, nTabStyle);
}
// class SvxTabulatorTabPage ---------------------------------------------