summaryrefslogtreecommitdiff
path: root/configmgr/source/registry
diff options
context:
space:
mode:
authorJörg Barfurth <jb@openoffice.org>2002-12-06 12:08:35 +0000
committerJörg Barfurth <jb@openoffice.org>2002-12-06 12:08:35 +0000
commitfec4e8cf1c6058587c3eaca401769de6716d3712 (patch)
tree7f075ec7dc84de2c851516818a104a5a347ad3e2 /configmgr/source/registry
parentd24b2b7390ec916308c17372957b71dd9fcd8918 (diff)
#105880# Reorganize service info to support registered and additional services
Diffstat (limited to 'configmgr/source/registry')
-rw-r--r--configmgr/source/registry/configregistry.cxx30
-rw-r--r--configmgr/source/registry/configregistry.hxx6
2 files changed, 17 insertions, 19 deletions
diff --git a/configmgr/source/registry/configregistry.cxx b/configmgr/source/registry/configregistry.cxx
index 6b32a3c0cf..c5b91b0457 100644
--- a/configmgr/source/registry/configregistry.cxx
+++ b/configmgr/source/registry/configregistry.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: configregistry.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: jb $ $Date: 2002-07-11 17:14:44 $
+ * last change: $Author: jb $ $Date: 2002-12-06 13:08:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -119,27 +119,25 @@ namespace beans = ::com::sun::star::beans;
}
- static const AsciiServiceName aConfigRegistryServices[] =
+ // #99130# Don't export SimpleRegistry service
+ static const AsciiServiceName aExportedConfigRegistryServices[] =
{
- "com.sun.star.registry.SimpleRegistry",
"com.sun.star.configuration.ConfigurationRegistry",
NULL
};
- // #99130# Don't export SimpleRegistry service
- const AsciiServiceName * const aExportedConfigRegistryServices = aConfigRegistryServices + 1;
+ static const AsciiServiceName aAdditionalConfigRegistryServices[] =
+ {
+ "com.sun.star.registry.SimpleRegistry",
+ NULL
+ };
const AsciiServiceName aConfigRegistryImplementationName = "com.sun.star.configuration.configmgr.OConfigurationRegistry";
- const ServiceInfo OConfigurationRegistry::s_aServiceInfo =
- {
- aConfigRegistryImplementationName,
- aConfigRegistryServices
- };
-
- const ServiceInfo s_aExportedConfigurationRegistryServiceInfo =
+ const ServiceImplementationInfo OConfigurationRegistry::s_aServiceInfo =
{
aConfigRegistryImplementationName,
- aExportedConfigRegistryServices
+ aExportedConfigRegistryServices,
+ aAdditionalConfigRegistryServices
};
Reference< XInterface > SAL_CALL instantiateConfigRegistry(Reference< XMultiServiceFactory > const& _rServiceManager )
@@ -147,9 +145,9 @@ namespace beans = ::com::sun::star::beans;
return static_cast< ::cppu::OWeakObject* >(new OConfigurationRegistry(_rServiceManager));
}
- const ServiceInfo* getConfigurationRegistryServiceInfo()
+ const ServiceRegistrationInfo* getConfigurationRegistryServiceInfo()
{
- return &s_aExportedConfigurationRegistryServiceInfo;
+ return getRegistrationInfo(& OConfigurationRegistry::s_aServiceInfo);
}
//--------------------------------------------------------------------------
diff --git a/configmgr/source/registry/configregistry.hxx b/configmgr/source/registry/configregistry.hxx
index 468c0c8954..bb3b90f188 100644
--- a/configmgr/source/registry/configregistry.hxx
+++ b/configmgr/source/registry/configregistry.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: configregistry.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: jb $ $Date: 2001-02-27 10:43:16 $
+ * last change: $Author: jb $ $Date: 2002-12-06 13:08:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -106,7 +106,7 @@ class OConfigurationRegistry
,public OConfigurationRegistry_Base
{
public:
- static const ServiceInfo s_aServiceInfo;
+ static const ServiceImplementationInfo s_aServiceInfo;
protected:
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >