19 #ifndef INCLUDED_CPPUHELPER_FACTORY_HXX
20 #define INCLUDED_CPPUHELPER_FACTORY_HXX
26 #include <com/sun/star/uno/XComponentContext.hpp>
27 #include <com/sun/star/lang/XSingleComponentFactory.hpp>
28 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
29 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
30 #include <com/sun/star/registry/XRegistryKey.hpp>
35 #define COMPONENT_GETENV "component_getImplementationEnvironment"
36 #define COMPONENT_GETENVEXT "component_getImplementationEnvironmentExt"
37 #define COMPONENT_GETDESCRIPTION "component_getDescription"
38 #define COMPONENT_WRITEINFO "component_writeInfo"
39 #define COMPONENT_GETFACTORY "component_getFactory"
95 void * pServiceManager,
void * pRegistryKey );
113 const sal_Char * pImplName,
void * pServiceManager,
void * pRegistryKey );
126 typedef ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >(
129 SAL_THROW( (::com::sun::star::uno::Exception) );
139 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory >
157 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > SAL_CALL
160 ::rtl::OUString const & rImplementationName,
161 ::com::sun::star::uno::Sequence< ::rtl::OUString > const & rServiceNames,
172 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager );
188 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL
190 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
191 const ::rtl::OUString & rImplementationName,
193 const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rServiceNames,
211 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL
213 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
214 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > & rFactory )
231 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL
233 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
234 const ::rtl::OUString & rComponentName,
236 const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rServiceNames,
249 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL
251 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
252 const ::rtl::OUString & rImplementationName,
253 const ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > & rImplementationKey )
268 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL
270 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
271 const ::rtl::OUString & rComponentName,
272 const ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > & rImplementationKey )
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >(* ComponentFactoryFunc)(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const &xContext)
Function pointer declaration.
Definition: factory.hxx:127
void(* component_getImplementationEnvironmentExtFunc)(sal_Char const **ppEnvTypeName, uno_Environment **ppEnv, sal_Char const *pImplName, uno_Environment *pTargetEnv)
Function pointer declaration.
Definition: factory.hxx:65
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:82
CPPUHELPER_DLLPUBLIC::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > createOneInstanceRegistryFactory(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rServiceManager, const ::rtl::OUString &rComponentName, const ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > &rImplementationKey)
Deprecated.
Backwards-compatibility remainders of a removed library unloading feature.
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >(* ComponentInstantiation)(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rServiceManager)
Deprecated.
Definition: factory.hxx:171
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
Backwards-compatibility remainder of a removed library unloading feature.
Definition: unload.h:42
CPPUHELPER_DLLPUBLIC::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > createSingleFactory(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rServiceManager, const ::rtl::OUString &rImplementationName, ComponentInstantiation pCreateFunction, const ::com::sun::star::uno::Sequence< ::rtl::OUString > &rServiceNames, rtl_ModuleCount *pModCount=0)
Deprecated.
CPPUHELPER_DLLPUBLIC::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > createFactoryProxy(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rServiceManager, const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > &rFactory)
Deprecated.
void *(* component_getFactoryFunc)(const sal_Char *pImplName, void *pServiceManager, void *pRegistryKey)
Function pointer declaration.
Definition: factory.hxx:112
sal_Bool(* component_writeInfoFunc)(void *pServiceManager, void *pRegistryKey)
Function pointer declaration.
Definition: factory.hxx:94
const sal_Char *(* component_getDescriptionFunc)(void)
Function pointer declaration.
Definition: factory.hxx:78
The binary specification of an UNO environment.
Definition: environment.h:41
Template reference class for interface type derived from BaseReference.
Definition: unotype.hxx:32
CPPUHELPER_DLLPUBLIC::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > createOneInstanceFactory(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rServiceManager, const ::rtl::OUString &rComponentName, ComponentInstantiation pCreateFunction, const ::com::sun::star::uno::Sequence< ::rtl::OUString > &rServiceNames, rtl_ModuleCount *pModCount=0)
Deprecated.
void(* component_getImplementationEnvironmentFunc)(const sal_Char **ppEnvTypeName, uno_Environment **ppEnv)
Function pointer declaration.
Definition: factory.hxx:52
CPPUHELPER_DLLPUBLIC::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > createOneInstanceComponentFactory(ComponentFactoryFunc fptr,::rtl::OUString const &rImplementationName,::com::sun::star::uno::Sequence< ::rtl::OUString > const &rServiceNames, rtl_ModuleCount *pModCount=0)
Creates a single service factory which holds the instance created only once.
unsigned char sal_Bool
Definition: types.h:46
char sal_Char
Definition: types.h:124
Template C++ class representing an IDL sequence.
Definition: unotype.hxx:33
CPPUHELPER_DLLPUBLIC::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > createSingleRegistryFactory(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > &rServiceManager, const ::rtl::OUString &rImplementationName, const ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > &rImplementationKey)
Deprecated.
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:358
CPPUHELPER_DLLPUBLIC::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > createSingleComponentFactory(ComponentFactoryFunc fptr,::rtl::OUString const &rImplementationName,::com::sun::star::uno::Sequence< ::rtl::OUString > const &rServiceNames, rtl_ModuleCount *pModCount=0)
Creates a single component factory supporting the XSingleComponentFactory interface.