summaryrefslogtreecommitdiff
path: root/sw/inc/calbck.hxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-25 00:50:45 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-25 10:25:10 +0100
commitb4c3a2bd2373edd90fe9e38703e498c4df417f60 (patch)
tree33f8e88809ba50df26edf1f19a34ced39a25f079 /sw/inc/calbck.hxx
parent0085d2f3fac063883306818affdd8e268db7b4ee (diff)
remove typed Modify for good
Change-Id: I53105b9a8a832affd0545fcd69774fad116a2a3c
Diffstat (limited to 'sw/inc/calbck.hxx')
-rw-r--r--sw/inc/calbck.hxx16
1 files changed, 1 insertions, 15 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index e64d7ca32ee6..ab91b51faadd 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -176,14 +176,10 @@ public:
// broadcasting: send notifications to all clients
// DO NOT USE IN NEW CODE! use CallSwClientNotify instead.
void NotifyClients( const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue );
+ // the same, but without setting m_bModifyLocked or checking for any of the flags
// DO NOT USE IN NEW CODE! use CallSwClientNotify instead.
void ModifyBroadcast( const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
{ CallSwClientNotify( sw::LegacyModifyHint{ pOldValue, pNewValue } ); };
- // the same, but without setting m_bModifyLocked or checking for any of the flags
- // mba: it would be interesting to know why this is necessary
- // also allows to limit callback to certain type (HACK)
- // DO NOT USE IN NEW CODE! use CallSwClientNotify instead.
- inline void ModifyBroadcast( const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue, TypeId nType );
// a more universal broadcasting mechanism
inline void CallSwClientNotify( const SfxHint& rHint ) const;
@@ -371,16 +367,6 @@ SwClient::SwClient( SwModify* pToRegisterIn )
pToRegisterIn->Add(this);
}
-void SwModify::ModifyBroadcast( const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue, TypeId nType)
-{
- SwIterator<SwClient,SwModify> aIter(*this);
- for(SwClient* pClient = aIter.First(); pClient; pClient = aIter.Next())
- {
- if(pClient->IsA(nType))
- pClient->Modify( pOldValue, pNewValue );
- }
-}
-
void SwModify::CallSwClientNotify( const SfxHint& rHint ) const
{
SwIterator<SwClient,SwModify> aIter(*this);