Singletons can now be registered from their implementations, so do not

register them using the installer.
This commit is contained in:
Tomas O'Connor
2003-01-29 11:58:11 +00:00
parent b5fac00cd0
commit 2531be843e
3 changed files with 54 additions and 13 deletions

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: ScriptStorageManager.cxx,v $
*
* $Revision: 1.17 $
* $Revision: 1.18 $
*
* last change: $Author: dfoster $ $Date: 2003-01-28 17:09:27 $
* last change: $Author: toconnor $ $Date: 2003-01-29 12:58:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -542,7 +542,28 @@ extern "C"
*/
sal_Bool SAL_CALL component_writeInfo( lang::XMultiServiceFactory * pServiceManager, registry::XRegistryKey * pRegistryKey )
{
return ::cppu::component_writeInfoHelper( pServiceManager, pRegistryKey, ::scripting_impl::s_entries );
if (::cppu::component_writeInfoHelper( pServiceManager, pRegistryKey,
::scripting_impl::s_entries ))
{
try
{
// register singleton
registry::XRegistryKey * pKey =
reinterpret_cast< registry::XRegistryKey * >(pRegistryKey);
Reference< registry::XRegistryKey > xKey(
pKey->createKey(
OUSTR("drafts.com.sun.star.script.framework.storage.ScriptStorageManager/UNO/SINGLETONS/drafts.com.sun.star.script.framework.storage.theScriptStorageManager")));
xKey->setStringValue( OUSTR("drafts.com.sun.star.script.framework.storage.ScriptStorageManager") );
return sal_True;
}
catch (Exception & exc)
{
}
}
return sal_False;
}
/**