From 59393b73ec4c0f1f1965a9c24a2635780c707189 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 21 Apr 2022 09:08:03 +0200 Subject: 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 Tested-by: Jenkins --- sw/source/uibase/shells/textsh.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sw/source/uibase/shells/textsh.cxx') 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(); -- cgit