diff options
Diffstat (limited to 'sw/inc/ftninfo.hxx')
-rw-r--r-- | sw/inc/ftninfo.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sw/inc/ftninfo.hxx b/sw/inc/ftninfo.hxx index 9a6982a81893..ebd4d5d51bcc 100644 --- a/sw/inc/ftninfo.hxx +++ b/sw/inc/ftninfo.hxx @@ -32,13 +32,16 @@ class SwDoc; class SW_DLLPUBLIC SwEndNoteInfo : public SwClient { - SwDepend aPageDescDep; - SwDepend aCharFormatDep, aAnchorCharFormatDep; + SwMultiDepend aDepends; + mutable SwTextFormatColl* pFootnoteTextColl; + mutable SwPageDesc* pPageDesc; + mutable SwCharFormat* pCharFormat; + mutable SwCharFormat* pAnchorFormat; OUString sPrefix; OUString sSuffix; protected: bool m_bEndNote; - virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ) override; + virtual void SwClientNotify( const SwModify&, const SfxHint& rHint ) override; public: SvxNumberType aFormat; @@ -50,15 +53,13 @@ public: bool DependsOn( const SwPageDesc* ) const; void SetFootnoteTextColl(SwTextFormatColl& rColl); - SwTextFormatColl* GetFootnoteTextColl() const { return const_cast<SwTextFormatColl*>(static_cast<const SwTextFormatColl*>(GetRegisteredIn())); } // can be 0. + SwTextFormatColl* GetFootnoteTextColl() const; // can be 0. SwCharFormat* GetCharFormat(SwDoc &rDoc) const; void SetCharFormat( SwCharFormat* ); - SwClient *GetCharFormatDep() const { return const_cast<SwClient*>(static_cast<SwClient const *>(&aCharFormatDep)); } SwCharFormat* GetAnchorCharFormat(SwDoc &rDoc) const; void SetAnchorCharFormat( SwCharFormat* ); - SwClient *GetAnchorCharFormatDep() const { return const_cast<SwClient*>(static_cast<SwClient const *>(&aAnchorCharFormatDep)); } SwEndNoteInfo & operator=(const SwEndNoteInfo&); bool operator==( const SwEndNoteInfo &rInf ) const; |