diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-06-26 15:10:54 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-06-26 15:10:54 +0000 |
commit | 73c9597cf8c3a1c2185984625e278158f9d04349 (patch) | |
tree | 379ec496b37bff223673dec45b4e4f614430f58f /comphelper/source | |
parent | d147d5e03af5675bb93d95d3c036657d872f262f (diff) |
INTEGRATION: CWS mav21 (1.10.58); FILE MERGED
2007/05/11 12:06:45 mav 1.10.58.1: #i77185# a possibility to wrap sequence with a stream using API
Diffstat (limited to 'comphelper/source')
-rw-r--r-- | comphelper/source/misc/facreg.cxx | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/comphelper/source/misc/facreg.cxx b/comphelper/source/misc/facreg.cxx index 1bb711ff9d8b..51d6b983dea7 100644 --- a/comphelper/source/misc/facreg.cxx +++ b/comphelper/source/misc/facreg.cxx @@ -4,9 +4,9 @@ * * $RCSfile: facreg.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: obo $ $Date: 2006-09-17 17:11:16 $ + * last change: $Author: hr $ $Date: 2007-06-26 16:10:54 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -82,6 +82,14 @@ extern OUString SAL_CALL OfficeInstallationDirectories_getSingletonName() throw( extern OUString SAL_CALL OfficeInstallationDirectories_getSingletonServiceName() throw(); extern uno::Reference< uno::XInterface > SAL_CALL OfficeInstallationDirectories_createInstance(const uno::Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ); +// SequenceInputStreamService +extern uno::Sequence< OUString > SAL_CALL SequenceInputStreamService_getSupportedServiceNames() throw(); +extern OUString SAL_CALL SequenceInputStreamService_getImplementationName() throw(); +extern uno::Reference< uno::XInterface > SAL_CALL SequenceInputStreamService_createInstance(const uno::Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ); + + + + // static void writeInfo( registry::XRegistryKey * pRegistryKey, const OUString& rImplementationName, const uno::Sequence< OUString >& rServices ) { @@ -136,6 +144,9 @@ SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo( void *, void * pRegi // InstanceLocker writeInfo( pKey, OInstanceLocker::impl_staticGetImplementationName(), OInstanceLocker::impl_staticGetSupportedServiceNames() ); + // SequenceInputStreamService + writeInfo( pKey, SequenceInputStreamService_getImplementationName(), SequenceInputStreamService_getSupportedServiceNames() ); + } catch (registry::InvalidRegistryException &) { @@ -190,6 +201,13 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( const sal_Char * pImp OInstanceLocker::impl_staticCreateSelfInstance, OInstanceLocker::impl_staticGetSupportedServiceNames() ); } + else if( SequenceInputStreamService_getImplementationName().equalsAsciiL( pImplName, nImplNameLen ) ) + { + xFactory = ::cppu::createSingleFactory( xMSF, + SequenceInputStreamService_getImplementationName(), + SequenceInputStreamService_createInstance, + SequenceInputStreamService_getSupportedServiceNames() ); + } if( xFactory.is()) { |