summaryrefslogtreecommitdiff
path: root/sw/sdi
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-12-08 16:43:28 +0100
committerMiklos Vajna <vmiklos@collabora.com>2022-12-08 16:46:54 +0000
commit243131397a5b626c2d8442dc716193e27b13ef9f (patch)
tree067b273ab71a8ac2332ca3ba1043c95e0d678328 /sw/sdi
parent515df96a85878f10dae3c9d1274ef4575d2e3215 (diff)
sw: introduce a .uno:GotoMark command
This is meant to be used from macros, it does the same as manually opening the navigator, selecting a given bookmark and pressing enter. It also helps debugging when you want to jump somewhere, but the surrounding document content changes, so jumping to a certain page won't work due to the changing page number. Change-Id: I3bc08ae8023997bab89cf4732fb67233a6a1e134 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143825 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.sdi14
2 files changed, 19 insertions, 0 deletions
diff --git a/sw/sdi/_textsh.sdi b/sw/sdi/_textsh.sdi
index 312462f5b474..98e32d3d58dc 100644
--- a/sw/sdi/_textsh.sdi
+++ b/sw/sdi/_textsh.sdi
@@ -971,6 +971,11 @@ interface BaseText
ExecMethod = ExecField ;
StateMethod = NoState ;
]
+ FN_GOTO_MARK // status(final|play)
+ [
+ ExecMethod = ExecField ;
+ StateMethod = NoState ;
+ ]
FN_EXECUTE_MACROFIELD // status()
[
ExecMethod = ExecField ;
diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi
index 84ca0997f982..2471dfcd9fb6 100644
--- a/sw/sdi/swriter.sdi
+++ b/sw/sdi/swriter.sdi
@@ -1730,6 +1730,20 @@ SfxVoidItem GotoNextInputField FN_GOTO_NEXT_INPUTFLD
GroupId = SfxGroupId::Navigator;
]
+SfxVoidItem GotoMark FN_GOTO_MARK
+(SfxStringItem GotoMark FN_GOTO_MARK)
+[
+ AutoUpdate = FALSE,
+ FastCall = TRUE,
+ ReadOnlyDoc = TRUE,
+ Toggle = FALSE,
+ Container = FALSE,
+ RecordAbsolute = FALSE,
+ RecordPerSet;
+
+ GroupId = SfxGroupId::Navigator;
+]
+
SfxVoidItem GotoNextObject FN_GOTO_NEXT_OBJ
()
[