This is similar to commit c68d06dfa1498f862923eaddf3e5d247650a53d5 (sw: add a new .uno:DeleteTextFormFields UNO command, 2023-01-10), but that was for fieldmarks and this is for bookmarks.
The primary use-case is to specify a prefix for the name, so e.g. all Zotero-related bookmarks can be removed, but it can be also used to remove all bookmarks when no prefix is specified.
Change-Id: Ifc1f666f66d9fc3f6cd055f9263f0e4f949c191d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145458
40753de837b9 sw: add a new .uno:DeleteBookmarks UNO command
sw/inc/cmdid.h | 1 +
sw/qa/uibase/shells/shells.cxx | 37 +++++++++++++++++++++++++
sw/sdi/_textsh.sdi | 6 +++++
sw/sdi/swriter.sdi | 14 ++++++++++
sw/source/uibase/shells/textsh1.cxx | 54 +++++++++++++++++++++++++++++++++++++
5 files changed, 112 insertions(+)
Upstream: cgit.freedesktop.org