summaryrefslogtreecommitdiff
path: root/sw/inc/cmdid.h
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-01-11 15:56:31 +0100
committerMiklos Vajna <vmiklos@collabora.com>2023-01-11 22:54:33 +0000
commitea208f6004770eb4b81d28e6930cd0c7bd5d8f12 (patch)
treeebc565bbd07967eeab8832f029b8e51726280278 /sw/inc/cmdid.h
parent67471b3a7fb33884e70e29163b4eddf47fa85115 (diff)
sw: add a new .uno:UpdateBookmark UNO command
It is possible to update all bookmarks (having a certain name prefix) and their contet, but one can't update the bookmark under the cursor, which is needed for Zotero citation clusters. Fix the problem by adding a new .uno:UpdateBookmark UNO command that can update the (innermost) bookmark under the current cursor. This can be implemented on top of the recently added IDocumentMarkAccess::getBookmarkFor(). The UNO command is intentionally hidden from the customize dialog since it only makes sense to invoke it from a macro / API with parameters, not interactively. Change-Id: I3e750dfb637f50716be1155a94bc986131b84f20 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145351 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/inc/cmdid.h')
-rw-r--r--sw/inc/cmdid.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/inc/cmdid.h b/sw/inc/cmdid.h
index befe8e26d607..3baa2f050ecc 100644
--- a/sw/inc/cmdid.h
+++ b/sw/inc/cmdid.h
@@ -325,6 +325,7 @@ class SwUINumRuleItem;
#define FN_UPDATE_BOOKMARKS (FN_INSERT2 + 34)
#define FN_UPDATE_SECTIONS (FN_INSERT2 + 35)
#define FN_DELETE_TEXT_FORMFIELDS (FN_INSERT2 + 36)
+#define FN_UPDATE_BOOKMARK (FN_INSERT2 + 37)
// Region: Format
#define FN_AUTOFORMAT_APPLY (FN_FORMAT + 1 ) /* apply autoformat options */