LibreOffice
LibreOffice 25.8 SDK C/C++ API Reference
Loading...
Searching...
No Matches
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 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20/*
21 * This file is part of LibreOffice published API.
22 */
23#ifndef INCLUDED_CPPUHELPER_FACTORY_HXX
24#define INCLUDED_CPPUHELPER_FACTORY_HXX
25
26#include "sal/config.h"
27
28#include <cstddef>
29
30#include "rtl/ustring.hxx"
31#include "rtl/unload.h"
32
35
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; } } } }
43
44#define COMPONENT_GETENV "component_getImplementationEnvironment"
45#define COMPONENT_GETENVEXT "component_getImplementationEnvironmentExt"
46#define COMPONENT_WRITEINFO "component_writeInfo"
47#define COMPONENT_GETFACTORY "component_getFactory"
48
50
61 const char ** ppEnvTypeName, uno_Environment ** ppEnv );
62
74 char const ** ppEnvTypeName,
75 uno_Environment ** ppEnv,
76 char const * pImplName,
77 uno_Environment * pTargetEnv
78);
79
86typedef const char * (SAL_CALL * component_getDescriptionFunc)(void);
87
103 void * pServiceManager, void * pRegistryKey );
104
120typedef void * (SAL_CALL * component_getFactoryFunc)(
121 const char * pImplName, void * pServiceManager, void * pRegistryKey );
122
123
124namespace cppu
125{
126
134 SAL_CALL * ComponentFactoryFunc)(
136
148 ::rtl::OUString const & rImplementationName,
149 css::uno::Sequence< ::rtl::OUString > const & rServiceNames,
150 rtl_ModuleCount * pModCount = NULL );
151
165 ::rtl::OUString const & rImplementationName,
166 css::uno::Sequence< ::rtl::OUString > const & rServiceNames,
167 rtl_ModuleCount * pModCount = NULL );
168
177
195 const ::rtl::OUString & rImplementationName,
196 ComponentInstantiation pCreateFunction,
197 const css::uno::Sequence< ::rtl::OUString > & rServiceNames,
198 rtl_ModuleCount * pModCount = NULL );
199
218
236 const ::rtl::OUString & rComponentName,
237 ComponentInstantiation pCreateFunction,
238 const css::uno::Sequence< ::rtl::OUString > & rServiceNames,
239 rtl_ModuleCount * pModCount = NULL );
240
253 const ::rtl::OUString & rImplementationName,
254 const css::uno::Reference< css::registry::XRegistryKey > & rImplementationKey );
255
271 const ::rtl::OUString & rComponentName,
272 const css::uno::Reference< css::registry::XRegistryKey > & rImplementationKey );
273
274}
275
276#endif
277
278/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
unsigned char sal_Bool
Definition types.h:38
Backwards-compatibility remainders of a removed library unloading feature.
struct SAL_DLLPUBLIC_RTTI _rtl_ModuleCount rtl_ModuleCount
Backwards-compatibility remainder of a removed library unloading feature.
struct SAL_DLLPUBLIC_RTTI _uno_Environment uno_Environment
The binary specification of a UNO environment.
const char *(* component_getDescriptionFunc)(void)
Function pointer declaration.
Definition factory.hxx:86
void *(* component_getFactoryFunc)(const char *pImplName, void *pServiceManager, void *pRegistryKey)
Function pointer declaration.
Definition factory.hxx:120
void(* component_getImplementationEnvironmentFunc)(const char **ppEnvTypeName, uno_Environment **ppEnv)
Function pointer declaration.
Definition factory.hxx:60
void(* component_getImplementationEnvironmentExtFunc)(char const **ppEnvTypeName, uno_Environment **ppEnv, char const *pImplName, uno_Environment *pTargetEnv)
Function pointer declaration.
Definition factory.hxx:73
sal_Bool(* component_writeInfoFunc)(void *pServiceManager, void *pRegistryKey)
Function pointer declaration.
Definition factory.hxx:102
#define CPPUHELPER_DLLPUBLIC
Definition cppuhelperdllapi.h:32
Definition types.h:377
Definition types.h:377
Definition types.h:377
Definition typedescription.hxx:43
Definition Enterable.hxx:31
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 > 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.
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.
css::uno::Reference< css::uno::XInterface >(* ComponentFactoryFunc)(css::uno::Reference< css::uno::XComponentContext > const &xContext)
Function pointer declaration.
Definition factory.hxx:134
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.
css::uno::Reference< css::uno::XInterface >(* ComponentInstantiation)(const css::uno::Reference< css::lang::XMultiServiceFactory > &rServiceManager)
Deprecated.
Definition factory.hxx:175
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.
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.
Definition factory.hxx:36
Definition factory.hxx:39
This String class provides base functionality for C++ like Unicode character array handling.
Definition ustring.hxx:172
The binary specification of a UNO environment.
Definition environment.h:46
Template C++ class representing an IDL sequence.
Definition Sequence.h:61