summaryrefslogtreecommitdiff
path: root/embedserv
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-01-11 10:38:05 +0100
committerMiklos Vajna <vmiklos@collabora.com>2023-01-12 16:03:32 +0000
commitd7c10661a7b4f6d9d28d2a43829c3c28f590fbaa (patch)
tree8f1c114d865622612d1fa9dbcda34280f105dc5a /embedserv
parent66f8a0a5029004e17fb9f42051ec3784f5e0914e (diff)
sw lok: expose name of bookmark under cursor
It was possible to get the names of all bookmarks, but you could not get the name of the (innermost) bookmark under the current cursor. Getting the name of the current bookmark is useful for Zotero: if we already have a citation and want to insert one more, then we should turn the current citation into a citation cluster. Fix the problem by adding an API similar to what commit bb20dee2ef1b0804065e1cda2c834d257fdd90ed (sw lok: expose field type & command of fieldmark under cursor, 2023-01-05) did, but here we deal with bookmarks, not fieldmarks. Handle the actual bookmark lookup in MarkManager, such functionality looks useful outside LOK as well. (cherry picked from commit 4bcb66ec7b417fbe113267f2615e78fe47eb55ca) Change-Id: Ic5b9b36fda243c5d7d360fa03745b3e121b67b06 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145348 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Justin Luth <jluth@mail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'embedserv')
0 files changed, 0 insertions, 0 deletions