diff options
author | Attila Szűcs <attila.szucs@collabora.com> | 2023-10-17 09:31:22 +0200 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-10-29 19:30:43 +0100 |
commit | e4fb4937b3f75ce3544f8de354ed92f7dd314511 (patch) | |
tree | 680dc5473643210c9afbd467c446cd2ea59f8477 /xmloff/source/token | |
parent | 81f36caea6acd3042d42625940a9396305f5569c (diff) |
tdf#157663 SW: Tracked change improve move
Made accept/reject handle move redlines other pair, (moveto-movefrom)
and handle the whole move redline, even if it is split into small pieces
that separated from each other.
Added unique ID to every move redline to help find their other parts.
This move ID is generated in case of:
move recognition
moveing a paragraph. (directly create move redline with unique id without
calling the recognition it is faster and more stable)
(there are other cases that could be improved to not use recognition,
but generate ID directly, like moveing selected partial text with mouse)
Implemented the odt export/import of this move ID.
it is a tag like this: "<loext:move-id>4</loext:move-id>"
next to creator/date
Improved the docx import to generate this move ID, so move redlines can
find their other parts
(Not changed Docx export... it works a bit, but far from perfect)
Improved move reckognition:
It can find them even if they are split into multiple parts differently.
(like "ab"+"cd" == "a"+"bcd")
Disabled this because of probably performance issue.
made a complex unit test for it.
Note: Left the move recognition on every place, to avoid as much
regressions as possible.. but in the future, we may can disable it
in some cases.
Note2: We will have to keep move recognitnion, because there are documents
from past, saved without any move informations in the file, and users
expect to see move redlines there. (generated by the recognition.)
Change-Id: If968d4235b676c5e538cfaf4187a4482a86eae9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157740
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158611
Tested-by: Jenkins
Diffstat (limited to 'xmloff/source/token')
-rw-r--r-- | xmloff/source/token/tokens.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmloff/source/token/tokens.txt b/xmloff/source/token/tokens.txt index 59ae40480d70..731bf917ff6b 100644 --- a/xmloff/source/token/tokens.txt +++ b/xmloff/source/token/tokens.txt @@ -1259,6 +1259,7 @@ move-from-bottom move-from-left move-from-right move-from-top +move-id move-protect move-short movement |