summaryrefslogtreecommitdiff
path: root/sw/sdi
diff options
context:
space:
mode:
authorRafael Lima <rafael.palma.lima@gmail.com>2023-01-24 17:54:11 +0000
committerRafael Lima <rafael.palma.lima@gmail.com>2023-01-25 13:38:28 +0000
commit79811c27f34d3e752de1bc3959605c5d58ac2365 (patch)
treec0e8884119df1115f8f6d275b3965df1de25be9c /sw/sdi
parentfd3d4d894d96f16a28d5b58c5bcf5a44fb83617f (diff)
tdf#129905 Create toggle for Section boundaries
Currently in Writer it is not possible to enable/disable Section Boundaries independently from Text Boundaries (which are toggleable via View - Text Boundaries). Hence its only possible to enable/disable them together. This patch creates a new command that allows to enable/disable Section Boundaries (now in View - Section Boundaries) indepentently from Text Boundaries. Change-Id: I76981ed1a055ce8d1e0f83c3055fef75df37f019 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146077 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sw/sdi')
-rw-r--r--sw/sdi/_viewsh.sdi6
-rw-r--r--sw/sdi/swriter.sdi18
2 files changed, 24 insertions, 0 deletions
diff --git a/sw/sdi/_viewsh.sdi b/sw/sdi/_viewsh.sdi
index c3096bc57d3a..020383d31abc 100644
--- a/sw/sdi/_viewsh.sdi
+++ b/sw/sdi/_viewsh.sdi
@@ -883,6 +883,12 @@ interface BaseTextEditView
StateMethod = StateViewOptions ;
]
+ FN_VIEW_SECTION_BOUNDARIES // status()
+ [
+ ExecMethod = ExecViewOptions ;
+ StateMethod = StateViewOptions ;
+ ]
+
FN_VIEW_GRAPHIC // status()
[
ExecMethod = ExecViewOptions ;
diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi
index 873cab508584..69e41da52ccc 100644
--- a/sw/sdi/swriter.sdi
+++ b/sw/sdi/swriter.sdi
@@ -6669,6 +6669,24 @@ SfxBoolItem ViewBounds FN_VIEW_BOUNDS
GroupId = SfxGroupId::View;
]
+SfxBoolItem SectionBoundaries FN_VIEW_SECTION_BOUNDARIES
+
+[
+ AutoUpdate = FALSE,
+ FastCall = FALSE,
+ ReadOnlyDoc = TRUE,
+ Toggle = FALSE,
+ Container = FALSE,
+ RecordAbsolute = FALSE,
+ RecordPerSet;
+
+
+ AccelConfig = TRUE,
+ MenuConfig = TRUE,
+ ToolBoxConfig = TRUE,
+ GroupId = SfxGroupId::View;
+]
+
SfxBoolItem VRuler FN_VLINEAL
[