AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
factory.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 #ifndef INCLUDED_CPPUHELPER_FACTORY_HXX
4 #define INCLUDED_CPPUHELPER_FACTORY_HXX
5 
6 #include "sal/config.h"
7 
8 #include <cstddef>
9 
10 #include "rtl/ustring.hxx"
11 #include "rtl/unload.h"
12 
15 
16 namespace com { namespace sun { namespace star { namespace lang { class XMultiServiceFactory; } } } }
17 namespace com { namespace sun { namespace star { namespace lang { class XSingleComponentFactory; } } } }
18 namespace com { namespace sun { namespace star { namespace lang { class XSingleServiceFactory; } } } }
19 namespace com { namespace sun { namespace star { namespace registry { class XRegistryKey; } } } }
20 namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
21 namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
22 namespace com { namespace sun { namespace star { namespace uno { template <class E> class Sequence; } } } }
23 
24 #define COMPONENT_GETENV "component_getImplementationEnvironment"
25 #define COMPONENT_GETENVEXT "component_getImplementationEnvironmentExt"
26 #define COMPONENT_WRITEINFO "component_writeInfo"
27 #define COMPONENT_GETFACTORY "component_getFactory"
28 
30 
41  const char ** ppEnvTypeName, uno_Environment ** ppEnv );
42 
54  char const ** ppEnvTypeName,
55  uno_Environment ** ppEnv,
56  char const * pImplName,
57  uno_Environment * pTargetEnv
58 );
59 
66 typedef const char * (SAL_CALL * component_getDescriptionFunc)(void);
67 
82 typedef sal_Bool (SAL_CALL * component_writeInfoFunc)(
83  void * pServiceManager, void * pRegistryKey );
84 
100 typedef void * (SAL_CALL * component_getFactoryFunc)(
101  const char * pImplName, void * pServiceManager, void * pRegistryKey );
102 
103 
104 namespace cppu
105 {
106 
113 typedef css::uno::Reference< css::uno::XInterface >(
114  SAL_CALL * ComponentFactoryFunc)(
115  css::uno::Reference< css::uno::XComponentContext > const & xContext );
116 
125 CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleComponentFactory >
128  ::rtl::OUString const & rImplementationName,
129  css::uno::Sequence< ::rtl::OUString > const & rServiceNames,
130  rtl_ModuleCount * pModCount = NULL );
131 
142 CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleComponentFactory > SAL_CALL
145  ::rtl::OUString const & rImplementationName,
146  css::uno::Sequence< ::rtl::OUString > const & rServiceNames,
147  rtl_ModuleCount * pModCount = NULL );
148 
155 typedef css::uno::Reference< css::uno::XInterface >(SAL_CALL * ComponentInstantiation)(
156  const css::uno::Reference< css::lang::XMultiServiceFactory > & rServiceManager );
157 
172 CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL
174  const css::uno::Reference< css::lang::XMultiServiceFactory > & rServiceManager,
175  const ::rtl::OUString & rImplementationName,
176  ComponentInstantiation pCreateFunction,
177  const css::uno::Sequence< ::rtl::OUString > & rServiceNames,
178  rtl_ModuleCount * pModCount = NULL );
179 
194 CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL
196  const css::uno::Reference< css::lang::XMultiServiceFactory > & rServiceManager,
197  const css::uno::Reference< css::lang::XSingleServiceFactory > & rFactory );
198 
213 CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL
215  const css::uno::Reference< css::lang::XMultiServiceFactory > & rServiceManager,
216  const ::rtl::OUString & rComponentName,
217  ComponentInstantiation pCreateFunction,
218  const css::uno::Sequence< ::rtl::OUString > & rServiceNames,
219  rtl_ModuleCount * pModCount = NULL );
220 
230 CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL
232  const css::uno::Reference< css::lang::XMultiServiceFactory > & rServiceManager,
233  const ::rtl::OUString & rImplementationName,
234  const css::uno::Reference< css::registry::XRegistryKey > & rImplementationKey );
235 
248 CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL
250  const css::uno::Reference< css::lang::XMultiServiceFactory > & rServiceManager,
251  const ::rtl::OUString & rComponentName,
252  const css::uno::Reference< css::registry::XRegistryKey > & rImplementationKey );
253 
254 }
255 
256 #endif
257 
258 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
unsigned char sal_Bool
Definition: types.h:18
The binary specification of a UNO environment.
Definition: environment.h:25
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:182
css::uno::Reference< css::uno::XInterface >(* ComponentFactoryFunc)(css::uno::Reference< css::uno::XComponentContext > const &xContext)
Function pointer declaration.
Definition: factory.hxx:114
void *(* component_getFactoryFunc)(const char *pImplName, void *pServiceManager, void *pRegistryKey)
Function pointer declaration.
Definition: factory.hxx:100
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.
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.
void(* component_getImplementationEnvironmentFunc)(const char **ppEnvTypeName, uno_Environment **ppEnv)
Function pointer declaration.
Definition: factory.hxx:40
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.
struct SAL_DLLPUBLIC_RTTI _rtl_ModuleCount rtl_ModuleCount
Backwards-compatibility remainder of a removed library unloading feature.
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:12
Backwards-compatibility remainders of a removed library unloading feature.
struct SAL_DLLPUBLIC_RTTI _uno_Environment uno_Environment
The binary specification of a UNO environment.
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.
sal_Bool(* component_writeInfoFunc)(void *pServiceManager, void *pRegistryKey)
Function pointer declaration.
Definition: factory.hxx:82
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.
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 > createSingleRegistryFactory(const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceManager, const ::rtl::OUString &rImplementationName, const css::uno::Reference< css::registry::XRegistryKey > &rImplementationKey)
Deprecated.
void(* component_getImplementationEnvironmentExtFunc)(char const **ppEnvTypeName, uno_Environment **ppEnv, char const *pImplName, uno_Environment *pTargetEnv)
Function pointer declaration.
Definition: factory.hxx:53
const char *(* component_getDescriptionFunc)(void)
Function pointer declaration.
Definition: factory.hxx:66
css::uno::Reference< css::uno::XInterface >(* ComponentInstantiation)(const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceManager)
Deprecated.
Definition: factory.hxx:155