[Libreoffice-commits] core.git: include/vcl vcl/source

Markus Mohrhard markus.mohrhard at googlemail.com
Tue Oct 10 17:27:38 UTC 2017


 include/vcl/listctrl.hxx        |    1 +
 vcl/source/control/listctrl.cxx |    5 +++++
 2 files changed, 6 insertions(+)

New commits:
commit 47ec4332dde7a8b7a8abb188679e8b13481bd62f
Author: Markus Mohrhard <markus.mohrhard at 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 <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at 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)


More information about the Libreoffice-commits mailing list