23 #ifndef INCLUDED_CPPUHELPER_FACTORY_HXX 24 #define INCLUDED_CPPUHELPER_FACTORY_HXX 36 namespace com {
namespace sun {
namespace star {
namespace lang {
class XMultiServiceFactory; } } } }
37 namespace com {
namespace sun {
namespace star {
namespace lang {
class XSingleComponentFactory; } } } }
38 namespace com {
namespace sun {
namespace star {
namespace lang {
class XSingleServiceFactory; } } } }
39 namespace com {
namespace sun {
namespace star {
namespace registry {
class XRegistryKey; } } } }
40 namespace com {
namespace sun {
namespace star {
namespace uno {
class XComponentContext; } } } }
41 namespace com {
namespace sun {
namespace star {
namespace uno {
class XInterface; } } } }
42 namespace 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 );
133 typedef css::uno::Reference< css::uno::XInterface >(
135 css::uno::Reference< css::uno::XComponentContext >
const & xContext );
149 css::uno::Sequence< ::rtl::OUString >
const & rServiceNames,
166 css::uno::Sequence< ::rtl::OUString >
const & rServiceNames,
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,
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,
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 );
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleComponentFactory > createOneInstanceComponentFactory(ComponentFactoryFunc fptr, ::rtl::OUString const &rImplementationName, css::uno::Sequence< ::rtl::OUString > const &rServiceNames, rtl_ModuleCount *pModCount=NULL)
Creates a single service factory which holds the instance created only once.
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > 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.
css::uno::Reference< css::uno::XInterface >(* ComponentFactoryFunc)(css::uno::Reference< css::uno::XComponentContext > const &xContext)
Function pointer declaration.
Definition: factory.hxx:134
void(* component_getImplementationEnvironmentExtFunc)(char const **ppEnvTypeName, uno_Environment **ppEnv, char const *pImplName, uno_Environment *pTargetEnv)
Function pointer declaration.
Definition: factory.hxx:73
const char *(* component_getDescriptionFunc)(void)
Function pointer declaration.
Definition: factory.hxx:86
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > createFactoryProxy(const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceManager, const css::uno::Reference< css::lang::XSingleServiceFactory > &rFactory)
Deprecated.
void *(* component_getFactoryFunc)(const char *pImplName, void *pServiceManager, void *pRegistryKey)
Function pointer declaration.
Definition: factory.hxx:120
css::uno::Reference< css::uno::XInterface >(* ComponentInstantiation)(const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceManager)
Deprecated.
Definition: factory.hxx:175
struct SAL_DLLPUBLIC_RTTI _uno_Environment uno_Environment
The binary specification of a UNO environment.
void(* component_getImplementationEnvironmentFunc)(const char **ppEnvTypeName, uno_Environment **ppEnv)
Function pointer declaration.
Definition: factory.hxx:60
unsigned char sal_Bool
Definition: types.h:38
Definition: Enterable.hxx:30
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:170
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > createOneInstanceRegistryFactory(const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceManager, const ::rtl::OUString &rComponentName, const css::uno::Reference< css::registry::XRegistryKey > &rImplementationKey)
Deprecated.
Backwards-compatibility remainders of a removed library unloading feature.
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:32
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > createSingleRegistryFactory(const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceManager, const ::rtl::OUString &rImplementationName, const css::uno::Reference< css::registry::XRegistryKey > &rImplementationKey)
Deprecated.
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > createOneInstanceFactory(const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceManager, const ::rtl::OUString &rComponentName, ComponentInstantiation pCreateFunction, const css::uno::Sequence< ::rtl::OUString > &rServiceNames, rtl_ModuleCount *pModCount=NULL)
Deprecated.
The binary specification of a UNO environment.
Definition: environment.h:45
struct SAL_DLLPUBLIC_RTTI _rtl_ModuleCount rtl_ModuleCount
Backwards-compatibility remainder of a removed library unloading feature.
sal_Bool(* component_writeInfoFunc)(void *pServiceManager, void *pRegistryKey)
Function pointer declaration.
Definition: factory.hxx:102
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleComponentFactory > createSingleComponentFactory(ComponentFactoryFunc fptr, ::rtl::OUString const &rImplementationName, css::uno::Sequence< ::rtl::OUString > const &rServiceNames, rtl_ModuleCount *pModCount=NULL)
Creates a single component factory supporting the XSingleComponentFactory interface.