From feccd4363b46d28b084d344815b335bcabfac6d6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 3 Aug 2019 20:49:22 +0100 Subject: hook GtkAssistant buildable to RoadmapWizard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I486ee35423be33f0f78780a43afa324aa66f5f26 Reviewed-on: https://gerrit.libreoffice.org/76904 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- vcl/source/window/builder.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'vcl') diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 61be22e10d70..3b7db3eea3ab 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -1640,7 +1641,7 @@ VclPtr VclBuilder::makeObject(vcl::Window *pParent, const OString & pParent->GetType() == WindowType::VERTICALTABCONTROL)) { bool bTopLevel(name == "GtkDialog" || name == "GtkMessageDialog" || - name == "GtkWindow" || name == "GtkPopover"); + name == "GtkWindow" || name == "GtkPopover" || name == "GtkAssistant"); if (!bTopLevel) { if (pParent->GetType() == WindowType::TABCONTROL) @@ -1686,12 +1687,17 @@ VclPtr VclBuilder::makeObject(vcl::Window *pParent, const OString & extractButtonImage(id, rMap, name == "GtkRadioButton"); VclPtr xWindow; - if (name == "GtkDialog" || name == "GtkAboutDialog") + if (name == "GtkDialog" || name == "GtkAboutDialog" || name == "GtkAssistant") { WinBits nBits = WB_MOVEABLE|WB_3DLOOK|WB_CLOSEABLE; if (extractResizable(rMap)) nBits |= WB_SIZEABLE; - if (name == "GtkAboutDialog") + if (name == "GtkAssistant") + { + //TODO when no bare OWizardMachine pass nBits down instead of using empty .ui + xWindow = VclPtr::Create(pParent); + } + else if (name == "GtkAboutDialog") xWindow = VclPtr::Create(pParent, nBits, !pParent ? Dialog::InitFlag::NoParent : Dialog::InitFlag::Default); else xWindow = VclPtr::Create(pParent, nBits, !pParent ? Dialog::InitFlag::NoParent : Dialog::InitFlag::Default); -- cgit