diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-05-20 13:31:45 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-05-20 16:55:16 +0200 |
commit | 73ed5e36047b6f46b3777bf6f36591ec4babb1f9 (patch) | |
tree | 904961b0b4dbca06dc3c1e54f444742de9e387f9 /sw/sdi/swriter.sdi | |
parent | ff0387e726b59e374029d2f635ce00308d99eff6 (diff) |
sw content controls, picture: add insert UI
- 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
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/sdi/swriter.sdi')
-rw-r--r-- | sw/sdi/swriter.sdi | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi index 4bd53a1557d9..285f1fdfa7e4 100644 --- a/sw/sdi/swriter.sdi +++ b/sw/sdi/swriter.sdi @@ -3083,6 +3083,23 @@ SfxVoidItem InsertDropdownContentControl FN_INSERT_DROPDOWN_CONTENT_CONTROL GroupId = SfxGroupId::Insert; ] +SfxVoidItem InsertPictureContentControl FN_INSERT_PICTURE_CONTENT_CONTROL +() +[ + AutoUpdate = FALSE, + FastCall = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + AccelConfig = TRUE, + MenuConfig = TRUE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Insert; +] + SfxVoidItem ContentControlProperties FN_CONTENT_CONTROL_PROPERTIES () [ |