diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-07-13 08:31:15 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-07-13 08:31:15 +0000 |
commit | f9cc26bae026c0de8b9a91f00bbfe2f1c7b6e2f4 (patch) | |
tree | 537321dc8e840823eb0bee37fbab961aca0ba1e8 /starmath/source | |
parent | 40981427ade11be6d7e56d1a72f070f7b8e1bd16 (diff) |
INTEGRATION: CWS oasis (1.8.90); FILE MERGED
2004/06/17 11:33:24 mib 1.8.90.1: #i20158#: OASIS file format for math
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/register.cxx | 46 |
1 files changed, 44 insertions, 2 deletions
diff --git a/starmath/source/register.cxx b/starmath/source/register.cxx index 753db00478bd..1f14edb5e5b9 100644 --- a/starmath/source/register.cxx +++ b/starmath/source/register.cxx @@ -2,9 +2,9 @@ * * $RCSfile: register.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: rt $ $Date: 2003-09-19 08:52:54 $ + * last change: $Author: rt $ $Date: 2004-07-13 09:31:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -116,12 +116,24 @@ extern OUString SAL_CALL extern Reference< XInterface > SAL_CALL SmXMLExport_createInstance(const Reference< XMultiServiceFactory > & rSMgr) throw( Exception ); extern Sequence< OUString > SAL_CALL + SmXMLExportMetaOOO_getSupportedServiceNames() throw(); +extern OUString SAL_CALL + SmXMLExportMetaOOO_getImplementationName() throw(); +extern Reference< XInterface > SAL_CALL + SmXMLExportMetaOOO_createInstance(const Reference< XMultiServiceFactory > & rSMgr) throw( Exception ); +extern Sequence< OUString > SAL_CALL SmXMLExportMeta_getSupportedServiceNames() throw(); extern OUString SAL_CALL SmXMLExportMeta_getImplementationName() throw(); extern Reference< XInterface > SAL_CALL SmXMLExportMeta_createInstance(const Reference< XMultiServiceFactory > & rSMgr) throw( Exception ); extern Sequence< OUString > SAL_CALL + SmXMLExportSettingsOOO_getSupportedServiceNames() throw(); +extern OUString SAL_CALL + SmXMLExportSettingsOOO_getImplementationName() throw(); +extern Reference< XInterface > SAL_CALL + SmXMLExportSettingsOOO_createInstance(const Reference< XMultiServiceFactory > & rSMgr) throw( Exception ); +extern Sequence< OUString > SAL_CALL SmXMLExportSettings_getSupportedServiceNames() throw(); extern OUString SAL_CALL SmXMLExportSettings_getImplementationName() throw(); @@ -178,6 +190,13 @@ sal_Bool SAL_CALL component_writeInfo( void* pServiceManager , for(i = 0; i < aServices.getLength(); i++ ) xNewKey->createKey( aServices.getConstArray()[i] ); + xNewKey = xKey->createKey( aDelimiter + SmXMLExportMetaOOO_getImplementationName() + + aUnoServices ); + + aServices = SmXMLExportMetaOOO_getSupportedServiceNames(); + for(i = 0; i < aServices.getLength(); i++ ) + xNewKey->createKey( aServices.getConstArray()[i] ); + xNewKey = xKey->createKey( aDelimiter + SmXMLExportMeta_getImplementationName() + aUnoServices ); @@ -192,6 +211,13 @@ sal_Bool SAL_CALL component_writeInfo( void* pServiceManager , for(i = 0; i < aServices.getLength(); i++ ) xNewKey->createKey( aServices.getConstArray()[i] ); + xNewKey = xKey->createKey( aDelimiter + SmXMLExportSettingsOOO_getImplementationName() + + aUnoServices ); + + aServices = SmXMLExportSettingsOOO_getSupportedServiceNames(); + for(i = 0; i < aServices.getLength(); i++ ) + xNewKey->createKey( aServices.getConstArray()[i] ); + xNewKey = xKey->createKey( aDelimiter + SmXMLExportSettings_getImplementationName() + aUnoServices ); @@ -256,6 +282,14 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplementationName, SmXMLImportMeta_createInstance, SmXMLImportMeta_getSupportedServiceNames() ); } + else if( SmXMLExportMetaOOO_getImplementationName().equalsAsciiL( + pImplementationName, strlen(pImplementationName)) ) + { + xFactory = ::cppu::createSingleFactory( xServiceManager, + SmXMLExportMetaOOO_getImplementationName(), + SmXMLExportMetaOOO_createInstance, + SmXMLExportMetaOOO_getSupportedServiceNames() ); + } else if( SmXMLExportMeta_getImplementationName().equalsAsciiL( pImplementationName, strlen(pImplementationName)) ) { @@ -272,6 +306,14 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplementationName, SmXMLImportSettings_createInstance, SmXMLImportSettings_getSupportedServiceNames() ); } + else if( SmXMLExportSettingsOOO_getImplementationName().equalsAsciiL( + pImplementationName, strlen(pImplementationName)) ) + { + xFactory = ::cppu::createSingleFactory( xServiceManager, + SmXMLExportSettingsOOO_getImplementationName(), + SmXMLExportSettingsOOO_createInstance, + SmXMLExportSettingsOOO_getSupportedServiceNames() ); + } else if( SmXMLExportSettings_getImplementationName().equalsAsciiL( pImplementationName, strlen(pImplementationName)) ) { |