sw content controls, checkbox: add insert UI

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 2 May 2022 10:54 UTC

- extend SwWrtShell::InsertContentControl() to be able to create multiple content control types

- a new checkbox content control's content is always a non-checked checkbox

- expose this as a new .uno:InsertCheckboxContentControl uno command

- add this new command to the bottom of the form menu -- now that we have two types of content controls, have that in a sub-menu

Change-Id: I058659600b3face69b89262feb0979fff32521c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133685

02a5bd2e6c4e sw content controls, checkbox: add insert UI
.../org/openoffice/Office/UI/WriterCommands.xcu | 13 +++++++++
sw/inc/cmdid.h | 1 +
sw/inc/formatcontentcontrol.hxx | 6 +++++
sw/qa/uibase/wrtsh/wrtsh.cxx | 23 +++++++++++++++-
sw/sdi/_textsh.sdi | 6 +++++
sw/sdi/swriter.sdi | 17 ++++++++++++
sw/source/uibase/inc/wrtsh.hxx | 3 ++-
sw/source/uibase/shells/textsh.cxx | 8 +++++-
sw/source/uibase/uiview/view.cxx | 2 +-
sw/source/uibase/wrtsh/wrtsh1.cxx | 31 +++++++++++++++++-----
sw/uiconfig/swriter/menubar/menubar.xml | 7 ++++-
11 files changed, 106 insertions(+), 11 deletions(-)

Upstream: cgit.freedesktop.org


  • Share