[Libreoffice-commits] core.git: vcl/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Sun Oct 8 23:20:52 UTC 2017
vcl/source/window/builder.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit b3ee9827d9cc7fd560b3bc06b2e6b435c9225a7b
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Oct 8 17:51:37 2017 +0200
allow adding the ListControl through UI files
Change-Id: Ie97b027860e02cf774dc71fae6599342b8a380c4
Reviewed-on: https://gerrit.libreoffice.org/43258
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
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
More information about the Libreoffice-commits
mailing list