diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2015-04-10 21:32:36 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-08-29 13:13:14 +0200 |
commit | d460ec312a5510955828be1ff35f92faef89e755 (patch) | |
tree | a962dbfd313dff57d91551ef907c0ea55c3228e7 /sw/inc/format.hxx | |
parent | 9c3d9e9fb49318ceda69f060a8e847b15d679245 (diff) |
Convert SwFrameFormats to boost::multi_index
This is almost the same situation as SwPageDescs. What makes this
more complicated is the fact, that actually duplicated draw objects
are allowed, in regard to the key values "type" and "name".
And actually for some types, duplicate names are not allowed, e.g.
SwDoc::FindFlyByName( const OUString& rName, sal_Int8 nNdTyp )
expects a single result!
Change-Id: I6e0ea1099c1c1e6cfe90926170e27179722e88b8
Diffstat (limited to 'sw/inc/format.hxx')
-rw-r--r-- | sw/inc/format.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/inc/format.hxx b/sw/inc/format.hxx index 66e61cf662e1..1e01696df74d 100644 --- a/sw/inc/format.hxx +++ b/sw/inc/format.hxx @@ -43,6 +43,8 @@ namespace drawinglayer { namespace attribute { /// Base class for various Writer styles. class SW_DLLPUBLIC SwFormat : public SwModify { + friend class SwFrameFormat; + OUString m_aFormatName; SwAttrSet m_aSet; @@ -111,7 +113,7 @@ public: const OUString& GetName() const { return m_aFormatName; } inline bool HasName(const OUString &rName) const { return m_aFormatName == rName; } - void SetName( const OUString& rNewName, bool bBroadcast=false ); + virtual void SetName( const OUString& rNewName, bool bBroadcast=false ); /// For querying the attribute array. inline const SwAttrSet& GetAttrSet() const { return m_aSet; } |