From cd0c70e6f5b08adf98912f16dd12db096297f030 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Fri, 19 Sep 2003 07:18:02 +0000 Subject: INTEGRATION: CWS fwkq1 (1.5.70); FILE MERGED 2003/08/18 11:29:33 mba 1.5.70.1: #110843#: start Autopilots via UNO --- sd/source/ui/unoidl/facreg.cxx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'sd/source/ui/unoidl/facreg.cxx') diff --git a/sd/source/ui/unoidl/facreg.cxx b/sd/source/ui/unoidl/facreg.cxx index 5128fa02837d..1f894d20de71 100644 --- a/sd/source/ui/unoidl/facreg.cxx +++ b/sd/source/ui/unoidl/facreg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: facreg.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: hr $ $Date: 2003-04-04 19:18:13 $ + * last change: $Author: rt $ $Date: 2003-09-19 08:18:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -87,6 +87,10 @@ extern uno::Reference< uno::XInterface > SAL_CALL SdHtmlOptionsDialog_CreateInst extern OUString SdHtmlOptionsDialog_getImplementationName() throw( uno::RuntimeException ); extern uno::Sequence< OUString > SAL_CALL SdHtmlOptionsDialog_getSupportedServiceNames() throw( uno::RuntimeException ); +extern uno::Reference< uno::XInterface > SAL_CALL SdUnoModule_createInstance( const uno::Reference< lang::XMultiServiceFactory > & _rxFactory ); +extern OUString SdUnoModule_getImplementationName() throw( uno::RuntimeException ); +extern uno::Sequence< OUString > SAL_CALL SdUnoModule_getSupportedServiceNames() throw( uno::RuntimeException ); + #ifdef __cplusplus extern "C" { @@ -118,6 +122,7 @@ sal_Bool SAL_CALL component_writeInfo( void * pServiceManager, void * pRegistryK writeInfo( pKey, SdHtmlOptionsDialog_getImplementationName(), SdHtmlOptionsDialog_getSupportedServiceNames() ); writeInfo( pKey, SdDrawingDocument_getImplementationName(), SdDrawingDocument_getSupportedServiceNames() ); writeInfo( pKey, SdPresentationDocument_getImplementationName(), SdPresentationDocument_getSupportedServiceNames() ); + writeInfo( pKey, SdUnoModule_getImplementationName(), SdUnoModule_getSupportedServiceNames() ); } catch (registry::InvalidRegistryException &) { @@ -159,6 +164,13 @@ void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServic SdPresentationDocument_createInstance, SdPresentationDocument_getSupportedServiceNames() ); } + else if( SdUnoModule_getImplementationName().equalsAsciiL( pImplName, nImplNameLen ) ) + { + xFactory = ::cppu::createSingleFactory( xMSF, + SdUnoModule_getImplementationName(), + SdUnoModule_createInstance, + SdUnoModule_getSupportedServiceNames() ); + } if( xFactory.is()) -- cgit v1.2.3