diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-14 09:52:13 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-14 10:00:16 +0900 |
commit | 35cae85529a10aa691aba5038464de9e6b72c5bf (patch) | |
tree | abbe26e812654968dedc518e96fd88c2e4c603cb /sfx2/source/inc | |
parent | ee142a4aee57d7034a5168ce91df321531e5073d (diff) |
refactor PreviewWindow to use RenderContext
Change-Id: I9e14bd9f6d359fad4b83b3243758b1a5db0d60b2
Diffstat (limited to 'sfx2/source/inc')
-rw-r--r-- | sfx2/source/inc/preview.hxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sfx2/source/inc/preview.hxx b/sfx2/source/inc/preview.hxx index 0c2d1911beab..53bc2653ad5e 100644 --- a/sfx2/source/inc/preview.hxx +++ b/sfx2/source/inc/preview.hxx @@ -19,7 +19,6 @@ #ifndef INCLUDED_SFX2_SOURCE_INC_PREVIEW_HXX #define INCLUDED_SFX2_SOURCE_INC_PREVIEW_HXX - #include <sfx2/doctempl.hxx> #include <sfx2/basedlgs.hxx> @@ -40,14 +39,13 @@ public: class SfxPreviewWin_Impl: public SfxPreviewBase_Impl { protected: - virtual void Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE; public: SfxPreviewWin_Impl(vcl::Window* pParent, WinBits nStyle) : SfxPreviewBase_Impl(pParent, nStyle) - { - } - static void ImpPaint( - const Rectangle& rRect, GDIMetaFile* pFile, vcl::Window* pWindow ); + {} + + static void ImpPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect, GDIMetaFile* pFile); }; #endif |