diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-06 15:54:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-06 20:54:24 +0200 |
commit | 8a63cdd32c4eb348cb6625b4be6739fe391cb0b4 (patch) | |
tree | 4ea85a14afcdbf241254cfaa241a910140058805 /svtools/source/uno/wizard | |
parent | e650279db77281fe98aaff28e31c2269611c31e4 (diff) |
make OGenericUnoDialog take an awt::XWindow
Change-Id: I7c63397d0579306f4ade1947ce5bf9e1866bf876
Reviewed-on: https://gerrit.libreoffice.org/61469
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools/source/uno/wizard')
-rw-r--r-- | svtools/source/uno/wizard/unowizard.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx index 1d66b67932bc..d230dc3c5825 100644 --- a/svtools/source/uno/wizard/unowizard.cxx +++ b/svtools/source/uno/wizard/unowizard.cxx @@ -33,6 +33,7 @@ #include <comphelper/proparrhlp.hxx> #include <cppuhelper/implbase.hxx> #include <svtools/genericunodialog.hxx> +#include <toolkit/helper/vclunohelper.hxx> #include <tools/diagnose_ex.h> #include <rtl/ref.hxx> #include <rtl/strbuf.hxx> @@ -131,7 +132,7 @@ namespace { virtual ~Wizard() override; protected: - virtual OGenericUnoDialog::Dialog createDialog(vcl::Window* _pParent) override; + virtual OGenericUnoDialog::Dialog createDialog(const css::uno::Reference<css::awt::XWindow>& rParent) override; private: css::uno::Sequence< css::uno::Sequence< sal_Int16 > > m_aWizardSteps; @@ -252,9 +253,9 @@ namespace { return OUStringToOString( _rHelpURL, RTL_TEXTENCODING_UTF8 ); } - svt::OGenericUnoDialog::Dialog Wizard::createDialog( vcl::Window* i_pParent ) + svt::OGenericUnoDialog::Dialog Wizard::createDialog(const css::uno::Reference<css::awt::XWindow>& rParent) { - VclPtrInstance<WizardShell> pDialog( i_pParent, m_xController, m_aWizardSteps ); + VclPtrInstance<WizardShell> pDialog(VCLUnoHelper::GetWindow(rParent), m_xController, m_aWizardSteps); pDialog->SetHelpId( lcl_getHelpId( m_sHelpURL ) ); pDialog->setTitleBase( m_sTitle ); return OGenericUnoDialog::Dialog(pDialog); |