From 76360c8de7bf6f0baef9c0440a2f721f15cc1564 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 8 Jun 2015 14:26:49 +0900 Subject: create the stlye preview renderer with style as parameter Change-Id: Ie191467305279253f165f13980c125f6b7b9fdde --- include/sfx2/StyleManager.hxx | 4 ++++ include/svx/CommonStyleManager.hxx | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'include') diff --git a/include/sfx2/StyleManager.hxx b/include/sfx2/StyleManager.hxx index 962fbb967e47..badc39caea3c 100644 --- a/include/sfx2/StyleManager.hxx +++ b/include/sfx2/StyleManager.hxx @@ -38,6 +38,10 @@ public: virtual StylePreviewRenderer* CreateStylePreviewRenderer( OutputDevice& rOutputDev, OUString const & rName, SfxStyleFamily eFamily, long nMaxHeight = 32) = 0; + + virtual StylePreviewRenderer* CreateStylePreviewRenderer( + OutputDevice& rOutputDev, SfxStyleSheetBase* pStyle, + long nMaxHeight = 32) = 0; }; } // end namespace sfx2 diff --git a/include/svx/CommonStyleManager.hxx b/include/svx/CommonStyleManager.hxx index 0ce0a3de21fc..1fc22a60d1e8 100644 --- a/include/svx/CommonStyleManager.hxx +++ b/include/svx/CommonStyleManager.hxx @@ -32,6 +32,10 @@ public: virtual sfx2::StylePreviewRenderer* CreateStylePreviewRenderer( OutputDevice& rOutputDev, OUString const & rName, SfxStyleFamily eFamily, long nMaxHeight = 32) SAL_OVERRIDE; + + virtual sfx2::StylePreviewRenderer* CreateStylePreviewRenderer( + OutputDevice& rOutputDev, SfxStyleSheetBase* pStyle, + long nMaxHeight = 32) SAL_OVERRIDE; }; } // end namespace svx -- cgit