diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2023-01-13 11:05:52 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-01-13 12:12:55 +0000 |
commit | 40753de837b9776dd8b33e830be0cceef83f024a (patch) | |
tree | d0bbc4d8226b1cd3b250ba871b7489cbbcb7ebd4 /sw/sdi/swriter.sdi | |
parent | 18b6406439a93294d65a001a83311ab175d9bf49 (diff) |
sw: add a new .uno:DeleteBookmarks UNO command
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
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/sdi/swriter.sdi')
-rw-r--r-- | sw/sdi/swriter.sdi | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi index 0a0073ea5020..d2bcb5806666 100644 --- a/sw/sdi/swriter.sdi +++ b/sw/sdi/swriter.sdi @@ -2600,6 +2600,20 @@ SfxVoidItem UpdateBookmarks FN_UPDATE_BOOKMARKS GroupId = SfxGroupId::Insert; ] +SfxVoidItem DeleteBookmarks FN_DELETE_BOOKMARKS +(SfxStringItem BookmarkNamePrefix FN_PARAM_1) +[ + AutoUpdate = TRUE, + FastCall = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + GroupId = SfxGroupId::Controls; +] + SfxVoidItem UpdateBookmark FN_UPDATE_BOOKMARK (SfxStringItem BookmarkNamePrefix FN_PARAM_1, SfxUnoAnyItem Bookmark FN_PARAM_2) [ |