summaryrefslogtreecommitdiff
path: root/include/svl
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:25:12 +0100
commit05e2fd162ef86ebe4ea2a2a679cabeae33e844f0 (patch)
tree08aa4bbfd2962bdcef7aa0024293e3b975efa119 /include/svl
parent7b9b57b41936eea673eb678407ed817856ba0912 (diff)
Related: fdo#79142 make SetName default to Reindexing
Change-Id: I408042bc7bf1a5a955203d65d2c68ebf9527b9b5
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/style.hxx9
1 files changed, 7 insertions, 2 deletions
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. */