diff options
author | Jörg Barfurth <jb@openoffice.org> | 2002-07-11 16:14:44 +0000 |
---|---|---|
committer | Jörg Barfurth <jb@openoffice.org> | 2002-07-11 16:14:44 +0000 |
commit | 6ae073146391715b894c3a2506b068c4299ceeb6 (patch) | |
tree | 35cf9f8f5e34780943565670286d1717ad70edb9 /configmgr/source/registry | |
parent | 33733de0605556200b03ecc3fa6c974ded522aa3 (diff) |
#99130# Don't export SimpleRegistry service
Diffstat (limited to 'configmgr/source/registry')
-rw-r--r-- | configmgr/source/registry/configregistry.cxx | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/configmgr/source/registry/configregistry.cxx b/configmgr/source/registry/configregistry.cxx index 36fdee2cc3..6b32a3c0cf 100644 --- a/configmgr/source/registry/configregistry.cxx +++ b/configmgr/source/registry/configregistry.cxx @@ -2,9 +2,9 @@ * * $RCSfile: configregistry.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: jl $ $Date: 2001-03-21 12:17:35 $ + * last change: $Author: jb $ $Date: 2002-07-11 17:14:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -125,12 +125,23 @@ namespace beans = ::com::sun::star::beans; "com.sun.star.configuration.ConfigurationRegistry", NULL }; + // #99130# Don't export SimpleRegistry service + const AsciiServiceName * const aExportedConfigRegistryServices = aConfigRegistryServices + 1; + + const AsciiServiceName aConfigRegistryImplementationName = "com.sun.star.configuration.configmgr.OConfigurationRegistry"; + const ServiceInfo OConfigurationRegistry::s_aServiceInfo = { - "com.sun.star.configuration.configmgr.OConfigurationRegistry", + aConfigRegistryImplementationName, aConfigRegistryServices }; + const ServiceInfo s_aExportedConfigurationRegistryServiceInfo = + { + aConfigRegistryImplementationName, + aExportedConfigRegistryServices + }; + Reference< XInterface > SAL_CALL instantiateConfigRegistry(Reference< XMultiServiceFactory > const& _rServiceManager ) { return static_cast< ::cppu::OWeakObject* >(new OConfigurationRegistry(_rServiceManager)); @@ -138,7 +149,7 @@ namespace beans = ::com::sun::star::beans; const ServiceInfo* getConfigurationRegistryServiceInfo() { - return &OConfigurationRegistry::s_aServiceInfo; + return &s_aExportedConfigurationRegistryServiceInfo; } //-------------------------------------------------------------------------- |