21#include <com/sun/star/lang/XSingleComponentFactory.hpp>
22#include <com/sun/star/registry/XRegistryKey.hpp>
24#include <osl/diagnose.h>
33 SAL_UNUSED_PARAMETER
void *,
void * pRegistryKey,
41 for( sal_Int32
i = 0; entries[
i].
create ;
i ++ )
43 OUString sKey =
"/" + entries[
i].getImplementationName() +
"/UNO/SERVICES";
44 Reference< XRegistryKey > xNewKey(
45 static_cast< XRegistryKey *
>( pRegistryKey )->
createKey( sKey ) );
47 Sequence< OUString > seq = entries[
i].getSupportedServiceNames();
48 const OUString *pArray = seq.getConstArray();
49 for ( sal_Int32
nPos = 0 ;
nPos < seq.getLength();
nPos ++ )
50 xNewKey->createKey( pArray[
nPos] );
55 catch ( InvalidRegistryException & )
57 OSL_FAIL(
"### InvalidRegistryException!" );
64 char const * pImplName, SAL_UNUSED_PARAMETER
void *,
68 void * pRet =
nullptr;
69 Reference< XSingleComponentFactory >
xFactory;
71 for( sal_Int32
i = 0 ; entries[
i].
create ;
i ++ )
73 OUString
implName = entries[
i].getImplementationName();
74 if(
implName.equalsAscii( pImplName ) )
80 entries[
i].moduleCounter );
Reference< XSingleServiceFactory > xFactory
css::uno::Sequence< OUString > getSupportedServiceNames()
void * component_getFactoryHelper(char const *pImplName, SAL_UNUSED_PARAMETER void *, SAL_UNUSED_PARAMETER void *, const struct ImplementationEntry entries[])
sal_Bool component_writeInfoHelper(SAL_UNUSED_PARAMETER void *, void *pRegistryKey, const struct ImplementationEntry entries[])
css::uno::Reference< css::deployment::XPackageRegistry > create(css::uno::Reference< css::deployment::XPackageRegistry > const &xRootRegistry, OUString const &context, OUString const &cachePath, css::uno::Reference< css::uno::XComponentContext > const &xComponentContext)
RegError REGISTRY_CALLTYPE createKey(RegKeyHandle hKey, rtl_uString *keyName, RegKeyHandle *phNewKey)
One struct instance represents all data necessary for registering one service implementation.
ComponentFactoryFunc create
Function that creates an instance of the implementation.