summaryrefslogtreecommitdiff
path: root/svx/source/styles/CommonStyleManager.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-07-15 16:19:12 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-07-17 08:50:39 +0900
commit53c40258d3572152b46e5ff5f51496ae6f32879b (patch)
tree2fac26f4cf2c4ec39290ea70297a7129aa1d905f /svx/source/styles/CommonStyleManager.cxx
parent76360c8de7bf6f0baef9c0440a2f721f15cc1564 (diff)
StyleManager: move style search to its own method
And remove obsolete CreateStylePreviewRenderer method with style name as input parameter. Change-Id: I0fdf54fd40148b417250b5a6bf2453994eb83634
Diffstat (limited to 'svx/source/styles/CommonStyleManager.cxx')
-rw-r--r--svx/source/styles/CommonStyleManager.cxx23
1 files changed, 0 insertions, 23 deletions
diff --git a/svx/source/styles/CommonStyleManager.cxx b/svx/source/styles/CommonStyleManager.cxx
index 0cabafd46b59..2dd825bcecef 100644
--- a/svx/source/styles/CommonStyleManager.cxx
+++ b/svx/source/styles/CommonStyleManager.cxx
@@ -15,29 +15,6 @@ namespace svx
{
sfx2::StylePreviewRenderer* CommonStyleManager::CreateStylePreviewRenderer(
- OutputDevice& rOutputDev, OUString const & rName,
- SfxStyleFamily eFamily, long nMaxHeight)
-{
- SfxStyleSheetBasePool* pPool = mrShell.GetStyleSheetPool();
- if (!pPool)
- return nullptr;
-
- pPool->SetSearchMask(eFamily, SFXSTYLEBIT_ALL);
- SfxStyleSheetBase* pStyle = nullptr;
- pStyle = pPool->First();
-
- while (pStyle)
- {
- if (rName == pStyle->GetName())
- return CreateStylePreviewRenderer(rOutputDev, pStyle, nMaxHeight);
-
- pStyle = pPool->Next();
- }
-
- return nullptr;
-}
-
-sfx2::StylePreviewRenderer* CommonStyleManager::CreateStylePreviewRenderer(
OutputDevice& rOutputDev, SfxStyleSheetBase* pStyle,
long nMaxHeight)
{