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-25 08:33:53 +0200
commite83223ae22585fbd4b03397cb78b8b98bb71a717 (patch)
tree43b5594bca3542088e0d01bf66d1ac0f2622f8ae /officecfg
parent636ac1c46665cfe35884afb9a6663feb15f6b4c2 (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 (cherry picked from commit 59393b73ec4c0f1f1965a9c24a2635780c707189) Change-Id: Icb32aee777ab08d09401bf468788692b933a90ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133331 Tested-by: Miklos Vajna <vmiklos@collabora.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
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 3b960d95c58f..86c6302f6e18 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>