summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-04-21 09:08:03 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-04-25 08:33:53 +0200
commite83223ae22585fbd4b03397cb78b8b98bb71a717 (patch)
tree43b5594bca3542088e0d01bf66d1ac0f2622f8ae /sw/inc
parent636ac1c46665cfe35884afb9a6663feb15f6b4c2 (diff)
sw content controls: add insert UI
- add an SwWrtShell::InsertContentControl() to put the current selection into a content control - if there is no selection, add a non-empty placeholder - expose this as a new .uno:InsertContentControl uno command - add this new command to the bottom of the form menu -- probably we can have a sub-menu there once there will be more types (cherry picked from commit 59393b73ec4c0f1f1965a9c24a2635780c707189) Change-Id: Icb32aee777ab08d09401bf468788692b933a90ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133331 Tested-by: Miklos Vajna <vmiklos@collabora.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/cmdid.h1
-rw-r--r--sw/inc/strings.hrc1
2 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/cmdid.h b/sw/inc/cmdid.h
index afe61b164849..8499a54b2b28 100644
--- a/sw/inc/cmdid.h
+++ b/sw/inc/cmdid.h
@@ -210,6 +210,7 @@
#define FN_INSERT_LINEBREAK (FN_INSERT + 18) /* Newline */
#define FN_INSERT_FIELD_DATA_ONLY (FN_INSERT + 19) /* Field dialog for mail merge*/
+#define FN_INSERT_CONTENT_CONTROL (FN_INSERT + 20) /* Content control */
#define FN_INSERT_OBJECT_DLG (FN_INSERT + 22) /* Object */
#define FN_INSERT_PAGEBREAK (FN_INSERT + 23) /* Page break*/
#define FN_POSTIT (FN_INSERT + 29) /* Insert/edit PostIt */
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc
index d5aaf979b66f..90a7f5b44d73 100644
--- a/sw/inc/strings.hrc
+++ b/sw/inc/strings.hrc
@@ -1420,6 +1420,7 @@
#define STR_AUTOMARK_NO NC_("createautomarkdialog|no", "No")
#define STR_WRAP_PANEL_CUSTOM_STR NC_("sidebarwrap|customlabel", "Custom")
+#define STR_CONTENT_CONTROL_PLACEHOLDER NC_("STR_CONTENT_CONTROL_PLACEHOLDER", "Click here to enter text")
#endif