summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/DbAdminImpl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-01-04 09:12:44 +0200
committerNoel Grandin <noel@peralex.com>2013-01-09 08:08:14 +0200
commitfd5a2eb07011e8aedfd5ef0a82edaf07221554ba (patch)
treecae1b578b1f5a3faea88499274c23303401a9439 /dbaccess/source/ui/dlg/DbAdminImpl.cxx
parent3a50e97499d0c1ff6307dcfe9883aea1af300947 (diff)
fdo#46808, new method OConfigurationTreeRoot::createWithComponentContext
and use it to replace usage of createWithServiceFactory, and thus replace usage of XMultiServiceFactory. Change-Id: Id2f44066683ce17cf7a22f80916031556ef0e82a
Diffstat (limited to 'dbaccess/source/ui/dlg/DbAdminImpl.cxx')
-rw-r--r--dbaccess/source/ui/dlg/DbAdminImpl.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/dbaccess/source/ui/dlg/DbAdminImpl.cxx b/dbaccess/source/ui/dlg/DbAdminImpl.cxx
index a548f2f4dec6..329faf48e4b6 100644
--- a/dbaccess/source/ui/dlg/DbAdminImpl.cxx
+++ b/dbaccess/source/ui/dlg/DbAdminImpl.cxx
@@ -146,8 +146,8 @@ namespace
//========================================================================
//= ODbDataSourceAdministrationHelper
//========================================================================
-ODbDataSourceAdministrationHelper::ODbDataSourceAdministrationHelper(const Reference< XMultiServiceFactory >& _xORB,Window* _pParent,IItemSetHelper* _pItemSetHelper)
- : m_xORB(_xORB)
+ODbDataSourceAdministrationHelper::ODbDataSourceAdministrationHelper(const Reference< XComponentContext >& _xORB,Window* _pParent,IItemSetHelper* _pItemSetHelper)
+ : m_xContext(_xORB)
, m_pParent(_pParent)
, m_pItemSetHelper(_pItemSetHelper)
{
@@ -209,7 +209,7 @@ ODbDataSourceAdministrationHelper::ODbDataSourceAdministrationHelper(const Refer
try
{
- m_xDatabaseContext = DatabaseContext::create(comphelper::getComponentContext(m_xORB));
+ m_xDatabaseContext = DatabaseContext::create(m_xContext);
}
catch(const Exception&)
{
@@ -252,7 +252,7 @@ sal_Bool ODbDataSourceAdministrationHelper::getCurrentSettings(Sequence< Propert
if ( !xHandler.is() )
{
// instantiate the default SDB interaction handler
- xHandler = Reference< XInteractionHandler >( task::InteractionHandler::createWithParent(comphelper::getComponentContext(m_xORB), 0), UNO_QUERY );
+ xHandler = Reference< XInteractionHandler >( task::InteractionHandler::createWithParent(m_xContext, 0), UNO_QUERY );
}
String sName = pName ? pName->GetValue() : String();
@@ -373,7 +373,7 @@ void ODbDataSourceAdministrationHelper::clearPassword()
catch (const SQLWarning& e) { aErrorInfo = SQLExceptionInfo(e); }
catch (const SQLException& e) { aErrorInfo = SQLExceptionInfo(e); }
- showError(aErrorInfo,m_pParent,comphelper::getComponentContext(getORB()));
+ showError(aErrorInfo,m_pParent,getORB());
}
if ( aRet.first.is() )
successfullyConnected();// notify the admindlg to save the password
@@ -396,7 +396,7 @@ Reference< XDriver > ODbDataSourceAdministrationHelper::getDriver(const ::rtl::O
try
{
- xDriverManager.set( ConnectionPool::create( comphelper::getComponentContext(getORB()) ) );
+ xDriverManager.set( ConnectionPool::create( getORB() ) );
}
catch (const Exception& e)
{
@@ -734,7 +734,7 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS
// first determine which of all the items are relevant for the data source (depends on the connection url)
::rtl::OUString eType = getDatasourceType(_rSource);
::std::vector< sal_Int32> aDetailIds;
- ODriversSettings::getSupportedIndirectSettings(eType,getORB(),aDetailIds);
+ ODriversSettings::getSupportedIndirectSettings(eType, getORB(), aDetailIds);
// collect the translated property values for the relevant items
PropertyValueSet aRelevantSettings;