factory.hxx (eaff96ed) factory.hxx (77dbc36c)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 19 unchanged lines hidden (view full) ---

28#include <rtl/unload.h>
29
30#include <com/sun/star/uno/XComponentContext.hpp>
31#include <com/sun/star/lang/XSingleComponentFactory.hpp>
32#include <com/sun/star/lang/XSingleServiceFactory.hpp>
33#include <com/sun/star/lang/XMultiServiceFactory.hpp>
34#include <com/sun/star/registry/XRegistryKey.hpp>
35
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 19 unchanged lines hidden (view full) ---

28#include <rtl/unload.h>
29
30#include <com/sun/star/uno/XComponentContext.hpp>
31#include <com/sun/star/lang/XSingleComponentFactory.hpp>
32#include <com/sun/star/lang/XSingleServiceFactory.hpp>
33#include <com/sun/star/lang/XMultiServiceFactory.hpp>
34#include <com/sun/star/registry/XRegistryKey.hpp>
35
36#include "cppuhelper/cppuhelperdllapi.h"
37
36//##################################################################################################
37
38#define COMPONENT_GETENV "component_getImplementationEnvironment"
39#define COMPONENT_GETENVEXT "component_getImplementationEnvironmentExt"
40#define COMPONENT_GETDESCRIPTION "component_getDescription"
41#define COMPONENT_WRITEINFO "component_writeInfo"
42#define COMPONENT_GETFACTORY "component_getFactory"
43

--- 89 unchanged lines hidden (view full) ---

133
134/** Creates a single component factory supporting the XSingleComponentFactory interface.
135
136 @param fptr function pointer for instanciating the object
137 @param rImplementationName implementation name of service
138 @param rServiceNames supported services
139 @param pModCount for future extension (library unloading concept).
140*/
38//##################################################################################################
39
40#define COMPONENT_GETENV "component_getImplementationEnvironment"
41#define COMPONENT_GETENVEXT "component_getImplementationEnvironmentExt"
42#define COMPONENT_GETDESCRIPTION "component_getDescription"
43#define COMPONENT_WRITEINFO "component_writeInfo"
44#define COMPONENT_GETFACTORY "component_getFactory"
45

--- 89 unchanged lines hidden (view full) ---

135
136/** Creates a single component factory supporting the XSingleComponentFactory interface.
137
138 @param fptr function pointer for instanciating the object
139 @param rImplementationName implementation name of service
140 @param rServiceNames supported services
141 @param pModCount for future extension (library unloading concept).
142*/
143CPPUHELPER_DLLPUBLIC
141::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory >
142SAL_CALL createSingleComponentFactory(
143 ComponentFactoryFunc fptr,
144 ::rtl::OUString const & rImplementationName,
145 ::com::sun::star::uno::Sequence< ::rtl::OUString > const & rServiceNames,
146 rtl_ModuleCount * pModCount = 0 )
147 SAL_THROW( () );
148
149/** Creates a single service factory which holds the instance created only once.
150
151 @param fptr function pointer for instanciating the object
152 @param rImplementationName implementation name of service
153 @param rServiceNames supported services
154 @param pModCount for future extension (library unloading concept).
155
156 @see createSingleComponentFactory
157*/
144::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory >
145SAL_CALL createSingleComponentFactory(
146 ComponentFactoryFunc fptr,
147 ::rtl::OUString const & rImplementationName,
148 ::com::sun::star::uno::Sequence< ::rtl::OUString > const & rServiceNames,
149 rtl_ModuleCount * pModCount = 0 )
150 SAL_THROW( () );
151
152/** Creates a single service factory which holds the instance created only once.
153
154 @param fptr function pointer for instanciating the object
155 @param rImplementationName implementation name of service
156 @param rServiceNames supported services
157 @param pModCount for future extension (library unloading concept).
158
159 @see createSingleComponentFactory
160*/
161CPPUHELPER_DLLPUBLIC
158::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > SAL_CALL
159createOneInstanceComponentFactory(
160 ComponentFactoryFunc fptr,
161 ::rtl::OUString const & rImplementationName,
162 ::com::sun::star::uno::Sequence< ::rtl::OUString > const & rServiceNames,
163 rtl_ModuleCount * pModCount = 0 )
164 SAL_THROW( () );
165

--- 14 unchanged lines hidden (view full) ---

180 @param rServiceNames the service supported by the implementation.
181 @param pModCount for future extension (library unloading concept).
182 @return a factory that support the interfaces XServiceProvider, XServiceInfo
183 XSingleServiceFactory and XComponent.
184
185 @see createOneInstanceFactory
186 @deprecated
187*/
162::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > SAL_CALL
163createOneInstanceComponentFactory(
164 ComponentFactoryFunc fptr,
165 ::rtl::OUString const & rImplementationName,
166 ::com::sun::star::uno::Sequence< ::rtl::OUString > const & rServiceNames,
167 rtl_ModuleCount * pModCount = 0 )
168 SAL_THROW( () );
169

--- 14 unchanged lines hidden (view full) ---

184 @param rServiceNames the service supported by the implementation.
185 @param pModCount for future extension (library unloading concept).
186 @return a factory that support the interfaces XServiceProvider, XServiceInfo
187 XSingleServiceFactory and XComponent.
188
189 @see createOneInstanceFactory
190 @deprecated
191*/
192CPPUHELPER_DLLPUBLIC
188::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL
189createSingleFactory(
190 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
191 const ::rtl::OUString & rImplementationName,
192 ComponentInstantiation pCreateFunction,
193 const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rServiceNames,
194 rtl_ModuleCount * pModCount = 0 )
195 SAL_THROW( () );

