summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/txtnode')
-rw-r--r--sw/source/core/txtnode/atrfld.cxx2
-rw-r--r--sw/source/core/txtnode/atrftn.cxx2
-rw-r--r--sw/source/core/txtnode/atrref.cxx2
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx18
-rw-r--r--sw/source/core/txtnode/thints.cxx6
-rw-r--r--sw/source/core/txtnode/txtedt.cxx8
6 files changed, 19 insertions, 19 deletions
diff --git a/sw/source/core/txtnode/atrfld.cxx b/sw/source/core/txtnode/atrfld.cxx
index f8f326fc8f8f..aa4dab94b8e5 100644
--- a/sw/source/core/txtnode/atrfld.cxx
+++ b/sw/source/core/txtnode/atrfld.cxx
@@ -294,7 +294,7 @@ void SwFormatField::UpdateTextNode(const SfxPoolItem* pOld, const SfxPoolItem* p
{ // invalidate cached UNO object
m_wXTextField = nullptr;
// ??? why does this Modify method not already do this?
- CallSwClientNotify(sw::LegacyModifyHint(pOld, pNew));
+ NotifyClients(pOld, pNew);
return;
}
diff --git a/sw/source/core/txtnode/atrftn.cxx b/sw/source/core/txtnode/atrftn.cxx
index 02188cf011de..5ec1f6f93a01 100644
--- a/sw/source/core/txtnode/atrftn.cxx
+++ b/sw/source/core/txtnode/atrftn.cxx
@@ -165,7 +165,7 @@ void SwFormatFootnote::InvalidateFootnote()
{
SwPtrMsgPoolItem const item(RES_REMOVE_UNO_OBJECT,
&static_cast<sw::BroadcastingModify&>(*this)); // cast to base class (void*)
- CallSwClientNotify(sw::LegacyModifyHint(&item, &item));
+ NotifyClients(&item, &item);
}
void SwFormatFootnote::SetEndNote( bool b )
diff --git a/sw/source/core/txtnode/atrref.cxx b/sw/source/core/txtnode/atrref.cxx
index 8b11c4e525c7..fdea6ce5dad7 100644
--- a/sw/source/core/txtnode/atrref.cxx
+++ b/sw/source/core/txtnode/atrref.cxx
@@ -68,7 +68,7 @@ void SwFormatRefMark::InvalidateRefMark()
{
SwPtrMsgPoolItem const item(RES_REMOVE_UNO_OBJECT,
&static_cast<sw::BroadcastingModify&>(*this)); // cast to base class (void*)
- CallSwClientNotify(sw::LegacyModifyHint(&item, &item));
+ NotifyClients(&item, &item);
}
// attribute for content references in the text
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 79b0f389d358..e71ea4b76119 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -396,7 +396,7 @@ void MoveMergedFlysAndFootnotes(std::vector<SwTextFrame*> const& rFrames,
if (rFirstNode.GetIndex() < rAnchor.GetContentAnchor()->nNode.GetIndex())
{
// move it to the new frame of "this"
- rFormat.CallSwClientNotify(sw::LegacyModifyHint(&rAnchor, &rAnchor));
+ rFormat.NotifyClients(&rAnchor, &rAnchor);
// note pObjs will be deleted if it becomes empty
assert(!pFrame->GetDrawObjs() || !pObjs->Contains(*pObj));
}
@@ -2278,7 +2278,7 @@ OUString SwTextNode::InsertText( const OUString & rStr, const SwIndex & rIdx,
if ( HasWriterListeners() )
{ // send this before messing with hints, which will send RES_UPDATE_ATTR
SwInsText aHint( aPos, nLen );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aHint));
+ NotifyClients( nullptr, &aHint );
}
if ( HasHints() )
@@ -2708,12 +2708,12 @@ void SwTextNode::EraseText(const SwIndex &rIdx, const sal_Int32 nCount,
if( 1 == nCnt )
{
SwDelChr aHint( nStartIdx );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aHint));
+ NotifyClients( nullptr, &aHint );
}
else
{
SwDelText aHint( nStartIdx, nCnt );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aHint));
+ NotifyClients( nullptr, &aHint );
}
OSL_ENSURE(rIdx.GetIndex() == nStartIdx, "huh? start index has changed?");
@@ -2765,9 +2765,9 @@ void SwTextNode::GCAttr()
nMax,
0);
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aHint));
+ NotifyClients( nullptr, &aHint );
SwFormatChg aNew( GetTextColl() );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aNew));
+ NotifyClients( nullptr, &aNew );
}
}
@@ -2839,7 +2839,7 @@ void SwTextNode::NumRuleChgd()
// Important note:
{
SvxLRSpaceItem& rLR = const_cast<SvxLRSpaceItem&>(GetSwAttrSet().GetLRSpace());
- CallSwClientNotify(sw::LegacyModifyHint(&rLR, &rLR));
+ NotifyClients( &rLR, &rLR );
}
SetWordCountDirty( true );
@@ -3708,12 +3708,12 @@ void SwTextNode::ReplaceText( const SwIndex& rStart, const sal_Int32 nDelLen,
SetIgnoreDontExpand( bOldExpFlg );
SwDelText aDelHint( nStartPos, nDelLen );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aDelHint));
+ NotifyClients( nullptr, &aDelHint );
if (sInserted.getLength())
{
SwInsText aHint( nStartPos, sInserted.getLength() );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aHint));
+ NotifyClients( nullptr, &aHint );
}
}
diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx
index 6052754c8b46..a5626e71f053 100644
--- a/sw/source/core/txtnode/thints.cxx
+++ b/sw/source/core/txtnode/thints.cxx
@@ -1709,7 +1709,7 @@ void SwTextNode::DeleteAttribute( SwTextAttr * const pAttr )
m_pSwpHints->Delete( pAttr );
SwTextAttr::Destroy( pAttr, GetDoc().GetAttrPool() );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aHint));
+ NotifyClients( nullptr, &aHint );
TryDeleteSwpHints();
}
@@ -1785,7 +1785,7 @@ void SwTextNode::DeleteAttributes(
m_pSwpHints->DeleteAtPos( nPos );
SwTextAttr::Destroy( pTextHt, GetDoc().GetAttrPool() );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aHint));
+ NotifyClients( nullptr, &aHint );
}
}
}
@@ -2586,7 +2586,7 @@ void SwTextNode::FormatToTextAttr( SwTextNode* pNd )
if( aNdSet.Count() )
{
SwFormatChg aTmp1( pNd->GetFormatColl() );
- pNd->CallSwClientNotify(sw::LegacyModifyHint(&aTmp1, &aTmp1));
+ pNd->NotifyClients( &aTmp1, &aTmp1 );
}
}
}
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index ba25c5fccba1..edc0ac296d00 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -634,9 +634,9 @@ void SwTextNode::RstTextAttr(
nMax,
0);
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aHint));
+ NotifyClients( nullptr, &aHint );
SwFormatChg aNew( GetFormatColl() );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aNew));
+ NotifyClients( nullptr, &aNew );
}
static sal_Int32 clipIndexBounds(const OUString &rStr, sal_Int32 nPos)
@@ -1983,10 +1983,10 @@ void SwTextNode::ReplaceTextOnly( sal_Int32 nPos, sal_Int32 nLen,
// notify the layout!
SwDelText aDelHint( nPos, nTLen );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aDelHint));
+ NotifyClients( nullptr, &aDelHint );
SwInsText aHint( nPos, nTLen );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aHint));
+ NotifyClients( nullptr, &aHint );
}
// the return values allows us to see if we did the heavy-