summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-09-25 10:19:10 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2019-10-01 10:21:26 +0200
commit7362568a87256c367f79fd17de68cb447e79f265 (patch)
treec1d80f42d3ebf16780cde85c68e28c9216b5f187 /vcl/source/control
parent75b8db7fa7344a679d3c5dbdc8c5bd4228cdbc7c (diff)
jsdialogs: send listbox entries
Change-Id: I00b2260e2ceaffbfbe415633ef5a35c7d147b44a Reviewed-on: https://gerrit.libreoffice.org/79804 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/listbox.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx
index 323c6c88af44..e5bc3d53c429 100644
--- a/vcl/source/control/listbox.cxx
+++ b/vcl/source/control/listbox.cxx
@@ -1437,6 +1437,23 @@ FactoryFunction ListBox::GetUITestFactory() const
return ListBoxUIObject::create;
}
+boost::property_tree::ptree ListBox::DumpAsPropertyTree()
+{
+ boost::property_tree::ptree aTree(Control::DumpAsPropertyTree());
+ boost::property_tree::ptree aEntries;
+
+ for (int i = 0; i < GetEntryCount(); ++i)
+ {
+ boost::property_tree::ptree aEntry;
+ aEntry.put("", GetEntry(i));
+ aEntries.push_back(std::make_pair("", aEntry));
+ }
+
+ aTree.add_child("entries", aEntries);
+
+ return aTree;
+}
+
MultiListBox::MultiListBox( vcl::Window* pParent, WinBits nStyle ) :
ListBox( WindowType::MULTILISTBOX )
{