office-gobmx/writerfilter/source
Miklos Vajna 41403fbff8 sw: improve duplicated bookmarks in copied header/footer text
Bookmarks in copied text were renamed in a way that made it hard to
differentiate between the original bookmark and the copy, e.g. "Bookmark
1" was renamed to "Bookmark 11".

Bookmarks are supposed to have a unique name, so renaming makes sense,
and it's probably better to do that compared to what commit
3ec224dcb1 (DOCX import: avoid duplicated
bookmarks in copied header/footer text, 2022-09-08) did to just omit
them during copy. That solved the duplicated bookmarks, but if one had
bookmarks around images to find them, now it doesn't work to find all
such images.

Fix the problem by going back to copying bookmarks, but copy "Bookmark
1" as "Bookmark 1 Copy 1" (and "Bookmark 1 Copy 2", etc), so API users
can identify the original and the copied bookmarks.

A similar problem is there for images as well, but that's not yet
addressed here.

Change-Id: Ic0689b05f790a99ff06523ff4836b1dd412af896
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141293
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-10-13 15:16:04 +02:00
..
dmapper sw: improve duplicated bookmarks in copied header/footer text 2022-10-13 15:16:04 +02:00
filter Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
ooxml tdf#149840 Use actual outer size for SmartArt in Writer 2022-10-13 08:56:22 +02:00
rtftok tdf#151370: RTF import: docvar name/value can have several sequences 2022-10-07 11:06:48 +02:00