summaryrefslogtreecommitdiff
path: root/sw/inc/postithelper.hxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-12-05 15:24:55 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-12-18 17:55:28 +0100
commit9b67b6a6d4b912f1e515d3884fa02c1be8aa6921 (patch)
tree749f28ac2b4b2e79e40571e5edda5c3773b60aee /sw/inc/postithelper.hxx
parente41374f64daf7b513842866cc2dcdfa3a9d3c0a5 (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/inc/postithelper.hxx')
-rw-r--r--sw/inc/postithelper.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/inc/postithelper.hxx b/sw/inc/postithelper.hxx
index cdbbc7b27580..e0f934dfe025 100644
--- a/sw/inc/postithelper.hxx
+++ b/sw/inc/postithelper.hxx
@@ -31,6 +31,7 @@ class SwRootFrame;
class SwPostItMgr;
class SwEditWin;
class SwFrame;
+class IDocumentRedlineAccess;
namespace sw { namespace annotation {
class SwAnnotationWin;
} }
@@ -115,7 +116,7 @@ public:
SwSidebarItem & operator =(SwSidebarItem &&) = default;
virtual SwPosition GetAnchorPosition() const = 0;
- virtual bool UseElement() = 0;
+ virtual bool UseElement(SwRootFrame const&, IDocumentRedlineAccess const&) = 0;
virtual const SwFormatField& GetFormatField() const = 0;
virtual const SfxBroadcaster* GetBroadCaster() const = 0;
virtual VclPtr<sw::annotation::SwAnnotationWin> GetSidebarWindow( SwEditWin& rEditWin,
@@ -134,7 +135,7 @@ public:
}
virtual SwPosition GetAnchorPosition() const override;
- virtual bool UseElement() override;
+ virtual bool UseElement(SwRootFrame const&, IDocumentRedlineAccess const&) override;
virtual const SwFormatField& GetFormatField() const override
{
return mrFormatField;