summaryrefslogtreecommitdiff
path: root/sw/inc/formatcontentcontrol.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-05-12 08:17:02 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-05-12 17:48:51 +0200
commit9f37840b0d7778ab4fc3294c44f62198ea932e3f (patch)
tree5178fd0927ce62bb5edebcff87a76ea55f49c0fe /sw/inc/formatcontentcontrol.hxx
parente98a68b23e14580dfa236536254b6ff80cd10df7 (diff)
sw content controls, dropdown: add insert UI
- introduce a SwContentControlListItem::ToString() that tries to use the display text of the list item, otherwise falls back to its value and use it while building the dropdown widget and when inserting selected list item - handle the dropdown case in SwWrtShell::InsertContentControl() - expose this as a new .uno:InsertDropdownContentControl command - mention the new and all previous content control commands in the MS-compatible forms menu as well Change-Id: I075f77933c1466b5258357d5a661e173c34de34f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134215 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/inc/formatcontentcontrol.hxx')
-rw-r--r--sw/inc/formatcontentcontrol.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/formatcontentcontrol.hxx b/sw/inc/formatcontentcontrol.hxx
index e3debfb77bf4..09797fd00b0a 100644
--- a/sw/inc/formatcontentcontrol.hxx
+++ b/sw/inc/formatcontentcontrol.hxx
@@ -84,6 +84,8 @@ public:
void dumpAsXml(xmlTextWriterPtr pWriter) const;
+ OUString ToString() const;
+
static void ItemsToAny(const std::vector<SwContentControlListItem>& rItems,
css::uno::Any& rVal);