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/_textsh.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/_textsh.sdi')
-rw-r--r-- | sw/sdi/_textsh.sdi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/sdi/_textsh.sdi b/sw/sdi/_textsh.sdi index 4c4e042e45a5..6f6ad01a1536 100644 --- a/sw/sdi/_textsh.sdi +++ b/sw/sdi/_textsh.sdi @@ -290,6 +290,12 @@ interface BaseText StateMethod = NoState ; DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; ] + FN_INSERT_PICTURE_CONTENT_CONTROL // status(final|play) + [ + ExecMethod = ExecInsert ; + StateMethod = NoState ; + DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; + ] FN_CONTENT_CONTROL_PROPERTIES // status(final|play) [ ExecMethod = ExecInsert ; |