summaryrefslogtreecommitdiff
path: root/include/svl/style.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/svl/style.hxx')
-rw-r--r--include/svl/style.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/svl/style.hxx b/include/svl/style.hxx
index dafa95ecf30b..3451312bfd53 100644
--- a/include/svl/style.hxx
+++ b/include/svl/style.hxx
@@ -139,6 +139,11 @@ public:
virtual void SetHelpId( const OUString& r, sal_uLong nId );
virtual SfxItemSet& GetItemSet();
+ /// Due to writer's usual lack of sanity this is a separate function for
+ /// preview only; it shall not create the style in case it does not exist.
+ /// If the style has parents, it is _not_ required that the returned item
+ /// set has parents (i.e. use it for display purposes only).
+ virtual std::unique_ptr<SfxItemSet> GetItemSetForPreview();
};
/* Class to iterate and search on a SfxStyleSheetBasePool */