summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-01-03 11:28:04 +0100
committerMiklos Vajna <vmiklos@collabora.com>2023-01-05 07:11:15 +0000
commit519ead63478a66f907c477dd15dba214d2b59f90 (patch)
tree7baa3e7c5ff87d8c6370648001c52bdd0f986ee7 /desktop
parent0881419f485727ac0d9e1e65be868645688578ce (diff)
sw, lok: implement a getCommandValues(Fields)
There was no LOK API to get a list of all fields of a given type where the name matches a certain prefix. This is useful in case the API cilent wants to know what previously inserted refmarks were deleted by the user as part of deleting text content. Add a new getCommandValues(".uno:Fields") that returns the names of matching refmarks. Do not return the refmark text, assuming that would be updated by the API client anyway. In practice this is needed by Zotero in case it wants to model its citations with refmarks. (cherry picked from commit 3585d0414ffe08890856e5c09f453b9f566323df) Change-Id: Ie469253891896aa8ab00d434c9ab116adbe3864b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144989 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 617d5926dc0b..0c3be4b25743 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5729,7 +5729,8 @@ static char* doc_getCommandValues(LibreOfficeKitDocument* pThis, const char* pCo
static const std::initializer_list<std::u16string_view> vForward = {
u"TextFormFields",
u"SetDocumentProperties",
- u"Bookmarks"
+ u"Bookmarks",
+ u"Fields"
};
if (!strcmp(pCommand, ".uno:LanguageStatus"))