diff options
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/app/AppControllerGen.cxx | 8 | ||||
-rw-r--r-- | dbaccess/source/ui/browser/unodatbr.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/ui/control/tabletree.cxx | 8 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/adtabdlg.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/dlgsave.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/queryorder.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/WCopyTable.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/databaseobjectview.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryTableView.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/TableWindowData.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/uno/copytablewizard.cxx | 4 |
11 files changed, 24 insertions, 24 deletions
diff --git a/dbaccess/source/ui/app/AppControllerGen.cxx b/dbaccess/source/ui/app/AppControllerGen.cxx index 2e4512575a3a..842a48c8c659 100644 --- a/dbaccess/source/ui/app/AppControllerGen.cxx +++ b/dbaccess/source/ui/app/AppControllerGen.cxx @@ -98,11 +98,11 @@ void OApplicationController::convertToView(const OUString& _sName) { SharedConnection xConnection( getConnection() ); Reference< XQueriesSupplier > xSup( xConnection, UNO_QUERY_THROW ); - Reference< XNameAccess > xQueries( xSup->getQueries(), UNO_QUERY_THROW ); + Reference< XNameAccess > xQueries( xSup->getQueries(), UNO_SET_THROW ); Reference< XPropertySet > xSourceObject( xQueries->getByName( _sName ), UNO_QUERY_THROW ); Reference< XTablesSupplier > xTablesSup( xConnection, UNO_QUERY_THROW ); - Reference< XNameAccess > xTables( xTablesSup->getTables(), UNO_QUERY_THROW ); + Reference< XNameAccess > xTables( xTablesSup->getTables(), UNO_SET_THROW ); Reference< XDatabaseMetaData > xMeta = xConnection->getMetaData(); @@ -296,8 +296,8 @@ Reference< XDataSource > SAL_CALL OApplicationController::getDataSource() Reference< XWindow > SAL_CALL OApplicationController::getApplicationMainWindow() { ::osl::MutexGuard aGuard( getMutex() ); - Reference< XFrame > xFrame( getFrame(), UNO_QUERY_THROW ); - Reference< XWindow > xWindow( xFrame->getContainerWindow(), UNO_QUERY_THROW ); + Reference< XFrame > xFrame( getFrame(), UNO_SET_THROW ); + Reference< XWindow > xWindow( xFrame->getContainerWindow(), UNO_SET_THROW ); return xWindow; } diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index 200b8edfa7c4..ec92901a2ab7 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -414,11 +414,11 @@ void SbaTableQueryBrowser::impl_sanitizeRowSetClauses_nothrow() // the tables participating in the statement const Reference< XTablesSupplier > xSuppTables( xComposer, UNO_QUERY_THROW ); - const Reference< XNameAccess > xTableNames( xSuppTables->getTables(), UNO_QUERY_THROW ); + const Reference< XNameAccess > xTableNames( xSuppTables->getTables(), UNO_SET_THROW ); // the columns participating in the statement const Reference< XColumnsSupplier > xSuppColumns( xComposer, UNO_QUERY_THROW ); - const Reference< XNameAccess > xColumnNames( xSuppColumns->getColumns(), UNO_QUERY_THROW ); + const Reference< XNameAccess > xColumnNames( xSuppColumns->getColumns(), UNO_SET_THROW ); // check if the order columns apply to tables which really exist in the statement const Reference< XIndexAccess > xOrderColumns( xComposer->getOrderColumns(), UNO_SET_THROW ); @@ -449,7 +449,7 @@ void SbaTableQueryBrowser::impl_sanitizeRowSetClauses_nothrow() } const Reference< XColumnsSupplier > xSuppTableColumns( xTableNames->getByName( sTableName ), UNO_QUERY_THROW ); - const Reference< XNameAccess > xTableColumnNames( xSuppTableColumns->getColumns(), UNO_QUERY_THROW ); + const Reference< XNameAccess > xTableColumnNames( xSuppTableColumns->getColumns(), UNO_SET_THROW ); if ( !xTableColumnNames->hasByName( sColumnName ) ) { invalidColumn = true; diff --git a/dbaccess/source/ui/control/tabletree.cxx b/dbaccess/source/ui/control/tabletree.cxx index 5dc8186b4c73..4cc0885d8112 100644 --- a/dbaccess/source/ui/control/tabletree.cxx +++ b/dbaccess/source/ui/control/tabletree.cxx @@ -258,7 +258,7 @@ void OTableTreeListBox::UpdateTableList( aTables.resize(_rTables.getLength()); try { - Reference< XDatabaseMetaData > xMeta( _rxConnection->getMetaData(), UNO_QUERY_THROW ); + Reference< XDatabaseMetaData > xMeta( _rxConnection->getMetaData(), UNO_SET_THROW ); std::transform( _rTables.begin(), _rTables.end(), aTables.begin(), OViewSetter( _rViews, xMeta->supportsMixedCaseQuotedIdentifiers() ) ); } @@ -279,7 +279,7 @@ void TableTreeListBox::UpdateTableList( aTables.resize(_rTables.getLength()); try { - Reference< XDatabaseMetaData > xMeta( _rxConnection->getMetaData(), UNO_QUERY_THROW ); + Reference< XDatabaseMetaData > xMeta( _rxConnection->getMetaData(), UNO_SET_THROW ); std::transform( _rTables.begin(), _rTables.end(), aTables.begin(), OViewSetter( _rViews, xMeta->supportsMixedCaseQuotedIdentifiers() ) ); } @@ -322,7 +322,7 @@ void OTableTreeListBox::UpdateTableList( const Reference< XConnection >& _rxConn return; // get the table/view names - Reference< XDatabaseMetaData > xMeta( _rxConnection->getMetaData(), UNO_QUERY_THROW ); + Reference< XDatabaseMetaData > xMeta( _rxConnection->getMetaData(), UNO_SET_THROW ); for (auto const& table : _rTables) { // add the entry @@ -406,7 +406,7 @@ void TableTreeListBox::UpdateTableList( const Reference< XConnection >& _rxConne return; // get the table/view names - Reference< XDatabaseMetaData > xMeta( _rxConnection->getMetaData(), UNO_QUERY_THROW ); + Reference< XDatabaseMetaData > xMeta( _rxConnection->getMetaData(), UNO_SET_THROW ); for (auto const& table : _rTables) { // add the entry diff --git a/dbaccess/source/ui/dlg/adtabdlg.cxx b/dbaccess/source/ui/dlg/adtabdlg.cxx index 1a1d1035a6c7..1add8474188e 100644 --- a/dbaccess/source/ui/dlg/adtabdlg.cxx +++ b/dbaccess/source/ui/dlg/adtabdlg.cxx @@ -119,7 +119,7 @@ OUString TableListFacade::getSelectedName( OUString& _out_rAliasName ) const OUString aComposedName; try { - Reference< XDatabaseMetaData > xMeta( m_xConnection->getMetaData(), UNO_QUERY_THROW ); + Reference< XDatabaseMetaData > xMeta( m_xConnection->getMetaData(), UNO_SET_THROW ); if ( aCatalog.isEmpty() && !aSchema.isEmpty() && xMeta->supportsCatalogsInDataManipulation() @@ -294,7 +294,7 @@ void QueryListFacade::updateTableObjectList( bool /*_bAllowViews*/ ) OUString aQueryImage(ImageProvider::getDefaultImageResourceID(css::sdb::application::DatabaseObject::QUERY)); Reference< XQueriesSupplier > xSuppQueries( m_xConnection, UNO_QUERY_THROW ); - Reference< XNameAccess > xQueries( xSuppQueries->getQueries(), UNO_QUERY_THROW ); + Reference< XNameAccess > xQueries( xSuppQueries->getQueries(), UNO_SET_THROW ); if ( !m_pContainerListener.is() ) { Reference< XContainer> xContainer(xQueries,UNO_QUERY_THROW); diff --git a/dbaccess/source/ui/dlg/dlgsave.cxx b/dbaccess/source/ui/dlg/dlgsave.cxx index 8716ff3af1a4..09c950d02b99 100644 --- a/dbaccess/source/ui/dlg/dlgsave.cxx +++ b/dbaccess/source/ui/dlg/dlgsave.cxx @@ -161,7 +161,7 @@ void lcl_fillComboList( weld::ComboBox& _rList, const Reference< XConnection >& FGetMetaStrings GetAll, const OUString& _rCurrent ) { try { - Reference< XDatabaseMetaData > xMetaData( _rxConnection->getMetaData(), UNO_QUERY_THROW ); + Reference< XDatabaseMetaData > xMetaData( _rxConnection->getMetaData(), UNO_SET_THROW ); Reference< XResultSet > xRes = (xMetaData.get()->*GetAll)(); Reference< XRow > xRow( xRes, UNO_QUERY_THROW ); diff --git a/dbaccess/source/ui/dlg/queryorder.cxx b/dbaccess/source/ui/dlg/queryorder.cxx index af788f258ba0..1be97ad25ec9 100644 --- a/dbaccess/source/ui/dlg/queryorder.cxx +++ b/dbaccess/source/ui/dlg/queryorder.cxx @@ -134,7 +134,7 @@ void DlgOrderCrit::impl_initializeOrderList_nothrow() const OUString sNameProperty = "Name"; const OUString sAscendingProperty = "IsAscending"; - Reference< XIndexAccess > xOrderColumns( m_xQueryComposer->getOrderColumns(), UNO_QUERY_THROW ); + Reference< XIndexAccess > xOrderColumns( m_xQueryComposer->getOrderColumns(), UNO_SET_THROW ); sal_Int32 nColumns = xOrderColumns->getCount(); if ( nColumns > DOG_ROWS ) nColumns = DOG_ROWS; diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx index 38458e8af440..ca8dac4694f4 100644 --- a/dbaccess/source/ui/misc/WCopyTable.cxx +++ b/dbaccess/source/ui/misc/WCopyTable.cxx @@ -479,8 +479,8 @@ namespace bool lcl_sameConnection_throw( const Reference< XConnection >& _rxLHS, const Reference< XConnection >& _rxRHS ) { - Reference< XDatabaseMetaData > xMetaLHS( _rxLHS->getMetaData(), UNO_QUERY_THROW ); - Reference< XDatabaseMetaData > xMetaRHS( _rxRHS->getMetaData(), UNO_QUERY_THROW ); + Reference< XDatabaseMetaData > xMetaLHS( _rxLHS->getMetaData(), UNO_SET_THROW ); + Reference< XDatabaseMetaData > xMetaRHS( _rxRHS->getMetaData(), UNO_SET_THROW ); return xMetaLHS->getURL() == xMetaRHS->getURL(); } } diff --git a/dbaccess/source/ui/misc/databaseobjectview.cxx b/dbaccess/source/ui/misc/databaseobjectview.cxx index e68f17ffd3ca..9ca8048b9e0e 100644 --- a/dbaccess/source/ui/misc/databaseobjectview.cxx +++ b/dbaccess/source/ui/misc/databaseobjectview.cxx @@ -134,7 +134,7 @@ namespace dbaui pContainerWindow->SetExtendedStyle( pContainerWindow->GetExtendedStyle() | WindowExtendedStyle::Document ); } - Reference< XComponentLoader > xFrameLoader( m_xFrameLoader, UNO_QUERY_THROW ); + Reference< XComponentLoader > xFrameLoader( m_xFrameLoader, UNO_SET_THROW ); xReturn = xFrameLoader->loadComponentFromURL( m_sComponentURL, "_self", diff --git a/dbaccess/source/ui/querydesign/QueryTableView.cxx b/dbaccess/source/ui/querydesign/QueryTableView.cxx index 25a2cb93f26b..2cab54cad51d 100644 --- a/dbaccess/source/ui/querydesign/QueryTableView.cxx +++ b/dbaccess/source/ui/querydesign/QueryTableView.cxx @@ -463,7 +463,7 @@ void OQueryTableView::AddTabWin(const OUString& _rComposedName, const OUString& { Reference< XPropertySet > xProp( xKeyIndex->getByIndex(i), UNO_QUERY_THROW ); xColumnsSupplier.set( xProp, UNO_QUERY_THROW ); - xFKeyColumns.set( xColumnsSupplier->getColumns(), UNO_QUERY_THROW ); + xFKeyColumns.set( xColumnsSupplier->getColumns(), UNO_SET_THROW ); sal_Int32 nKeyType = 0; xProp->getPropertyValue(PROPERTY_TYPE) >>= nKeyType; @@ -511,7 +511,7 @@ void OQueryTableView::AddTabWin(const OUString& _rComposedName, const OUString& continue; Reference<XColumnsSupplier> xFKColumnsSupplier( xFKKey, UNO_QUERY_THROW ); - Reference< XNameAccess > xTColumns( xFKColumnsSupplier->getColumns(), UNO_QUERY_THROW ); + Reference< XNameAccess > xTColumns( xFKColumnsSupplier->getColumns(), UNO_SET_THROW ); addConnections( this, *pTabWinTmp, *pNewTabWin, xTColumns ); } } diff --git a/dbaccess/source/ui/querydesign/TableWindowData.cxx b/dbaccess/source/ui/querydesign/TableWindowData.cxx index 02c9204aa039..30a4ef37ae08 100644 --- a/dbaccess/source/ui/querydesign/TableWindowData.cxx +++ b/dbaccess/source/ui/querydesign/TableWindowData.cxx @@ -90,11 +90,11 @@ bool OTableWindowData::init(const Reference< XConnection >& _xConnection,bool _ ::osl::MutexGuard aGuard( m_aMutex ); Reference< XQueriesSupplier > xSupQueries( _xConnection, UNO_QUERY_THROW ); - Reference< XNameAccess > xQueries( xSupQueries->getQueries(), UNO_QUERY_THROW ); + Reference< XNameAccess > xQueries( xSupQueries->getQueries(), UNO_SET_THROW ); bool bIsKnownQuery = _bAllowQueries && xQueries->hasByName( m_sComposedName ); Reference< XTablesSupplier > xSupTables( _xConnection, UNO_QUERY_THROW ); - Reference< XNameAccess > xTables( xSupTables->getTables(), UNO_QUERY_THROW ); + Reference< XNameAccess > xTables( xSupTables->getTables(), UNO_SET_THROW ); bool bIsKnownTable = xTables->hasByName( m_sComposedName ); if ( bIsKnownQuery ) diff --git a/dbaccess/source/ui/uno/copytablewizard.cxx b/dbaccess/source/ui/uno/copytablewizard.cxx index a5dcd743208b..295575187044 100644 --- a/dbaccess/source/ui/uno/copytablewizard.cxx +++ b/dbaccess/source/ui/uno/copytablewizard.cxx @@ -1092,7 +1092,7 @@ void CopyTableWizard::impl_copyRows_throw( const Reference< XResultSet >& _rxSou if ( !m_xDestConnection.is() ) throw RuntimeException( "m_xDestConnection is set to null, CopyTableWizard::impl_copyRows_throw: illegal call!", *this ); - Reference< XDatabaseMetaData > xDestMetaData( m_xDestConnection->getMetaData(), UNO_QUERY_THROW ); + Reference< XDatabaseMetaData > xDestMetaData( m_xDestConnection->getMetaData(), UNO_SET_THROW ); const OCopyTableWizard& rWizard = impl_getDialog_throw(); ODatabaseExport::TPositions aColumnPositions = rWizard.GetColumnPositions(); @@ -1424,7 +1424,7 @@ OUString CopyTableWizard::impl_getServerSideCopyStatement_throw(const Reference< { const Reference<XColumnsSupplier> xDestColsSup(_xTable,UNO_QUERY_THROW); const Sequence< OUString> aDestColumnNames = xDestColsSup->getColumns()->getElementNames(); - const Reference< XDatabaseMetaData > xDestMetaData( m_xDestConnection->getMetaData(), UNO_QUERY_THROW ); + const Reference< XDatabaseMetaData > xDestMetaData( m_xDestConnection->getMetaData(), UNO_SET_THROW ); const OUString sQuote = xDestMetaData->getIdentifierQuoteString(); OUStringBuffer sColumns; // 1st check if the columns matching |