summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/sectfrm.cxx
diff options
context:
space:
mode:
authorThorsten Behrens <thorsten.behrens@allotropia.de>2022-02-12 12:17:20 +0100
committerThorsten Behrens <thorsten.behrens@allotropia.de>2022-02-12 12:17:20 +0100
commit586cec3019b28c0e936ec5976616caaf03254a01 (patch)
treed9ac5477932150b7cc662c960878386880b86136 /sw/source/core/layout/sectfrm.cxx
parentc1f57e52a8d2f14b59f3c17b0ee0e0078d96b39f (diff)
parent422e0ad9fe102ac44466acc6a1748f967d61246b (diff)
Merge remote-tracking branch 'origin/libreoffice-7-2' into feature/cib_contract6721c
Update to upstream branch HEAD for 7.2.6 pre
Diffstat (limited to 'sw/source/core/layout/sectfrm.cxx')
-rw-r--r--sw/source/core/layout/sectfrm.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx
index bc529bd28708..e5ba5d242667 100644
--- a/sw/source/core/layout/sectfrm.cxx
+++ b/sw/source/core/layout/sectfrm.cxx
@@ -74,6 +74,8 @@ SwSectionFrame::SwSectionFrame( SwSection &rSect, SwFrame* pSib )
, m_bOwnFootnoteNum(false)
, m_bFootnoteLock(false)
{
+ StartListening(rSect.GetFormat()->GetNotifier());
+
mnFrameType = SwFrameType::Section;
CalcFootnoteAtEndFlag();
@@ -90,6 +92,8 @@ SwSectionFrame::SwSectionFrame( SwSectionFrame &rSect, bool bMaster ) :
m_bOwnFootnoteNum( false ),
m_bFootnoteLock( false )
{
+ StartListening(rSect.GetFormat()->GetNotifier());
+
mnFrameType = SwFrameType::Section;
PROTOCOL( this, PROT::Section, bMaster ? DbgAction::CreateMaster : DbgAction::CreateFollow, &rSect )
@@ -2566,6 +2570,13 @@ void SwSectionFrame::CalcEndAtEndFlag()
}
}
+void SwSectionFrame::Notify(SfxHint const& rHint)
+{
+ SwSectionFormat *const pFormat(GetSection()->GetFormat());
+ assert(pFormat);
+ SwClientNotify(*pFormat, rHint);
+}
+
void SwSectionFrame::SwClientNotify(const SwModify& rMod, const SfxHint& rHint)
{
if (rHint.GetId() == SfxHintId::SwLegacyModify)