diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-05-20 18:09:29 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-05-20 18:09:29 +0000 |
commit | f57aeeb328b42ab1df65d782eb498f6acd1ff7b5 (patch) | |
tree | 78cf0b53c2397d0cd289cc4d62f0761d131cc8e8 /extensions/source/plugin/base/service.cxx | |
parent | 6d338ffe101fb6d36b3d5ecebb625c1d1e88b490 (diff) |
INTEGRATION: CWS mba30patches01 (1.4.40); FILE MERGED
2008/04/23 10:49:05 mba 1.4.40.2: RESYNC: (1.4-1.5); FILE MERGED
2008/03/18 15:40:56 mba 1.4.40.1: #i86365#: remove unused code
Diffstat (limited to 'extensions/source/plugin/base/service.cxx')
-rw-r--r-- | extensions/source/plugin/base/service.cxx | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/extensions/source/plugin/base/service.cxx b/extensions/source/plugin/base/service.cxx index 50f09380194c..bcecb4a3d4e9 100644 --- a/extensions/source/plugin/base/service.cxx +++ b/extensions/source/plugin/base/service.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: service.cxx,v $ - * $Revision: 1.5 $ + * $Revision: 1.6 $ * * This file is part of OpenOffice.org. * @@ -49,32 +49,6 @@ using namespace cppu; -//================================================================================================== -void registerPluginService( const Reference< ::com::sun::star::lang::XMultiServiceFactory > & xMgr ) -{ - if (! xMgr.is()) - return; - - Reference< ::com::sun::star::container::XSet > xReg( xMgr, UNO_QUERY ); - if(xReg.is()) - { - Any aAny; - Reference< ::com::sun::star::lang::XSingleServiceFactory > xF; - xF = createSingleFactory( xMgr, PluginModel::getImplementationName_Static(), - - PluginModel_CreateInstance, - PluginModel::getSupportedServiceNames_Static() ); - aAny <<= xF; - xReg->insert( aAny ); - xF = createSingleFactory( xMgr, XPluginManager_Impl::getImplementationName_Static(), - - PluginManager_CreateInstance, - XPluginManager_Impl::getSupportedServiceNames_Static() ); - aAny <<= xF; - xReg->insert( aAny ); - } -} - extern "C" { void SAL_CALL component_getImplementationEnvironment( const sal_Char** ppEnvTypeName, @@ -146,25 +120,4 @@ extern "C" { } return pRet; } - -/** special registration procedure for the staroffice player */ - void SAL_CALL exService_getSmartFactory( const sal_Char* implementationName, const Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr, Reference< ::com::sun::star::lang::XSingleServiceFactory > & xFactory ) - { - ::rtl::OUString aImplementationName( ::rtl::OUString::createFromAscii(implementationName)); - - if (aImplementationName == PluginModel::getImplementationName_Static() ) - - { - xFactory = createSingleFactory( rSMgr, aImplementationName, - PluginModel_CreateInstance, - PluginModel::getSupportedServiceNames_Static() ); - } - else if (aImplementationName == XPluginManager_Impl::getImplementationName_Static() ) - - { - xFactory = createSingleFactory( rSMgr, aImplementationName, - PluginManager_CreateInstance, - XPluginManager_Impl::getSupportedServiceNames_Static() ); - } - } } /* extern "C" */ |