diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-01 19:27:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-02 09:52:29 +0100 |
commit | ea2aeb6917a04401f95bab7aac37f4d070e07128 (patch) | |
tree | cdedaebbce1016b84ead350750c070e04fec3ac1 /dbaccess/source/ui/misc | |
parent | 1d8a32f15b0895dcdd33331768fda50dd69cf8fc (diff) |
use weld::WaitObject
Change-Id: Ib2ad0f0fe17c4db66693ef91e3cdbc8511eb8314
Reviewed-on: https://gerrit.libreoffice.org/84166
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source/ui/misc')
-rw-r--r-- | dbaccess/source/ui/misc/TableCopyHelper.cxx | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/linkeddocuments.cxx | 15 |
2 files changed, 7 insertions, 9 deletions
diff --git a/dbaccess/source/ui/misc/TableCopyHelper.cxx b/dbaccess/source/ui/misc/TableCopyHelper.cxx index 135632e0c698..d3848766916a 100644 --- a/dbaccess/source/ui/misc/TableCopyHelper.cxx +++ b/dbaccess/source/ui/misc/TableCopyHelper.cxx @@ -51,7 +51,6 @@ #include <com/sun/star/sdb/XQueriesSupplier.hpp> #include <com/sun/star/sdbc/XColumnLocate.hpp> #include <com/sun/star/sdbcx/XRowLocate.hpp> -#include <vcl/waitobj.hxx> #include <com/sun/star/sdb/XSQLQueryComposerFactory.hpp> #include <unotools/tempfile.hxx> #include <cppuhelper/exc_hlp.hxx> diff --git a/dbaccess/source/ui/misc/linkeddocuments.cxx b/dbaccess/source/ui/misc/linkeddocuments.cxx index 6c0ba95365e1..1e3a97193fc1 100644 --- a/dbaccess/source/ui/misc/linkeddocuments.cxx +++ b/dbaccess/source/ui/misc/linkeddocuments.cxx @@ -47,7 +47,6 @@ #include <svtools/ehdl.hxx> #include <svx/dataaccessdescriptor.hxx> #include <com/sun/star/container/XHierarchicalNameContainer.hpp> -#include <vcl/waitobj.hxx> #include <comphelper/mimeconfighelper.hxx> #include <cppuhelper/exc_hlp.hxx> @@ -100,18 +99,18 @@ namespace dbaui } // OLinkedDocumentsAccess - OLinkedDocumentsAccess::OLinkedDocumentsAccess( vcl::Window* _pDialogParent, const Reference< XDatabaseDocumentUI >& i_rDocumentUI, + OLinkedDocumentsAccess::OLinkedDocumentsAccess( weld::Window* pDialogParent, const Reference< XDatabaseDocumentUI >& i_rDocumentUI, const Reference< XComponentContext >& _rxContext, const Reference< XNameAccess >& _rxContainer, const Reference< XConnection>& _xConnection, const OUString& _sDataSourceName ) :m_xContext(_rxContext) ,m_xDocumentContainer(_rxContainer) ,m_xConnection(_xConnection) ,m_xDocumentUI( i_rDocumentUI ) - ,m_pDialogParent(_pDialogParent) + ,m_pDialogParent(pDialogParent) ,m_sDataSourceName(_sDataSourceName) { OSL_ENSURE(m_xContext.is(), "OLinkedDocumentsAccess::OLinkedDocumentsAccess: invalid service factory!"); - OSL_ENSURE(m_pDialogParent, "OLinkedDocumentsAccess::OLinkedDocumentsAccess: really need a dialog parent!"); + assert(m_pDialogParent && "OLinkedDocumentsAccess::OLinkedDocumentsAccess: really need a dialog parent!"); } OLinkedDocumentsAccess::~OLinkedDocumentsAccess() { @@ -125,7 +124,7 @@ namespace dbaui if ( !xComponentLoader.is() ) return xRet; - WaitObject aWaitCursor( m_pDialogParent ); + weld::WaitObject aWaitCursor(m_pDialogParent); ::comphelper::NamedValueCollection aArguments; OUString sOpenMode; @@ -184,7 +183,7 @@ namespace dbaui Reference< XJobExecutor > xWizard; { - WaitObject aWaitCursor( m_pDialogParent ); + weld::WaitObject aWaitCursor(m_pDialogParent); xWizard.set( m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext( OUString::createFromAscii( _pWizardService ), aArgs.getWrappedPropertyValues(), @@ -291,7 +290,7 @@ namespace dbaui Command aCommand; aCommand.Name = "openDesign"; aCommand.Argument <<= aCommandArgs.getPropertyValues(); - WaitObject aWaitCursor( m_pDialogParent ); + weld::WaitObject aWaitCursor(m_pDialogParent); xNewDocument.set( xContent->execute( aCommand, xContent->createCommandIdentifier(), nullptr ), UNO_QUERY ); } } @@ -359,7 +358,7 @@ namespace dbaui } if (aInfo.isValid()) { - showError(aInfo, VCLUnoHelper::GetInterface(m_pDialogParent), m_xContext ); + showError(aInfo, m_pDialogParent->GetXWindow(), m_xContext); } return xRet; } |