summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-12-06 16:20:25 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-12-11 11:42:54 +0100
commitf3e81c95b148dbab5ce56764f5534b5e6de53204 (patch)
tree577e2506ff9d993f330a2bcf7a860c6f1cc555b1 /sw
parentc49b966d54d004d1fcb9b94e8ca34a86759a85c7 (diff)
tdf#62845: Introduce ViewerApp flag for slots, to hide in Viewer app mode
Some slots make sense in read-only files, when the application runs in normal mode; but they make no sense in Viewer app mode. So this new flag is orthogonal to the existing ReadOnlyDoc flag. When it is FALSE, the respective command should not be active in the viewer mode. The default is TRUE. Change-Id: I5b5c75487fdf5a647aeab80129b6e84b42c00745 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177965 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r--sw/sdi/swriter.sdi3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi
index dd123e29f6cf..bba5111a7077 100644
--- a/sw/sdi/swriter.sdi
+++ b/sw/sdi/swriter.sdi
@@ -1043,6 +1043,7 @@ SfxVoidItem EditGlossary FN_GLOSSARY_DLG
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
+ ViewerApp = FALSE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
@@ -4672,6 +4673,7 @@ SfxVoidItem NewGlobalDoc FN_NEW_GLOBAL_DOC
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
+ ViewerApp = FALSE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
@@ -4689,6 +4691,7 @@ SfxVoidItem NewHtmlDoc FN_NEW_HTML_DOC
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
+ ViewerApp = FALSE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,