summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-07-09 17:48:14 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-07-10 11:58:24 +0200
commitb2a3254332b2a314297477dedfcfc9eafee614c3 (patch)
treebc85ef12768beedbd66a2c89efff737418263676 /sw/inc
parent94c82ded1944f8cfe333e5058e05acd70faa0d8f (diff)
sw comments on frames: fix comment handling when changing at-char anchor
If the user drags the at-char image and the anchor changes, then need to update the comment anchor (and its annotation range) as well. Use the same API that's used by SwTransferable::PrivateDrop(), except work with doc model positions, not with screen coordinates, like drag&drop does. (cherry picked from commit 5da29a31903e0c11802548327b41511519e61d7d) Change-Id: Ib9610b3eddc77f9973b68a1c5c8cdbe1f7079ab9 Reviewed-on: https://gerrit.libreoffice.org/75338 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/HandleAnchorNodeChg.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/inc/HandleAnchorNodeChg.hxx b/sw/inc/HandleAnchorNodeChg.hxx
index 7453e4e6b9be..e01da4c932a6 100644
--- a/sw/inc/HandleAnchorNodeChg.hxx
+++ b/sw/inc/HandleAnchorNodeChg.hxx
@@ -59,6 +59,11 @@ private:
// and that re-creation of fly frames is necessary.
bool mbAnchorNodeChanged;
+ /// If the fly frame has a comment, this points to the old comment anchor.
+ std::unique_ptr<SwPosition> mpCommentAnchor;
+
+ SwWrtShell* mpWrtShell;
+
SwHandleAnchorNodeChg( const SwHandleAnchorNodeChg& ) = delete;
void operator=( const SwHandleAnchorNodeChg ) = delete;
};