23#ifndef INCLUDED_CPPUHELPER_FACTORY_HXX
24#define INCLUDED_CPPUHELPER_FACTORY_HXX
30#include "rtl/ustring.hxx"
31#include "rtl/unload.h"
33#include "com/sun/star/uno/Reference.h"
36namespace com {
namespace sun {
namespace star {
namespace lang {
class XMultiServiceFactory; } } } }
37namespace com {
namespace sun {
namespace star {
namespace lang {
class XSingleComponentFactory; } } } }
38namespace com {
namespace sun {
namespace star {
namespace lang {
class XSingleServiceFactory; } } } }
39namespace com {
namespace sun {
namespace star {
namespace registry {
class XRegistryKey; } } } }
40namespace com {
namespace sun {
namespace star {
namespace uno {
class XComponentContext; } } } }
41namespace com {
namespace sun {
namespace star {
namespace uno {
class XInterface; } } } }
42namespace com {
namespace sun {
namespace star {
namespace uno {
template <
class E>
class Sequence; } } } }
44#define COMPONENT_GETENV "component_getImplementationEnvironment"
45#define COMPONENT_GETENVEXT "component_getImplementationEnvironmentExt"
46#define COMPONENT_WRITEINFO "component_writeInfo"
47#define COMPONENT_GETFACTORY "component_getFactory"
74 char const ** ppEnvTypeName,
76 char const * pImplName,
103 void * pServiceManager,
void * pRegistryKey );
121 const char * pImplName,
void * pServiceManager,
void * pRegistryKey );
133typedef css::uno::Reference< css::uno::XInterface >(
134 SAL_CALL * ComponentFactoryFunc)(
135 css::uno::Reference< css::uno::XComponentContext >
const & xContext );
147 ComponentFactoryFunc fptr,
148 ::rtl::OUString
const & rImplementationName,
149 css::uno::Sequence< ::rtl::OUString >
const & rServiceNames,
150 rtl_ModuleCount * pModCount = NULL );
164 ComponentFactoryFunc fptr,
165 ::rtl::OUString
const & rImplementationName,
166 css::uno::Sequence< ::rtl::OUString >
const & rServiceNames,
167 rtl_ModuleCount * pModCount = NULL );
175typedef css::uno::Reference< css::uno::XInterface >(SAL_CALL * ComponentInstantiation)(
176 const css::uno::Reference< css::lang::XMultiServiceFactory > & rServiceManager );
194 const css::uno::Reference< css::lang::XMultiServiceFactory > & rServiceManager,
195 const ::rtl::OUString & rImplementationName,
197 const css::uno::Sequence< ::rtl::OUString > & rServiceNames,
198 rtl_ModuleCount * pModCount = NULL );
216 const css::uno::Reference< css::lang::XMultiServiceFactory > & rServiceManager,
217 const css::uno::Reference< css::lang::XSingleServiceFactory > & rFactory );
235 const css::uno::Reference< css::lang::XMultiServiceFactory > & rServiceManager,
236 const ::rtl::OUString & rComponentName,
238 const css::uno::Sequence< ::rtl::OUString > & rServiceNames,
239 rtl_ModuleCount * pModCount = NULL );
252 const css::uno::Reference< css::lang::XMultiServiceFactory > & rServiceManager,
253 const ::rtl::OUString & rImplementationName,
254 const css::uno::Reference< css::registry::XRegistryKey > & rImplementationKey );
270 const css::uno::Reference< css::lang::XMultiServiceFactory > & rServiceManager,
271 const ::rtl::OUString & rComponentName,
272 const css::uno::Reference< css::registry::XRegistryKey > & rImplementationKey );
#define CPPUHELPER_DLLPUBLIC
ComponentInstantiation pCreateFunction
const char *(SAL_CALL * component_getDescriptionFunc)(void)
Function pointer declaration.
void(SAL_CALL * component_getImplementationEnvironmentExtFunc)(char const **ppEnvTypeName, uno_Environment **ppEnv, char const *pImplName, uno_Environment *pTargetEnv)
Function pointer declaration.
void(SAL_CALL * component_getImplementationEnvironmentFunc)(const char **ppEnvTypeName, uno_Environment **ppEnv)
Function pointer declaration.
struct _uno_Environment uno_Environment
sal_Bool(SAL_CALL * component_writeInfoFunc)(void *pServiceManager, void *pRegistryKey)
Function pointer declaration.
void *(SAL_CALL * component_getFactoryFunc)(const char *pImplName, void *pServiceManager, void *pRegistryKey)
Function pointer declaration.
Reference< XSingleServiceFactory > SAL_CALL createOneInstanceRegistryFactory(const Reference< XMultiServiceFactory > &rServiceManager, const OUString &rImplementationName, const Reference< XRegistryKey > &rImplementationKey)
css::uno::Reference< css::uno::XInterface >(SAL_CALL *ComponentFactoryFunc)(css CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleComponentFactory > SAL_CALL createSingleComponentFactory(ComponentFactoryFunc fptr, ::rtl::OUString const &rImplementationName, css::uno::Sequence< ::rtl::OUString > const &rServiceNames, rtl_ModuleCount *pModCount=NULL)
Function pointer declaration.
Reference< XSingleServiceFactory > SAL_CALL createSingleRegistryFactory(const Reference< XMultiServiceFactory > &rServiceManager, const OUString &rImplementationName, const Reference< XRegistryKey > &rImplementationKey)
Reference< XSingleServiceFactory > SAL_CALL createOneInstanceFactory(const Reference< XMultiServiceFactory > &rServiceManager, const OUString &rImplementationName, ComponentInstantiation pCreateFunction, const Sequence< OUString > &rServiceNames, rtl_ModuleCount *)
Reference< lang::XSingleComponentFactory > SAL_CALL createOneInstanceComponentFactory(ComponentFactoryFunc fptr, OUString const &rImplementationName, Sequence< OUString > const &rServiceNames, rtl_ModuleCount *)
css::uno::Reference< css::uno::XInterface >(SAL_CALL *ComponentInstantiation)(const css CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL createSingleFactory(const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceManager, const ::rtl::OUString &rImplementationName, ComponentInstantiation pCreateFunction, const css::uno::Sequence< ::rtl::OUString > &rServiceNames, rtl_ModuleCount *pModCount=NULL)
Deprecated.
Reference< XSingleServiceFactory > SAL_CALL createFactoryProxy(SAL_UNUSED_PARAMETER const Reference< XMultiServiceFactory > &, const Reference< XSingleServiceFactory > &rFactory)