summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/textsh.cxx
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 /sw/source/uibase/shells/textsh.cxx
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 'sw/source/uibase/shells/textsh.cxx')
-rw-r--r--sw/source/uibase/shells/textsh.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx
index 879bb4809efa..667f7503bcea 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -218,6 +218,11 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
rReq.Done();
break;
+ case FN_INSERT_CONTENT_CONTROL:
+ rSh.InsertContentControl();
+ rReq.Done();
+ break;
+
case FN_INSERT_COLUMN_BREAK:
rSh.InsertColumnBreak();
rReq.Done();