diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-12 20:15:40 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-13 08:39:27 +0900 |
commit | d85412e08c8817be7c80d8b1b76874b9da4b0aeb (patch) | |
tree | 6b8aab16c7fe8873557c0525b02dcee03df03b59 /sw/source/uibase/inc | |
parent | 9a81ba666bd5bb48b3a6a95e580659c7d372e8b7 (diff) |
refactor SvxPageWindow & SvxXMeasurePreview to use RenderContext
Change-Id: Ic6f4d1238c0a4c8f4632cf26099ef406caf5dbda
Diffstat (limited to 'sw/source/uibase/inc')
-rw-r--r-- | sw/source/uibase/inc/colex.hxx | 25 |
1 files changed, 14 insertions, 11 deletions
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*); |