LibreOffice Module cppuhelper (master) 1
Namespaces | Macros | Typedefs | Functions
factory.hxx File Reference
#include "sal/config.h"
#include <cstddef>
#include "rtl/ustring.hxx"
#include "rtl/unload.h"
#include "com/sun/star/uno/Reference.h"
#include "cppuhelper/cppuhelperdllapi.h"
Include dependency graph for factory.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::lang
 
namespace  com::sun::star::registry
 
namespace  com::sun::star::uno
 
namespace  cppu
 

Macros

#define COMPONENT_GETENV   "component_getImplementationEnvironment"
 
#define COMPONENT_GETENVEXT   "component_getImplementationEnvironmentExt"
 
#define COMPONENT_WRITEINFO   "component_writeInfo"
 
#define COMPONENT_GETFACTORY   "component_getFactory"
 

Typedefs

typedef struct _uno_Environment uno_Environment
 
typedef void(SAL_CALL * component_getImplementationEnvironmentFunc) (const char **ppEnvTypeName, uno_Environment **ppEnv)
 Function pointer declaration. More...
 
typedef void(SAL_CALL * component_getImplementationEnvironmentExtFunc) (char const **ppEnvTypeName, uno_Environment **ppEnv, char const *pImplName, uno_Environment *pTargetEnv)
 Function pointer declaration. More...
 
typedef const char *(SAL_CALL * component_getDescriptionFunc) (void)
 Function pointer declaration. More...
 
typedef sal_Bool(SAL_CALL * component_writeInfoFunc) (void *pServiceManager, void *pRegistryKey)
 Function pointer declaration. More...
 
typedef void *(SAL_CALL * component_getFactoryFunc) (const char *pImplName, void *pServiceManager, void *pRegistryKey)
 Function pointer declaration. More...
 
typedef css::uno::Reference< css::uno::XInterface >(SAL_CALL *ComponentFactoryFunc)(css CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleComponentFactory > SAL_CALL cppu::createSingleComponentFactory(ComponentFactoryFunc fptr, ::rtl::OUString const &rImplementationName, css::uno::Sequence< ::rtl::OUString > const &rServiceNames, rtl_ModuleCount *pModCount=NULL)
 Function pointer declaration. More...
 
typedef css::uno::Reference< css::uno::XInterface >(SAL_CALL *ComponentInstantiation)(const css CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL cppu::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. More...
 

Functions

CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleComponentFactory > SAL_CALL cppu::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. More...
 
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL cppu::createFactoryProxy (const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceManager, const css::uno::Reference< css::lang::XSingleServiceFactory > &rFactory)
 Deprecated. More...
 
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL cppu::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. More...
 
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL cppu::createSingleRegistryFactory (const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceManager, const ::rtl::OUString &rImplementationName, const css::uno::Reference< css::registry::XRegistryKey > &rImplementationKey)
 Deprecated. More...
 
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL cppu::createOneInstanceRegistryFactory (const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceManager, const ::rtl::OUString &rComponentName, const css::uno::Reference< css::registry::XRegistryKey > &rImplementationKey)
 Deprecated. More...
 

Macro Definition Documentation

◆ COMPONENT_GETENV

#define COMPONENT_GETENV   "component_getImplementationEnvironment"

Definition at line 44 of file factory.hxx.

◆ COMPONENT_GETENVEXT

#define COMPONENT_GETENVEXT   "component_getImplementationEnvironmentExt"

Definition at line 45 of file factory.hxx.

◆ COMPONENT_GETFACTORY

#define COMPONENT_GETFACTORY   "component_getFactory"

Definition at line 47 of file factory.hxx.

◆ COMPONENT_WRITEINFO

#define COMPONENT_WRITEINFO   "component_writeInfo"

Definition at line 46 of file factory.hxx.

Typedef Documentation

◆ component_getDescriptionFunc

typedef const char *(SAL_CALL * component_getDescriptionFunc) (void)

Function pointer declaration.

Function retrieves a component description.

Returns
an XML formatted string containing a short component description
Deprecated:

Definition at line 86 of file factory.hxx.

◆ component_getFactoryFunc

typedef void *(SAL_CALL * component_getFactoryFunc) (const char *pImplName, void *pServiceManager, void *pRegistryKey)

Function pointer declaration.

Retrieves a factory to create component instances.

Parameters
pImplNamedesired implementation name
pServiceManagera service manager (the type is XMultiServiceFactory that can be used by the environment returned by component_getImplementationEnvironment)
pRegistryKeya registry key (the type is XRegistryKey that can be used by the environment returned by component_getImplementationEnvironment)
Returns
acquired component factory (the type is lang::XSingleComponentFactory or lang::XSingleServiceFactory to be used by the environment returned by component_getImplementationEnvironment)

Definition at line 120 of file factory.hxx.

◆ component_getImplementationEnvironmentExtFunc

typedef void(SAL_CALL * component_getImplementationEnvironmentExtFunc) (char const **ppEnvTypeName, uno_Environment **ppEnv, char const *pImplName, uno_Environment *pTargetEnv)

Function pointer declaration.

Function determines the environment of the component implementation, i.e. the compiler. If the environment is NOT session specific (needs no additional context), then this function should return the environment type name and leave ppEnv (to 0).

Parameters
ppEnvTypeNameenvironment type name; string must be a constant
ppEnvfunction returns an environment if the environment is session specific, i.e. has special context
pImplName

Definition at line 73 of file factory.hxx.

◆ component_getImplementationEnvironmentFunc

typedef void(SAL_CALL * component_getImplementationEnvironmentFunc) (const char **ppEnvTypeName, uno_Environment **ppEnv)

Function pointer declaration.

Function determines the environment of the component implementation, i.e. which compiler compiled it. If the environment is NOT session specific (needs no additional context), then this function should return the environment type name and leave ppEnv (to 0).

Parameters
ppEnvTypeNameenvironment type name; string must be constant
ppEnvfunction returns its environment if the environment is session specific, i.e. has special context

Definition at line 60 of file factory.hxx.

◆ component_writeInfoFunc

typedef sal_Bool(SAL_CALL * component_writeInfoFunc) (void *pServiceManager, void *pRegistryKey)

Function pointer declaration.

Deprecated:
component_writeInfo should no longer be used in new components

Function writes component registry info, at least writing the supported service names.

Parameters
pServiceManagera service manager (the type is an XMultiServiceFactory that can be used by the environment returned by component_getImplementationEnvironment)
pRegistryKeya registry key (the type is XRegistryKey that can be used by the environment returned by component_getImplementationEnvironment)
Returns
true if everything went fine

Definition at line 102 of file factory.hxx.

◆ uno_Environment

typedef struct _uno_Environment uno_Environment

Definition at line 49 of file factory.hxx.