summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-24 11:55:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-24 12:46:57 +0100
commite904562af54545684b32d2042ded6bdb9459edca (patch)
tree1fa0f2d0b195647e601a72fe926b085ccdc23b8d /include
parent965b2059cb6965df643d5245eb318c087bc251c4 (diff)
Related: fdo#81641 create new styles with an initial name
instead of creating with a blank name and changing it later this way undo of a style creation is initialized with its name and so create a style followed by deleting a style and undoing all those steps doesn't crash Change-Id: Ida7a34410d5d7b05edcb86950aabb3c672b82c8f
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/styledlg.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sfx2/styledlg.hxx b/include/sfx2/styledlg.hxx
index eb6d15205409..41a90204a538 100644
--- a/include/sfx2/styledlg.hxx
+++ b/include/sfx2/styledlg.hxx
@@ -25,6 +25,7 @@
#include <sfx2/tabdlg.hxx>
class SfxStyleSheetBase;
+class SfxStyleSheetBasePool;
class SFX2_DLLPUBLIC SfxStyleDialog: public SfxTabDialog
{
@@ -45,6 +46,8 @@ public:
const SfxStyleSheetBase& GetStyleSheet() const { return *pStyle; }
virtual short Ok() SAL_OVERRIDE;
+
+ static OUString GenerateUnusedName(SfxStyleSheetBasePool &rPool);
};
#endif