diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-12-05 15:24:55 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-12-18 17:55:28 +0100 |
commit | 9b67b6a6d4b912f1e515d3884fa02c1be8aa6921 (patch) | |
tree | 749f28ac2b4b2e79e40571e5edda5c3773b60aee /sw/source/core/layout/wsfrm.cxx | |
parent | e41374f64daf7b513842866cc2dcdfa3a9d3c0a5 (diff) |
sw_redlinehide_4b: consider the comments in the margin
SwPostItMgr needs to hide the comments that are in delete redlines.
Also notify SwPostItMgr when redlines are created/removed.
SwPostItMgr is owned by the ViewShell but there is currently only one
layout so SwRootFrame still needs to broadcast to all of them.
Also an EndListening call was missing in
SwPostItMgr::CheckForRemovedPostIts() which caused asserts.
Change-Id: Ic0fccde50f6fdaa449afb535476c00c41ba94287
Diffstat (limited to 'sw/source/core/layout/wsfrm.cxx')
-rw-r--r-- | sw/source/core/layout/wsfrm.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx index 41f643eb9d94..a123f055e36c 100644 --- a/sw/source/core/layout/wsfrm.cxx +++ b/sw/source/core/layout/wsfrm.cxx @@ -4518,6 +4518,13 @@ void SwRootFrame::SetHideRedlines(bool const bHideRedlines) rIDFA.UpdateExpFields(nullptr, false); rIDFA.UpdateRefFields(); + // update SwPostItMgr / notes in the margin + // note: as long as all shells share layout, broadcast to all shells! + rDoc.GetDocShell()->Broadcast( SwFormatFieldHint(nullptr, bHideRedlines + ? SwFormatFieldHintWhich::REMOVED + : SwFormatFieldHintWhich::INSERTED) ); + + // InvalidateAllContent(SwInvalidateFlags::Size); // ??? TODO what to invalidate? this is the big hammer } |