summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl/facreg.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2003-09-19 07:18:02 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2003-09-19 07:18:02 +0000
commitcd0c70e6f5b08adf98912f16dd12db096297f030 (patch)
treee1db8693c00816cc6c633a21f71a639c1a276a7d /sd/source/ui/unoidl/facreg.cxx
parentd05946ee221b24fa4826dab5382094ec99899d6b (diff)
INTEGRATION: CWS fwkq1 (1.5.70); FILE MERGED
2003/08/18 11:29:33 mba 1.5.70.1: #110843#: start Autopilots via UNO
Diffstat (limited to 'sd/source/ui/unoidl/facreg.cxx')
-rw-r--r--sd/source/ui/unoidl/facreg.cxx16
1 files changed, 14 insertions, 2 deletions
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())