summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-10-08 17:51:37 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-10-09 01:20:25 +0200
commitb3ee9827d9cc7fd560b3bc06b2e6b435c9225a7b (patch)
treeffc48fd093f77c4c42edd61874a10e40f8986f06 /vcl
parentf3c6264d1e8a599ddfb23f6dc9a9dd2e42885c19 (diff)
allow adding the ListControl through UI files
Change-Id: Ie97b027860e02cf774dc71fae6599342b8a380c4 Reviewed-on: https://gerrit.libreoffice.org/43258 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/builder.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index abfce54a64dd..5d955f7e3c4a 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -36,6 +36,7 @@
#include <vcl/vclmedit.hxx>
#include <vcl/settings.hxx>
#include <vcl/slider.hxx>
+#include <vcl/listctrl.hxx>
#include <vcl/commandinfoprovider.hxx>
#include <svdata.hxx>
#include <bitmaps.hlst>
@@ -1599,6 +1600,11 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString &
else
xWindow = VclPtr<FloatingWindow>::Create(pParent, nBits|WB_MOVEABLE);
}
+ else if (name == "GtkListBox")
+ {
+ WinBits nBits = extractDeferredBits(rMap);
+ xWindow = VclPtr<ListControl>::Create(pParent, nBits);
+ }
else
{
#ifndef SAL_DLLPREFIX