From b687cebfb1488341853824de1a15c06175c94258 Mon Sep 17 00:00:00 2001 From: Tamás Zolnai Date: Mon, 5 Mar 2018 04:47:34 +0100 Subject: bccu#3100: Writer: Change tracking boxes aren't repositioned with editing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Emit a notification related to the node position change, so the track changes comment box is repositioned when the text node changes it's position. Change-Id: I34b5ec453b3dc43895865f15d71aaead46ae6f24 Reviewed-on: https://gerrit.libreoffice.org/50640 Tested-by: Jenkins Reviewed-by: Tamás Zolnai --- sw/inc/redline.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sw/inc') diff --git a/sw/inc/redline.hxx b/sw/inc/redline.hxx index 2aefe871f750..c1bf083be93f 100644 --- a/sw/inc/redline.hxx +++ b/sw/inc/redline.hxx @@ -30,6 +30,8 @@ #include #include #include +#include + class SfxItemSet; class SwView; @@ -176,6 +178,8 @@ class SW_DLLPUBLIC SwRangeRedline : public SwPaM bool bIsVisible : 1; sal_uInt32 m_nId; + boost::optional m_oLOKLastNodeTop; + void MoveToSection(); void CopyToSection(); void DelCopyOfSection(size_t nMyPos); @@ -274,6 +278,8 @@ public: bool operator<( const SwRangeRedline& ) const; void dumpAsXml(struct _xmlTextWriter* pWriter) const; + + void MaybeNotifyRedlinePositionModification(long nTop); }; SW_DLLPUBLIC void MaybeNotifyRedlineModification(SwRangeRedline* pRedline, SwDoc* pDoc); -- cgit