--- 7 unchanged lines hidden (view full) ---

203 @param rServiceManager the service manager used by the implementation.
204 @param xSingleServiceFactory the wrapped service factory.
205 @return a factory that support the interfaces XServiceProvider, XServiceInfo
206 XSingleServiceFactory.
207
208 @see createSingleFactory
209 @deprecated
210*/
193::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL
194createSingleFactory(
195 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
196 const ::rtl::OUString & rImplementationName,
197 ComponentInstantiation pCreateFunction,
198 const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rServiceNames,
199 rtl_ModuleCount * pModCount = 0 )
200 SAL_THROW( () );

--- 7 unchanged lines hidden (view full) ---

208 @param rServiceManager the service manager used by the implementation.
209 @param xSingleServiceFactory the wrapped service factory.
210 @return a factory that support the interfaces XServiceProvider, XServiceInfo
211 XSingleServiceFactory.
212
213 @see createSingleFactory
214 @deprecated
215*/
216CPPUHELPER_DLLPUBLIC
211::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL
212createFactoryProxy(
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 )
215 SAL_THROW( () );
216
217/** Deprecated. Creates a single service factory which holds the instance created only once.
218
219 @param rServiceManager the service manager used by the implementation.
220 @param rImplementationName the implementation name. An empty string is possible.
221 @param ComponentInstantiation the function pointer to create an object.
222 @param rServiceNames the service supported by the implementation.
223 @param pModCount for future extension (library unloading concept).
224 @return a factory that support the interfaces XServiceProvider, XServiceInfo
225 XSingleServiceFactory and XComponent.
226
227 @see createSingleFactory
228 @deprecated
229*/
217::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL
218createFactoryProxy(
219 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
220 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > & rFactory )
221 SAL_THROW( () );
222
223/** Deprecated. Creates a single service factory which holds the instance created only once.
224
225 @param rServiceManager the service manager used by the implementation.
226 @param rImplementationName the implementation name. An empty string is possible.
227 @param ComponentInstantiation the function pointer to create an object.
228 @param rServiceNames the service supported by the implementation.
229 @param pModCount for future extension (library unloading concept).
230 @return a factory that support the interfaces XServiceProvider, XServiceInfo
231 XSingleServiceFactory and XComponent.
232
233 @see createSingleFactory
234 @deprecated
235*/
236CPPUHELPER_DLLPUBLIC
230::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL
231createOneInstanceFactory(
232 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
233 const ::rtl::OUString & rComponentName,
234 ComponentInstantiation pCreateFunction,
235 const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rServiceNames,
236 rtl_ModuleCount * pModCount = 0 )
237 SAL_THROW( () );
238
239/** Deprecated. Creates a single service factory based on a registry.
240
241 @param rServiceManager the service manager used by the implementation.
242 @param rImplementationName the implementation name. An empty string is possible.
243 @param rImplementationKey the registry key of the implementation section.
244 @return a factory that support the interfaces XServiceProvider, XServiceInfo
245 XSingleServiceFactory and XComponent.
246 @deprecated
247*/
237::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL
238createOneInstanceFactory(
239 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
240 const ::rtl::OUString & rComponentName,
241 ComponentInstantiation pCreateFunction,
242 const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rServiceNames,
243 rtl_ModuleCount * pModCount = 0 )
244 SAL_THROW( () );
245
246/** Deprecated. Creates a single service factory based on a registry.
247
248 @param rServiceManager the service manager used by the implementation.
249 @param rImplementationName the implementation name. An empty string is possible.
250 @param rImplementationKey the registry key of the implementation section.
251 @return a factory that support the interfaces XServiceProvider, XServiceInfo
252 XSingleServiceFactory and XComponent.
253 @deprecated
254*/
255CPPUHELPER_DLLPUBLIC
248::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL createSingleRegistryFactory(
249 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
250 const ::rtl::OUString & rImplementationName,
251 const ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > & rImplementationKey )
252 SAL_THROW( () );
253
254/** Deprecated. Creates a single service factory which holds the instance created only once
255 based on a registry.
256
257 @param rServiceManager the service manager used by the implementation.
258 @param rImplementationName the implementation name. An empty string is possible.
259 @param rImplementationKey the registry key of the implementation section.
260 @return a factory that support the interfaces XServiceProvider, XServiceInfo
261 XSingleServiceFactory and XComponent.
262
263 @see createSingleRegistryFactory
264 @deprecated
265*/
256::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL createSingleRegistryFactory(
257 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
258 const ::rtl::OUString & rImplementationName,
259 const ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > & rImplementationKey )
260 SAL_THROW( () );
261
262/** Deprecated. Creates a single service factory which holds the instance created only once
263 based on a registry.
264
265 @param rServiceManager the service manager used by the implementation.
266 @param rImplementationName the implementation name. An empty string is possible.
267 @param rImplementationKey the registry key of the implementation section.
268 @return a factory that support the interfaces XServiceProvider, XServiceInfo
269 XSingleServiceFactory and XComponent.
270
271 @see createSingleRegistryFactory
272 @deprecated
273*/
274CPPUHELPER_DLLPUBLIC
266::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL createOneInstanceRegistryFactory(
267 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
268 const ::rtl::OUString & rComponentName,
269 const ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > & rImplementationKey )
270 SAL_THROW( () );
271
272}
273
274#endif
275::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > SAL_CALL createOneInstanceRegistryFactory(
276 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rServiceManager,
277 const ::rtl::OUString & rComponentName,
278 const ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > & rImplementationKey )
279 SAL_THROW( () );
280
281}
282
283#endif