summaryrefslogtreecommitdiff
path: root/svtools/source/dialogs/wizardmachine.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/dialogs/wizardmachine.cxx')
-rw-r--r--svtools/source/dialogs/wizardmachine.cxx19
1 files changed, 15 insertions, 4 deletions
diff --git a/svtools/source/dialogs/wizardmachine.cxx b/svtools/source/dialogs/wizardmachine.cxx
index b1bbb41155a5..e76aa4266214 100644
--- a/svtools/source/dialogs/wizardmachine.cxx
+++ b/svtools/source/dialogs/wizardmachine.cxx
@@ -23,25 +23,36 @@
#include <tools/diagnose_ex.h>
#include <svtools/svtresid.hxx>
#include <svtools/strings.hrc>
-
+#include <vcl/svapp.hxx>
namespace svt
{
-
-
//= WizardPageImplData
-
OWizardPage::OWizardPage(vcl::Window *pParent, const OString& rID,
const OUString& rUIXMLDescription)
: TabPage(pParent, rID, rUIXMLDescription)
{
}
+ OWizardPage::OWizardPage(TabPageParent pParent, const OUString& rUIXMLDescription, const OString& rID)
+ : TabPage(pParent.pPage ? Application::GetDefDialogParent() : pParent.pParent.get()) //just drag this along hidden in this scenario
+ , m_xBuilder(pParent.pPage ? Application::CreateBuilder(pParent.pPage, rUIXMLDescription)
+ : Application::CreateInterimBuilder(this, rUIXMLDescription))
+ , m_xContainer(m_xBuilder->weld_container(rID))
+ {
+ }
+
OWizardPage::~OWizardPage()
{
disposeOnce();
}
+ void OWizardPage::dispose()
+ {
+ m_xBuilder.reset();
+ TabPage::dispose();
+ }
+
void OWizardPage::initializePage()
{
}