summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-28 13:23:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-28 13:26:22 +0100
commitf438d84fd91a7174d748d870854974bc97b35d8c (patch)
tree1a4e5e5fab4eb03ca5943bd5a71048e5e8dfd2e6 /include
parent74baee744c8ff5b3a34c40ed16803d07f3f5fc2d (diff)
Related: fdo#79142 make SetName default to Reindexing
Change-Id: I408042bc7bf1a5a955203d65d2c68ebf9527b9b5 (cherry picked from commit 05e2fd162ef86ebe4ea2a2a679cabeae33e844f0)
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/mgetempl.hxx1
-rw-r--r--include/svl/style.hxx9
2 files changed, 7 insertions, 3 deletions
diff --git a/include/sfx2/mgetempl.hxx b/include/sfx2/mgetempl.hxx
index 085da933ed2e..6082fbe370b3 100644
--- a/include/sfx2/mgetempl.hxx
+++ b/include/sfx2/mgetempl.hxx
@@ -54,7 +54,6 @@ class SfxManageStyleSheetPage : public SfxTabPage
SfxStyleSheetBase *pStyle;
SfxStyleFamilies *pFamilies;
- SfxStyleSheetBasePool *pPool;
const SfxStyleFamilyItem *pItem;
OUString aBuf;
bool bModified;
diff --git a/include/svl/style.hxx b/include/svl/style.hxx
index 493ba24004d3..f82d14266fb3 100644
--- a/include/svl/style.hxx
+++ b/include/svl/style.hxx
@@ -105,8 +105,13 @@ public:
// returns the internal name of this style
virtual const OUString& GetName() const;
- // sets the internal name of this style
- virtual bool SetName( const OUString& );
+ // sets the internal name of this style.
+ //
+ // If the name of a style is changed, then the styles container needs to be
+ // reindexed (see IndexedStyleSheets). If you set bReindexNow to false to
+ // defer that indexing, then you must call the Reindex manually on the
+ // SfxStyleSheetBasePool parent.
+ virtual bool SetName(const OUString& rNewName, bool bReindexNow = true);
/** returns the display name of this style, it is used at the user interface.
If the display name is empty, this method returns the internal name. */