diff options
author | Noel Grandin <noel@peralex.com> | 2013-01-04 11:20:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-01-09 08:08:15 +0200 |
commit | 77d215ae2ed9bd08444a5128729066b6025bef27 (patch) | |
tree | 581ee6dc7eaaedd2cea591f64cbed17e3da507ac /uui/source/iahndl.cxx | |
parent | fd5a2eb07011e8aedfd5ef0a82edaf07221554ba (diff) |
fdo#46808, use new method OConfigurationTreeRoot::createWithComponentContext
.. everywhere that was using createWithServiceFactory, and delete the old
method.
Change-Id: I02cb2bfbcc2390494383579d2f14caa4fc5b8014
Diffstat (limited to 'uui/source/iahndl.cxx')
-rw-r--r-- | uui/source/iahndl.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx index f12ae0c0d99e..713e565b2cce 100644 --- a/uui/source/iahndl.cxx +++ b/uui/source/iahndl.cxx @@ -130,20 +130,20 @@ public: } /* namespace */ UUIInteractionHelper::UUIInteractionHelper( - uno::Reference< lang::XMultiServiceFactory > const & rServiceFactory, + uno::Reference< uno::XComponentContext > const & rxContext, uno::Reference< awt::XWindow > const & rxWindowParam, const OUString & rContextParam) SAL_THROW(()): - m_xServiceFactory(rServiceFactory), + m_xContext(rxContext), m_xWindowParam(rxWindowParam), m_aContextParam(rContextParam) { } UUIInteractionHelper::UUIInteractionHelper( - uno::Reference< lang::XMultiServiceFactory > const & rServiceFactory) + uno::Reference< uno::XComponentContext > const & rxContext) SAL_THROW(()): - m_xServiceFactory(rServiceFactory) + m_xContext(rxContext) { } @@ -370,7 +370,7 @@ bool UUIInteractionHelper::handleCustomRequest( const Reference< XInteractionReq { try { - Reference< XInteractionHandler2 > xHandler( m_xServiceFactory->createInstance( i_rServiceName ), UNO_QUERY_THROW ); + Reference< XInteractionHandler2 > xHandler( m_xContext->getServiceManager()->createInstanceWithContext( i_rServiceName, m_xContext ), UNO_QUERY_THROW ); Reference< XInitialization > xHandlerInit( xHandler, UNO_QUERY ); if ( xHandlerInit.is() ) @@ -401,8 +401,8 @@ bool UUIInteractionHelper::handleTypedHandlerImplementations( Reference< XIntera return handleCustomRequest( rRequest, aCacheHitTest->second ); // the base registration node for "typed" interaction handlers - const ::utl::OConfigurationTreeRoot aConfigRoot( ::utl::OConfigurationTreeRoot::createWithServiceFactory( - m_xServiceFactory, + const ::utl::OConfigurationTreeRoot aConfigRoot( ::utl::OConfigurationTreeRoot::createWithComponentContext( + m_xContext, OUString( "/org.openoffice.Interaction/InteractionHandlers" ), -1, ::utl::OConfigurationTreeRoot::CM_READONLY @@ -926,7 +926,7 @@ UUIInteractionHelper::getInteractionHandlerList( try { uno::Reference< lang::XMultiServiceFactory > xConfigProv = - configuration::theDefaultProvider::get( comphelper::getComponentContext(m_xServiceFactory) ); + configuration::theDefaultProvider::get( m_xContext ); rtl::OUStringBuffer aFullPath; aFullPath.appendAscii( @@ -1046,7 +1046,7 @@ UUIInteractionHelper::getInteractionHandler() SAL_THROW((uno::RuntimeException)) { return InteractionHandler::createWithParentAndContext( - comphelper::getComponentContext(m_xServiceFactory), m_xWindowParam, + m_xContext, m_xWindowParam, m_aContextParam); } |