summaryrefslogtreecommitdiffstats
path: root/sw/inc/fmtmeta.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2010-01-08 17:13:49 +0100
committerMichael Stahl <mst@openoffice.org>2010-01-08 17:13:49 +0100
commite9ca667fa65f946acec102e3932372010b8622bd (patch)
tree31b08e6d80c537aa0ecaabf477c67bcd539c1175 /sw/inc/fmtmeta.hxx
parentswunolocking1: #i105557#: unobaseclass.hxx: add XServiceInfo helpers: (diff)
downloadcore-e9ca667fa65f946acec102e3932372010b8622bd.tar.gz
core-e9ca667fa65f946acec102e3932372010b8622bd.zip
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-xsw/inc/fmtmeta.hxx8
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();