Kaydet (Commit) 847848d1 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen Kaydeden (comit) Björn Michaelsen

make SwContentNode handle legacy ModifyNotification() again (tdf#117749)

Change-Id: If5fe61b6bfd4012be63c27d531100018fb31dd21
Reviewed-on: https://gerrit.libreoffice.org/58024
Tested-by: Jenkins
Tested-by: 's avatarXisco Faulí <xiscofauli@libreoffice.org>
Reviewed-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@libreoffice.org>
üst ff99456b
...@@ -150,7 +150,7 @@ public: ...@@ -150,7 +150,7 @@ public:
// controlled access to Modify method // controlled access to Modify method
// mba: this is still considered a hack and it should be fixed; the name makes grep-ing easier // mba: this is still considered a hack and it should be fixed; the name makes grep-ing easier
void ModifyNotification( const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue ) { Modify ( pOldValue, pNewValue ); } virtual void ModifyNotification( const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue ) { Modify ( pOldValue, pNewValue ); }
void SwClientNotifyCall( const SwModify& rModify, const SfxHint& rHint ) { SwClientNotify( rModify, rHint ); } void SwClientNotifyCall( const SwModify& rModify, const SfxHint& rHint ) { SwClientNotify( rModify, rHint ); }
const SwModify* GetRegisteredIn() const { return m_pRegisteredIn; } const SwModify* GetRegisteredIn() const { return m_pRegisteredIn; }
......
...@@ -482,6 +482,11 @@ public: ...@@ -482,6 +482,11 @@ public:
// Access to DrawingLayer FillAttributes in a preprocessed form for primitive usage // Access to DrawingLayer FillAttributes in a preprocessed form for primitive usage
virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper() const; virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper() const;
virtual void ModifyNotification(const SfxPoolItem* pOld, const SfxPoolItem* pNew) override
{
SwClientNotify(*this, sw::LegacyModifyHint(pOld, pNew));
}
private: private:
SwContentNode( const SwContentNode & rNode ) = delete; SwContentNode( const SwContentNode & rNode ) = delete;
SwContentNode & operator= ( const SwContentNode & rNode ) = delete; SwContentNode & operator= ( const SwContentNode & rNode ) = delete;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment