summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/atrftn.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-08-20 12:56:12 +0200
committerMichael Stahl <mstahl@redhat.com>2014-08-20 16:40:17 +0200
commite54015d06f103e3ce9edc899f0d839ead88add8a (patch)
tree0950a1c4f53a7d65011b772f3960b307ac186643 /sw/source/core/txtnode/atrftn.cxx
parenteee8b6eed6145f695d532aa62c33e3a0c44cba86 (diff)
i#107771: sw: make SwXFootnote a client of its format poolitem
In other words, stop registering at SwDoc's "UnoCallBack". Change-Id: Ie73c707b0f43559cc78717c0879d5e9a9335a7ac
Diffstat (limited to 'sw/source/core/txtnode/atrftn.cxx')
-rw-r--r--sw/source/core/txtnode/atrftn.cxx19
1 files changed, 14 insertions, 5 deletions
diff --git a/sw/source/core/txtnode/atrftn.cxx b/sw/source/core/txtnode/atrftn.cxx
index f7f2aa555860..9ada9dfbb567 100644
--- a/sw/source/core/txtnode/atrftn.cxx
+++ b/sw/source/core/txtnode/atrftn.cxx
@@ -17,12 +17,13 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <fmtftn.hxx>
+
#include <doc.hxx>
#include <DocumentContentOperationsManager.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <cntfrm.hxx>
#include <pagefrm.hxx>
-#include <fmtftn.hxx>
#include <txtftn.hxx>
#include <ftnidx.hxx>
#include <ftninfo.hxx>
@@ -115,10 +116,11 @@ namespace {
}
SwFmtFtn::SwFmtFtn( bool bEndNote )
- : SfxPoolItem( RES_TXTATR_FTN ),
- m_pTxtAttr( 0 ),
- m_nNumber( 0 ),
- m_bEndNote( bEndNote )
+ : SfxPoolItem( RES_TXTATR_FTN )
+ , SwModify(0)
+ , m_pTxtAttr(0)
+ , m_nNumber(0)
+ , m_bEndNote(bEndNote)
{
}
@@ -139,6 +141,13 @@ SfxPoolItem* SwFmtFtn::Clone( SfxItemPool* ) const
return pNew;
}
+void SwFmtFtn::InvalidateFootnote()
+{
+ SwPtrMsgPoolItem const item(RES_REMOVE_UNO_OBJECT,
+ &static_cast<SwModify&>(*this)); // cast to base class (void*)
+ NotifyClients(&item, &item);
+}
+
void SwFmtFtn::SetEndNote( bool b )
{
if ( b != m_bEndNote )