sw content controls, picture: add insert UI

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 20 May 2022 14:55 UTC

- handle the picture case in SwWrtShell::InsertContentControl(): insert a placeholder bitmap & create content control around the as-char image

- expose this as a new .uno:InsertPictureContentControl command

- add the new uno command to the default & MS-compatible menus

- rename the SwWrtShell::Insert() overload taking a Graphic to make this a bit more readable

Change-Id: I289d6b6a9cd622c585b6cf0ec0c91d6b51ad81ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134681

73ed5e36047b sw content controls, picture: add insert UI
.../org/openoffice/Office/UI/WriterCommands.xcu | 8 ++++
sw/inc/cmdid.h | 1 +
sw/qa/uibase/wrtsh/wrtsh.cxx | 22 +++++++++
sw/sdi/_textsh.sdi | 6 +++
sw/sdi/swriter.sdi | 17 +++++++
sw/source/uibase/dochdl/swdtflvr.cxx | 10 ++---
sw/source/uibase/inc/wrtsh.hxx | 2 +-
sw/source/uibase/shells/basesh.cxx | 2 +-
sw/source/uibase/shells/textsh.cxx | 5 +++
sw/source/uibase/uiview/view.cxx | 4 +-
sw/source/uibase/uiview/view2.cxx | 4 +-
sw/source/uibase/wrtsh/wrtsh1.cxx | 52 ++++++++++++++++++++--
sw/uiconfig/swriter/menubar/menubar.xml | 1 +
.../swriter/menubar/mscompatibleformsmenu.xml | 1 +
14 files changed, 120 insertions(+), 15 deletions(-)

Upstream: cgit.freedesktop.org


  • Share