summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-06-08 14:26:49 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-07-17 08:50:39 +0900
commit76360c8de7bf6f0baef9c0440a2f721f15cc1564 (patch)
tree0e519559e7c01cb2e0dc742cb879e0c30e724435 /svx
parent210f42a318cbac62de835ccacbc1fc0e36f713f6 (diff)
create the stlye preview renderer with style as parameter
Change-Id: Ie191467305279253f165f13980c125f6b7b9fdde
Diffstat (limited to 'svx')
-rw-r--r--svx/source/styles/CommonStyleManager.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/svx/source/styles/CommonStyleManager.cxx b/svx/source/styles/CommonStyleManager.cxx
index d452ba49748a..0cabafd46b59 100644
--- a/svx/source/styles/CommonStyleManager.cxx
+++ b/svx/source/styles/CommonStyleManager.cxx
@@ -29,13 +29,21 @@ sfx2::StylePreviewRenderer* CommonStyleManager::CreateStylePreviewRenderer(
while (pStyle)
{
if (rName == pStyle->GetName())
- return new CommonStylePreviewRenderer(mrShell, rOutputDev, pStyle, nMaxHeight);
+ return CreateStylePreviewRenderer(rOutputDev, pStyle, nMaxHeight);
+
pStyle = pPool->Next();
}
return nullptr;
}
+sfx2::StylePreviewRenderer* CommonStyleManager::CreateStylePreviewRenderer(
+ OutputDevice& rOutputDev, SfxStyleSheetBase* pStyle,
+ long nMaxHeight)
+{
+ return new CommonStylePreviewRenderer(mrShell, rOutputDev, pStyle, nMaxHeight);
+}
+
} // end svx namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */