summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2021-11-16 16:08:57 +0100
committerLászló Németh <nemeth@numbertext.org>2021-11-17 20:05:46 +0100
commitf51fa7534421a195a58b4a737a2e836d8c25ba81 (patch)
treed0e7e23fead69543f388731e79769e9c0d9fe6c9 /offapi
parent9acb80943da5aaaf5d515a794f8a825d88bda430 (diff)
tdf#145718 sw, DOCX import: complete tracked text moving
Add IsMoved bit to SwRangeRedline, and keep it in both parts of a split Delete/Insert redline. Set this bit during DOCX import, fixing incomplete import of moveFrom/moveTo elements. Details: - Search text moving only at redline Insert() and AppendRedline() instead in the layout code (which was much slower, because triggered by also mouse hovering): - detect text moving in Hide Changes mode, too; - Insertion inside or directly after tracked text moving keeps "moved text" layout of the original moved text parts (before and after the insertion). - at detection of text moving, invalidate (update) layout of the redline pair, too. - fix DOCX import: extend makeRedline() with property RedlineMoved to keep all moveFrom/moveTo stored in DOCX instead of losing them (joining them with normal redlines) in the case of missing Delete/Insert pair (see unit test document); Follow-up to commit ec577f566fa3e6d2666069180f8ec8474054aea9 "tdf#145233 sw track changes: show moved text in green color", commit bcdebc832b272662d28035007a4796e42d1305ae "tdf#104797 DOCX change tracking: handle moveFrom and moveTo" and commit d32d9a2b3c5e3963f4a18f6c7bbf50fab2e9b2be "tdf#123460 DOCX track changes: moveFrom completely". Change-Id: Iaca80e5e326a172bc7ba5fec64b63668b9378e2d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125317 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/text/XRedline.idl1
1 files changed, 1 insertions, 0 deletions
diff --git a/offapi/com/sun/star/text/XRedline.idl b/offapi/com/sun/star/text/XRedline.idl
index 9b259e8b9e58..a07c92ddfc62 100644
--- a/offapi/com/sun/star/text/XRedline.idl
+++ b/offapi/com/sun/star/text/XRedline.idl
@@ -46,6 +46,7 @@ published interface XRedline
[readonly, property] string RedlineAuthor;
[readonly, property] com::sun::star::util::DateTime RedlineDateTime;
[readonly, property] string RedlineComment;
+ [readonly, optional, property] boolean RedlineMoved;
*/
void makeRedline( [in]string RedlineType, [in] com::sun::star::beans::PropertyValues RedlineProperties)
raises( com::sun::star::lang::IllegalArgumentException );