diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-24 11:55:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-24 12:46:57 +0100 |
commit | e904562af54545684b32d2042ded6bdb9459edca (patch) | |
tree | 1fa0f2d0b195647e601a72fe926b085ccdc23b8d /include | |
parent | 965b2059cb6965df643d5245eb318c087bc251c4 (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.hxx | 3 |
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 |