summaryrefslogtreecommitdiff
path: root/include/sfx2/objsh.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-04-20 12:23:23 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-04-21 10:07:01 +0900
commit68d06f69b56611bc6c95c1c2e8af400c7985a8fc (patch)
tree203bf6e9909ad3027eb29a08be183c6895fd41e8 /include/sfx2/objsh.hxx
parenta630f4f2e18bed78c1c1e4ef793b4636ce5ebcfc (diff)
StyleManager & StylePreviewRenderer + common implementation
StyleManager is a new class responsible to handle document styles. The current implementation has only the responsibility to provide a implementation of StylePreviewReneder, but the idea is to move all style related functionallity to this class (and relieve the SfxObjectShell a bit). CommonStyleMAnager is the common impl. StylePreviewRenderer is responsible to render a preview of a style. As styles can be handled differently by each component it is possible to provide component specific StylePreviewRendered, but currently only the common one is implemented and used by sw. Change-Id: Id271485f571a777a3e94f855d3c614a2efc14628
Diffstat (limited to 'include/sfx2/objsh.hxx')
-rw-r--r--include/sfx2/objsh.hxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index 152e864dcc8c..041631e3aa01 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -97,6 +97,7 @@ enum class SfxModelFlags;
namespace sfx2
{
class SvLinkSource;
+ class StyleManager;
}
namespace com { namespace sun { namespace star { namespace datatransfer { class XTransferable; } } } }
@@ -494,8 +495,14 @@ public:
// Contents
virtual SfxStyleSheetBasePool* GetStyleSheetPool();
- void SetStyleSheetPool(SfxStyleSheetBasePool *pBasePool ) {
- pStyleSheetPool = pBasePool; }
+ void SetStyleSheetPool(SfxStyleSheetBasePool *pBasePool )
+ {
+ pStyleSheetPool = pBasePool;
+ }
+
+ virtual void LoadStyles(SfxObjectShell &rSource);
+
+ virtual sfx2::StyleManager* GetStyleManager();
// Determine the position of the "Automatic" filter in the stylist
void SetAutoStyleFilterIndex(sal_uInt16 nSet);
@@ -510,7 +517,6 @@ public:
virtual std::set<Color> GetDocColors();
- virtual void LoadStyles( SfxObjectShell &rSource );
void ReadNote( INote * );
void UpdateNote( INote * );