include/vcl/listctrl.hxx | 1 + vcl/source/control/listctrl.cxx | 5 +++++ 2 files changed, 6 insertions(+)
New commits: commit 47ec4332dde7a8b7a8abb188679e8b13481bd62f Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Sun Oct 8 01:30:30 2017 +0200 add a method to get all entries from ListControl Change-Id: I9ff73dab53f5769270e8eb32889314e9c61a1828 Reviewed-on: https://gerrit.libreoffice.org/43254 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> diff --git a/include/vcl/listctrl.hxx b/include/vcl/listctrl.hxx index db6dcbe0c08b..6659ccafb3ff 100644 --- a/include/vcl/listctrl.hxx +++ b/include/vcl/listctrl.hxx @@ -44,6 +44,7 @@ public: virtual void dispose() override; void addEntry(VclPtr<vcl::Window> xEntry, sal_uInt32 nPos = std::numeric_limits<sal_uInt16>::max()); + std::vector<VclPtr<vcl::Window>> getEntries() const; void deleteEntry(sal_uInt32 nPos); virtual Size GetOptimalSize() const override; diff --git a/vcl/source/control/listctrl.cxx b/vcl/source/control/listctrl.cxx index 1c6aa0c85742..66c743fd83a2 100644 --- a/vcl/source/control/listctrl.cxx +++ b/vcl/source/control/listctrl.cxx @@ -142,6 +142,11 @@ void ListControl::deleteEntry(sal_uInt32 nPos) RecalcAll(); } +std::vector<VclPtr<vcl::Window>> ListControl::getEntries() const +{ + return maEntries; +} + bool ListControl::EventNotify( NotifyEvent& rNEvt ) { if (rNEvt.GetType() == MouseNotifyEvent::COMMAND) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits