remove obsolete component_writeInfo methods
This commit is contained in:
@@ -84,42 +84,6 @@ void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServic
|
||||
return pRet;
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL component_writeInfo( void * /*pServiceManager*/, void * pRegistryKey )
|
||||
{
|
||||
if (pRegistryKey)
|
||||
{
|
||||
try
|
||||
{
|
||||
uno::Reference< registry::XRegistryKey > xKey( reinterpret_cast< registry::XRegistryKey* >( pRegistryKey ) );
|
||||
uno::Reference< registry::XRegistryKey > xNewKey;
|
||||
|
||||
xNewKey = xKey->createKey( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
|
||||
OleEmbeddedObjectFactory::impl_staticGetImplementationName() +
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") ) );
|
||||
uno::Sequence< ::rtl::OUString > rServices = OleEmbeddedObjectFactory::impl_staticGetSupportedServiceNames();
|
||||
for( sal_Int32 ind = 0; ind < rServices.getLength(); ind++ )
|
||||
xNewKey->createKey( rServices.getConstArray()[ind] );
|
||||
|
||||
#ifdef WNT
|
||||
// the following service makes sence only on windows
|
||||
xNewKey = xKey->createKey( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
|
||||
MSOLEDialogObjectCreator::impl_staticGetImplementationName() +
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") ) );
|
||||
rServices = MSOLEDialogObjectCreator::impl_staticGetSupportedServiceNames();
|
||||
for( sal_Int32 ind = 0; ind < rServices.getLength(); ind++ )
|
||||
xNewKey->createKey( rServices.getConstArray()[ind] );
|
||||
#endif
|
||||
|
||||
return sal_True;
|
||||
}
|
||||
catch (registry::InvalidRegistryException &)
|
||||
{
|
||||
OSL_FAIL( "### InvalidRegistryException!" );
|
||||
}
|
||||
}
|
||||
return sal_False;
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@@ -10,10 +10,4 @@ mkdir: %COMMON_DEST%\bin%_EXT%\hid
|
||||
|
||||
..\source\win32\filepicker\*.xml %_DEST%\xml%_EXT%\*.xml
|
||||
..\source\win32\folderpicker\*.xml %_DEST%\xml%_EXT%\*.xml
|
||||
..\%__SRC%\misc\fop.component %_DEST%\xml%_EXT%\fop.component
|
||||
..\%__SRC%\misc\fpicker.component %_DEST%\xml%_EXT%\fpicker.component
|
||||
..\%__SRC%\misc\fps.component %_DEST%\xml%_EXT%\fps.component
|
||||
..\%__SRC%\misc\fps_aqua.component %_DEST%\xml%_EXT%\fps_aqua.component
|
||||
..\%__SRC%\misc\fps_gnome.component %_DEST%\xml%_EXT%\fps_gnome.component
|
||||
..\%__SRC%\misc\fps_kde4.component %_DEST%\xml%_EXT%\fps_kde4.component
|
||||
..\%__SRC%\misc\fps_office.component %_DEST%\xml%_EXT%\fps_office.component
|
||||
..\%__SRC%\misc\*.component %_DEST%\xml%_EXT%\*.component
|
||||
|
@@ -53,37 +53,12 @@ static void writeInfo(const css::uno::Reference< css::registry::XRegistryKey >&
|
||||
|
||||
extern "C"
|
||||
{
|
||||
//==================================================================================================
|
||||
SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(const sal_Char** ppEnvTypeName,
|
||||
uno_Environment** /*ppEnv*/ )
|
||||
{
|
||||
*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
|
||||
}
|
||||
|
||||
|
||||
//==================================================================================================
|
||||
SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo(void* /*pServiceManager*/,
|
||||
void* pRegistryKey )
|
||||
{
|
||||
if (!pRegistryKey)
|
||||
return sal_False;
|
||||
|
||||
try
|
||||
{
|
||||
css::uno::Reference< css::registry::XRegistryKey > xKey(reinterpret_cast< css::registry::XRegistryKey* >(pRegistryKey), css::uno::UNO_QUERY);
|
||||
|
||||
writeInfo( xKey, DESKTOPJOB_IMPLEMENTATION_NAME, DESKTOPJOB_SERVICE_NAME);
|
||||
writeInfo( xKey, FRAMEJOB_IMPLEMENTATION_NAME, FRAMEJOB_SERVICE_NAME);
|
||||
|
||||
return sal_True;
|
||||
}
|
||||
catch(const css::registry::InvalidRegistryException&)
|
||||
{ OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); }
|
||||
|
||||
return sal_False;
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(const sal_Char* pImplName ,
|
||||
void* pServiceManager,
|
||||
void* /*pRegistryKey*/ )
|
||||
|
Reference in New Issue
Block a user