summaryrefslogtreecommitdiff
path: root/sw/sdi
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-07-22 14:23:07 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-07-22 16:21:49 +0200
commitb85becd0d427c7375f1d8e6309f348304b6ebbac (patch)
tree3fe265fa9c727e6c54de08bb99b8d792a77dd0c4 /sw/sdi
parent8ea426bfa978d338683bf4c715d358187a527ccd (diff)
sw bibliography, local copy: add context menu
This way in case a bibliography entry (field) has both a URL and a LocalURL, it is possible to choose which one should be opened when the context menu is used on the field. This is meant to be the primary way the user consumes this information. Change-Id: I21b72505f8387943424665bff70905f774771d4a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119373 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/sdi')
-rw-r--r--sw/sdi/_textsh.sdi5
-rw-r--r--sw/sdi/swriter.sdi17
2 files changed, 22 insertions, 0 deletions
diff --git a/sw/sdi/_textsh.sdi b/sw/sdi/_textsh.sdi
index 7e6d2c32a6d6..6af93a628eb6 100644
--- a/sw/sdi/_textsh.sdi
+++ b/sw/sdi/_textsh.sdi
@@ -1656,6 +1656,11 @@ interface BaseText
ExecMethod = Execute ;
StateMethod = GetState ;
]
+ FN_OPEN_LOCAL_URL
+ [
+ ExecMethod = Execute ;
+ StateMethod = GetState ;
+ ]
SID_OPEN_SMARTTAGMENU
[
ExecMethod = Execute ;
diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi
index a3eff026d42c..0e994261c28c 100644
--- a/sw/sdi/swriter.sdi
+++ b/sw/sdi/swriter.sdi
@@ -7880,6 +7880,23 @@ SfxVoidItem RemoveTextBox FN_REMOVE_TEXT_BOX
GroupId = SfxGroupId::Drawing;
]
+SfxVoidItem OpenLocalURL FN_OPEN_LOCAL_URL
+()
+[
+ AutoUpdate = FALSE,
+ FastCall = TRUE,
+ ReadOnlyDoc = TRUE,
+ Toggle = FALSE,
+ Container = FALSE,
+ RecordAbsolute = FALSE,
+ RecordPerSet;
+
+ AccelConfig = FALSE,
+ MenuConfig = FALSE,
+ ToolBoxConfig = TRUE,
+ GroupId = SfxGroupId::Navigator;
+]
+
SfxUInt16Item JumpToSpecificPage SID_JUMP_TO_SPECIFIC_PAGE
( SfxUInt16Item JumpToSpecificPage SID_JUMP_TO_SPECIFIC_PAGE )
[