diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-03-05 04:47:34 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-03-05 07:08:56 +0100 |
commit | b687cebfb1488341853824de1a15c06175c94258 (patch) | |
tree | af3988a5308fe65349ea4a4d6e6eb026e6424f55 /sw/inc | |
parent | ab63510e104c4b8e42982390357af1281c4b11a7 (diff) |
bccu#3100: Writer: Change tracking boxes aren't repositioned with editing
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 <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/redline.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
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 <cstddef> #include <memory> #include <vector> +#include <boost/optional.hpp> + class SfxItemSet; class SwView; @@ -176,6 +178,8 @@ class SW_DLLPUBLIC SwRangeRedline : public SwPaM bool bIsVisible : 1; sal_uInt32 m_nId; + boost::optional<long> 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); |