diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-05-28 15:36:22 +0200 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-05-28 15:36:22 +0200 |
commit | ccc9774139e48f266e40c99f7243f03f4a728517 (patch) | |
tree | 5e149b9089218a640b525de2f1f0e1598a3768b0 /svtools | |
parent | 024b04532d81f4e9c18e12d7dba418214cac969f (diff) |
unoawt: XWizard now has an attribute giving access to the XWindow interface of the dialog's main window
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/uno/unowizard.hxx | 1 | ||||
-rw-r--r-- | svtools/source/uno/wizard/unowizard.cxx | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/svtools/source/uno/unowizard.hxx b/svtools/source/uno/unowizard.hxx index f227160f96bc..ceb8fac14eb6 100644 --- a/svtools/source/uno/unowizard.hxx +++ b/svtools/source/uno/unowizard.hxx @@ -77,6 +77,7 @@ namespace svt { namespace uno // ::com::sun::star::ui::dialogs::XWizard virtual ::rtl::OUString SAL_CALL getHelpURL() throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setHelpURL( const ::rtl::OUString& _helpurl ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL getDialogWindow() throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XWizardPage > SAL_CALL getCurrentPage( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL enableButton( ::sal_Int16 WizardButton, ::sal_Bool Enable ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setDefaultButton( ::sal_Int16 WizardButton ) throw (::com::sun::star::uno::RuntimeException); diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx index 3d601a51c49e..e310aceaca75 100644 --- a/svtools/source/uno/wizard/unowizard.cxx +++ b/svtools/source/uno/wizard/unowizard.cxx @@ -72,6 +72,7 @@ namespace svt { namespace uno using ::com::sun::star::ui::dialogs::XWizardPage; using ::com::sun::star::container::NoSuchElementException; using ::com::sun::star::util::InvalidStateException; + using ::com::sun::star::awt::XWindow; /** === end UNO using === **/ namespace WizardButton = ::com::sun::star::ui::dialogs::WizardButton; @@ -294,6 +295,16 @@ namespace svt { namespace uno } //------------------------------------------------------------------------------------------------------------------ + Reference< XWindow > SAL_CALL Wizard::getDialogWindow() throw (RuntimeException) + { + ::vos::OGuard aSolarGuard( Application::GetSolarMutex() ); + ::osl::MutexGuard aGuard( m_aMutex ); + + ENSURE_OR_RETURN( m_pDialog, "Wizard::getDialogWindow: illegal call (execution did not start, yet)!", NULL ); + return Reference< XWindow >( m_pDialog->GetComponentInterface(), UNO_QUERY ); + } + + //------------------------------------------------------------------------------------------------------------------ void SAL_CALL Wizard::enableButton( ::sal_Int16 i_WizardButton, ::sal_Bool i_Enable ) throw (RuntimeException) { ::vos::OGuard aSolarGuard( Application::GetSolarMutex() ); |