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/inc/cmdid.h | |
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/inc/cmdid.h')
-rw-r--r-- | sw/inc/cmdid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/inc/cmdid.h b/sw/inc/cmdid.h index 0e1691d7ec2d..8b102cae3bf1 100644 --- a/sw/inc/cmdid.h +++ b/sw/inc/cmdid.h @@ -223,6 +223,7 @@ class SwUINumRuleItem; #define FN_INSERT_PAGEBREAK (FN_INSERT + 23) /* Page break*/ #define FN_INSERT_DROPDOWN_CONTENT_CONTROL (FN_INSERT + 24) /* Dropdown content control */ #define FN_CONTENT_CONTROL_PROPERTIES (FN_INSERT + 25) /* Content control properties */ +#define FN_INSERT_PICTURE_CONTENT_CONTROL (FN_INSERT + 26) /* Picture content control */ #define FN_POSTIT (FN_INSERT + 29) /* Insert/edit PostIt */ #define FN_INSERT_TABLE (FN_INSERT + 30) /* Insert Table */ #define FN_INSERT_STRING (FN_INSERT+31) |