From d85412e08c8817be7c80d8b1b76874b9da4b0aeb Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Tue, 12 May 2015 20:15:40 +0900 Subject: refactor SvxPageWindow & SvxXMeasurePreview to use RenderContext Change-Id: Ic6f4d1238c0a4c8f4632cf26099ef406caf5dbda --- sw/source/uibase/inc/colex.hxx | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'sw/source/uibase/inc') diff --git a/sw/source/uibase/inc/colex.hxx b/sw/source/uibase/inc/colex.hxx index 39a677bae422..35a2809b7af8 100644 --- a/sw/source/uibase/inc/colex.hxx +++ b/sw/source/uibase/inc/colex.hxx @@ -47,14 +47,16 @@ class SW_DLLPUBLIC SwPageGridExample : public SwPageExample SwTextGridItem* pGridItem; bool m_bVertical; protected: - virtual void DrawPage( const Point& rPoint, - const bool bSecond, - const bool bEnabled ) SAL_OVERRIDE; + virtual void DrawPage(vcl::RenderContext& rRenderContext, + const Point& rPoint, + const bool bSecond, + const bool bEnabled) SAL_OVERRIDE; public: - SwPageGridExample(vcl::Window* pPar) : - SwPageExample(pPar), - pGridItem(0), - m_bVertical(false){} + SwPageGridExample(vcl::Window* pPar) + : SwPageExample(pPar) + , pGridItem(0) + , m_bVertical(false) + {} virtual ~SwPageGridExample(); virtual void dispose() SAL_OVERRIDE; @@ -68,9 +70,10 @@ class SW_DLLPUBLIC SwColExample : public SwPageExample using SwPageExample::UpdateExample; protected: - virtual void DrawPage( const Point& rPoint, - const bool bSecond, - const bool bEnabled ) SAL_OVERRIDE; + virtual void DrawPage(vcl::RenderContext& rRenderContext, + const Point& rPoint, + const bool bSecond, + const bool bEnabled) SAL_OVERRIDE; public: SwColExample(vcl::Window* pPar) @@ -95,7 +98,7 @@ private: SwFmtCol m_aCols; protected: - virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE; public: SwColumnOnlyExample(vcl::Window*); -- cgit