summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-04-21 09:08:03 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-04-21 10:29:17 +0200
commit59393b73ec4c0f1f1965a9c24a2635780c707189 (patch)
tree863401072cfd1532abc877f75e95f3aec1f38231 /officecfg
parent057f504e6518d1cefd141713c98a15cf9160e676 (diff)
sw content controls: add insert UI
- add an SwWrtShell::InsertContentControl() to put the current selection into a content control - if there is no selection, add a non-empty placeholder - expose this as a new .uno:InsertContentControl uno command - add this new command to the bottom of the form menu -- probably we can have a sub-menu there once there will be more types Change-Id: Icb32aee777ab08d09401bf468788692b933a90ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133241 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'officecfg')
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu8
1 files changed, 8 insertions, 0 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
index 9ca5a77217b4..1d1a3f759d9f 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
@@ -614,6 +614,14 @@
<value>1</value>
</prop>
</node>
+ <node oor:name=".uno:InsertContentControl" oor:op="replace">
+ <prop oor:name="Label" oor:type="xs:string">
+ <value xml:lang="en-US">Insert Rich Text Content Control</value>
+ </prop>
+ <prop oor:name="Properties" oor:type="xs:int">
+ <value>1</value>
+ </prop>
+ </node>
<node oor:name=".uno:InsertObjectDialog" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
<value xml:lang="en-US">Insert Other Objects</value>