diff options
author | Noel Grandin <noel@peralex.com> | 2013-06-04 13:34:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-06-05 08:13:22 +0200 |
commit | 8c799984cc5b76c20baccffea818e07c440c2330 (patch) | |
tree | 1c6a595817c85386882808ea1294fa2bc581655a /framework/source/tabwin/tabwinfactory.cxx | |
parent | c23be036a6b71324302aa8acd3858ea725c2ada6 (diff) |
fdo#46808, Convert the rest of XMultiServiceFactory in framework module
Change-Id: Ife3caf00ab37a8c344f0ab90e40337b3b5bc1571
Diffstat (limited to 'framework/source/tabwin/tabwinfactory.cxx')
-rw-r--r-- | framework/source/tabwin/tabwinfactory.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/framework/source/tabwin/tabwinfactory.cxx b/framework/source/tabwin/tabwinfactory.cxx index 4f9d4c017300..718447bbf2eb 100644 --- a/framework/source/tabwin/tabwinfactory.cxx +++ b/framework/source/tabwin/tabwinfactory.cxx @@ -46,7 +46,7 @@ namespace framework //***************************************************************************************************************** // XInterface, XTypeProvider, XServiceInfo //***************************************************************************************************************** -DEFINE_XSERVICEINFO_ONEINSTANCESERVICE ( TabWinFactory , +DEFINE_XSERVICEINFO_ONEINSTANCESERVICE_2( TabWinFactory , ::cppu::OWeakObject , SERVICENAME_TABWINFACTORY , IMPLEMENTATIONNAME_TABWINFACTORY @@ -54,9 +54,9 @@ DEFINE_XSERVICEINFO_ONEINSTANCESERVICE ( TabWinFactory DEFINE_INIT_SERVICE ( TabWinFactory, {} ) -TabWinFactory::TabWinFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager ) : +TabWinFactory::TabWinFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ) : ThreadHelpBase( &Application::GetSolarMutex() ) - , m_xServiceManager( xServiceManager ) + , m_xContext( xContext ) { } @@ -65,12 +65,12 @@ TabWinFactory::~TabWinFactory() } css::uno::Reference< css::uno::XInterface > SAL_CALL TabWinFactory::createInstanceWithContext( - const css::uno::Reference< css::uno::XComponentContext >& Context ) + const css::uno::Reference< css::uno::XComponentContext >& xContext ) throw ( css::uno::Exception, css::uno::RuntimeException ) { css::uno::Sequence< css::uno::Any > aArgs; - return createInstanceWithArgumentsAndContext( aArgs, Context ); + return createInstanceWithArgumentsAndContext( aArgs, xContext ); } css::uno::Reference< css::uno::XInterface > SAL_CALL TabWinFactory::createInstanceWithArgumentsAndContext( @@ -82,7 +82,7 @@ throw ( css::uno::Exception, css::uno::RuntimeException ) /* SAFE AREA ----------------------------------------------------------------------------------------------- */ ResetableGuard aLock( m_aLock ); css::uno::Reference< css::awt::XToolkit2 > xToolkit = m_xToolkit; - css::uno::Reference< css::lang::XMultiServiceFactory > xSMGR( m_xServiceManager ); + css::uno::Reference< css::uno::XComponentContext > xContext( m_xContext ); aLock.unlock(); /* SAFE AREA ----------------------------------------------------------------------------------------------- */ @@ -99,9 +99,9 @@ throw ( css::uno::Exception, css::uno::RuntimeException ) } } - if ( !xToolkit.is() && xSMGR.is() ) + if ( !xToolkit.is() && xContext.is() ) { - xToolkit = css::awt::Toolkit::create( comphelper::getComponentContext(xSMGR) ); + xToolkit = css::awt::Toolkit::create( xContext ); /* SAFE AREA ----------------------------------------------------------------------------------------------- */ aLock.lock(); m_xToolkit = xToolkit; @@ -130,7 +130,7 @@ throw ( css::uno::Exception, css::uno::RuntimeException ) if ( xTopWindow.is() ) { - TabWindow* pTabWindow = new TabWindow( xSMGR ); + TabWindow* pTabWindow = new TabWindow( xContext ); css::uno::Sequence< css::uno::Any > aArgs( 1 ); |