diff options
author | Michael Stahl <mst@openoffice.org> | 2010-01-08 17:13:49 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2010-01-08 17:13:49 +0100 |
commit | e9ca667fa65f946acec102e3932372010b8622bd (patch) | |
tree | 31b08e6d80c537aa0ecaabf477c67bcd539c1175 /sw/inc/fmtmeta.hxx | |
parent | 6e3f9b6a9a1f70811e393d10a21addfaeedc174e (diff) |
swunolocking1: refactor Meta registration at its text node.
Meta will now be registered via SwTxtMeta::ChgTxtNode(), with additional
workarounds necessary in SwFmtMeta::DoCopy().
Diffstat (limited to 'sw/inc/fmtmeta.hxx')
-rwxr-xr-x | sw/inc/fmtmeta.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/inc/fmtmeta.hxx b/sw/inc/fmtmeta.hxx index 952181d0498c..6d3f63ece477 100755 --- a/sw/inc/fmtmeta.hxx +++ b/sw/inc/fmtmeta.hxx @@ -122,8 +122,8 @@ public: virtual SfxPoolItem * Clone( SfxItemPool *pPool = 0 ) const; // TYPEINFO(); - // notify clients registered at m_pMeta that this meta is being removed - void NotifyRemoval(); + /// notify clients registered at m_pMeta that this meta is being (re-)moved + void NotifyChangeTxtNode(SwTxtNode *const pTxtNode); static SwFmtMeta * CreatePoolDefault( const USHORT i_nWhich ); ::sw::Meta * GetMeta() { return m_pMeta.get(); } /// this method <em>must</em> be called when the hint is actually copied @@ -140,7 +140,7 @@ class Meta , public SwModify { protected: - friend class ::SwFmtMeta; // SetFmtMeta + friend class ::SwFmtMeta; // SetFmtMeta, NotifyChangeTxtNode friend class ::SwXMeta; // GetTxtNode, GetTxtAttr SwFmtMeta * m_pFmt; @@ -151,6 +151,8 @@ protected: SwFmtMeta * GetFmtMeta() const { return m_pFmt; } void SetFmtMeta( SwFmtMeta * const i_pFmt ) { m_pFmt = i_pFmt; }; + void NotifyChangeTxtNode(); + public: explicit Meta(SwFmtMeta * const i_pFmt = 0); virtual ~Meta(); |