diff options
Diffstat (limited to 'extensions/source/bibliography')
-rw-r--r-- | extensions/source/bibliography/bibbeam.cxx | 6 | ||||
-rw-r--r-- | extensions/source/bibliography/bibload.cxx | 6 | ||||
-rw-r--r-- | extensions/source/bibliography/datman.cxx | 14 | ||||
-rw-r--r-- | extensions/source/bibliography/framectr.cxx | 2 | ||||
-rw-r--r-- | extensions/source/bibliography/general.cxx | 2 |
5 files changed, 15 insertions, 15 deletions
diff --git a/extensions/source/bibliography/bibbeam.cxx b/extensions/source/bibliography/bibbeam.cxx index ad6e2463bc49..666950c9d9a7 100644 --- a/extensions/source/bibliography/bibbeam.cxx +++ b/extensions/source/bibliography/bibbeam.cxx @@ -145,7 +145,7 @@ namespace bib OUString aControlName; aAny >>= aControlName; - m_xControl = Reference< awt::XControl > ( xContext->getServiceManager()->createInstanceWithContext(aControlName, xContext), UNO_QUERY_THROW ); + m_xControl.set( xContext->getServiceManager()->createInstanceWithContext(aControlName, xContext), UNO_QUERY_THROW ); m_xControl->setModel( m_xGridModel ); } @@ -153,8 +153,8 @@ namespace bib { // Peer as Child to the FrameWindow m_xControlContainer->addControl("GridControl", m_xControl); - m_xGridWin=uno::Reference< awt::XWindow > (m_xControl, UNO_QUERY ); - m_xDispatchProviderInterception=uno::Reference< frame::XDispatchProviderInterception > (m_xControl, UNO_QUERY ); + m_xGridWin.set(m_xControl, UNO_QUERY ); + m_xDispatchProviderInterception.set(m_xControl, UNO_QUERY ); m_xGridWin->setVisible( sal_True ); m_xControl->setDesignMode( sal_True ); // initially switch on the design mode - switch it off _after_ loading the form diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx index 2460e9639f46..78aa2a4e2dc0 100644 --- a/extensions/source/bibliography/bibload.cxx +++ b/extensions/source/bibliography/bibload.cxx @@ -402,7 +402,7 @@ Reference< sdb::XColumn > BibliographyLoader::GetIdentifierColumn() const Reference< sdb::XColumn > xReturn; if (xColumns.is() && xColumns->hasByName(sIdentifierColumnName)) { - xReturn = Reference< XColumn > (*static_cast<Reference< XInterface > const *>( + xReturn.set(*static_cast<Reference< XInterface > const *>( xColumns->getByName(sIdentifierColumnName).getValue()), UNO_QUERY); } return xReturn; @@ -436,7 +436,7 @@ static OUString lcl_AddProperty(Reference< XNameAccess > xColumns, OUString uRet; Reference< sdb::XColumn > xCol; if (xColumns->hasByName(uColumnName)) - xCol = Reference< sdb::XColumn > (*static_cast<Reference< XInterface > const *>(xColumns->getByName(uColumnName).getValue()), UNO_QUERY); + xCol.set(*static_cast<Reference< XInterface > const *>(xColumns->getByName(uColumnName).getValue()), UNO_QUERY); if (xCol.is()) uRet = xCol->getString(); return uRet; @@ -463,7 +463,7 @@ Any BibliographyLoader::getByName(const OUString& rName) throw OUString sId = sIdentifierMapping; Reference< sdb::XColumn > xColumn; if (xColumns->hasByName(sId)) - xColumn = Reference< sdb::XColumn > (*static_cast<Reference< XInterface > const *>(xColumns->getByName(sId).getValue()), UNO_QUERY); + xColumn.set(*static_cast<Reference< XInterface > const *>(xColumns->getByName(sId).getValue()), UNO_QUERY); if (xColumn.is()) { do diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx index 728359d65af2..34c7360f607a 100644 --- a/extensions/source/bibliography/datman.cxx +++ b/extensions/source/bibliography/datman.cxx @@ -96,7 +96,7 @@ Reference< XConnection > getConnection(const OUString& _rURL) DBG_ASSERT(xNamingContext.is(), "::getDataSource : no NamingService interface on the sdb::DatabaseAccessContext !"); try { - xDataSource = Reference< XDataSource > (xNamingContext->getRegisteredObject(_rURL), UNO_QUERY); + xDataSource.set(xNamingContext->getRegisteredObject(_rURL), UNO_QUERY); } catch (const Exception&) { @@ -135,7 +135,7 @@ Reference< XConnection > getConnection(const Reference< XInterface > & xRowSe if (!xFormProps.is()) return xConn; - xConn = Reference< XConnection > (*static_cast<Reference< XInterface > const *>(xFormProps->getPropertyValue("ActiveConnection").getValue()), UNO_QUERY); + xConn.set(*static_cast<Reference< XInterface > const *>(xFormProps->getPropertyValue("ActiveConnection").getValue()), UNO_QUERY); if (!xConn.is()) { SAL_INFO("extensions", "no active connection"); @@ -173,7 +173,7 @@ Reference< XNameAccess > getColumns(const Reference< XForm > & _rxForm) xFormProps->getPropertyValue("Command") >>= sTable; Reference< XNameAccess > xTables = xSupplyTables->getTables(); if (xTables.is() && xTables->hasByName(sTable)) - xSupplyCols = Reference< XColumnsSupplier > ( + xSupplyCols.set( *static_cast<Reference< XInterface > const *>(xTables->getByName(sTable).getValue()), UNO_QUERY); if (xSupplyCols.is()) xReturn = xSupplyCols->getColumns(); @@ -778,7 +778,7 @@ Reference< XForm > BibDataManager::createDatabaseForm(BibDBDescriptor& rDesc) try { Reference< XMultiServiceFactory > xMgr = comphelper::getProcessServiceFactory(); - m_xForm = Reference< XForm > ( xMgr->createInstance( "com.sun.star.form.component.Form" ), UNO_QUERY ); + m_xForm.set( xMgr->createInstance( "com.sun.star.form.component.Form" ), UNO_QUERY ); Reference< XPropertySet > aPropertySet( m_xForm, UNO_QUERY ); @@ -1210,7 +1210,7 @@ Reference< awt::XControlModel > BibDataManager::createGridModel(const OUString& // create the control model Reference< XMultiServiceFactory > xMgr = ::comphelper::getProcessServiceFactory(); Reference< XInterface > xObject = xMgr->createInstance("com.sun.star.form.component.GridControl"); - xModel=Reference< awt::XControlModel > ( xObject, UNO_QUERY ); + xModel.set( xObject, UNO_QUERY ); // set the Reference< XPropertySet > xPropSet( xModel, UNO_QUERY ); @@ -1312,7 +1312,7 @@ Reference< awt::XControlModel > BibDataManager::loadControlModel( Reference< XComponentContext > xContext = comphelper::getProcessComponentContext(); Reference< XInterface > xObject = xContext->getServiceManager()->createInstanceWithContext(aInstanceName, xContext); - xModel=Reference< awt::XControlModel > ( xObject, UNO_QUERY ); + xModel.set( xObject, UNO_QUERY ); Reference< XPropertySet > xPropSet( xModel, UNO_QUERY ); Any aFieldName; aFieldName <<= aName; @@ -1607,7 +1607,7 @@ uno::Reference< form::runtime::XFormController > BibDataManager::GetFormControll Reference< uno::XComponentContext > xContext = comphelper::getProcessComponentContext(); m_xFormCtrl = form::runtime::FormController::create(xContext); m_xFormCtrl->setModel(uno::Reference< awt::XTabControllerModel > (getForm(), UNO_QUERY)); - m_xFormDispatch = uno::Reference< frame::XDispatch > ( m_xFormCtrl, UNO_QUERY); + m_xFormDispatch.set( m_xFormCtrl, UNO_QUERY); } return m_xFormCtrl; } diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx index abc6a672cd88..dad48596571f 100644 --- a/extensions/source/bibliography/framectr.cxx +++ b/extensions/source/bibliography/framectr.cxx @@ -563,7 +563,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen if (xConfirm.is()) { sdb::RowChangeEvent aEvent; - aEvent.Source = Reference< XInterface > (xCursor, UNO_QUERY); + aEvent.Source.set(xCursor, UNO_QUERY); aEvent.Action = sdb::RowChangeAction::DELETE; aEvent.Rows = 1; bSuccess = xConfirm->confirmDelete(aEvent); diff --git a/extensions/source/bibliography/general.cxx b/extensions/source/bibliography/general.cxx index 8f851218ea48..11c30663c97a 100644 --- a/extensions/source/bibliography/general.cxx +++ b/extensions/source/bibliography/general.cxx @@ -463,7 +463,7 @@ uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl( if (bTypeListBox) { aControlName = "com.sun.star.form.control.ListBox"; - xLBModel = Reference< form::XBoundComponent >(xCtrModel, UNO_QUERY); + xLBModel.set(xCtrModel, UNO_QUERY); } else { |