001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037 #include "precompiled_sw.hxx"
038 #include "SwXFilterOptions.hxx"
039
040 #ifndef _SAL_TYPES_H_
041 #include "sal/types.h"
042 #endif
043 #ifndef _OSL_DIAGNOSE_H_
044 #include <osl/diagnose.h>
045 #endif
046 #ifndef _UNO_LBNAMES_H_
047 #include <uno/lbnames.h>
048 #endif
049 #ifndef _CPPUHELPER_FACTORY_HXX_
050 #include <cppuhelper/factory.hxx>
051 #endif
052 #ifndef INCLUDED_STRING_H
053 #include <string.h>
054 #define INCLUDED_STRING_H
055 #endif
056
057 using namespace rtl;
058 using namespace ::com::sun::star;
059 using namespace ::com::sun::star::lang;
060
061
062 extern uno::Sequence< OUString > SAL_CALL SwUnoModule_getSupportedServiceNames() throw();
063 extern OUString SAL_CALL SwUnoModule_getImplementationName() throw();
064 extern uno::Reference< uno::XInterface > SAL_CALL SwUnoModule_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr ) throw( uno::Exception );
065
066
067 extern uno::Sequence< OUString > SAL_CALL SwTextDocument_getSupportedServiceNames() throw();
068 extern OUString SAL_CALL SwTextDocument_getImplementationName() throw();
069 extern uno::Reference< uno::XInterface > SAL_CALL SwTextDocument_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr ) throw( uno::Exception );
070 extern uno::Sequence< OUString > SAL_CALL SwWebDocument_getSupportedServiceNames() throw();
071 extern OUString SAL_CALL SwWebDocument_getImplementationName() throw();
072 extern uno::Reference< uno::XInterface > SAL_CALL SwWebDocument_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr ) throw( uno::Exception );
073 extern uno::Sequence< OUString > SAL_CALL SwGlobalDocument_getSupportedServiceNames() throw();
074 extern OUString SAL_CALL SwGlobalDocument_getImplementationName() throw();
075 extern uno::Reference< uno::XInterface > SAL_CALL SwGlobalDocument_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr ) throw( uno::Exception );
076
077
078 extern uno::Sequence< OUString > SAL_CALL SwXMLImport_getSupportedServiceNames() throw();
079 extern OUString SAL_CALL SwXMLImport_getImplementationName() throw();
080 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImport_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
081 extern uno::Sequence< OUString > SAL_CALL SwXMLImportStyles_getSupportedServiceNames() throw();
082 extern OUString SAL_CALL SwXMLImportStyles_getImplementationName() throw();
083 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImportStyles_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
084 extern uno::Sequence< OUString > SAL_CALL SwXMLImportContent_getSupportedServiceNames() throw();
085 extern OUString SAL_CALL SwXMLImportContent_getImplementationName() throw();
086 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImportContent_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
087
088 extern uno::Sequence< OUString > SAL_CALL SwXMLImportMeta_getSupportedServiceNames() throw();
089 extern OUString SAL_CALL SwXMLImportMeta_getImplementationName() throw();
090 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImportMeta_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
091
092 extern uno::Sequence< OUString > SAL_CALL SwXMLImportSettings_getSupportedServiceNames() throw();
093 extern OUString SAL_CALL SwXMLImportSettings_getImplementationName() throw();
094 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImportSettings_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
095
096
097 extern uno::Sequence< OUString > SAL_CALL SwXMLExportOOO_getSupportedServiceNames() throw();
098 extern OUString SAL_CALL SwXMLExportOOO_getImplementationName() throw();
099 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
100 extern uno::Sequence< OUString > SAL_CALL SwXMLExportContentOOO_getSupportedServiceNames() throw();
101 extern OUString SAL_CALL SwXMLExportContentOOO_getImplementationName() throw();
102 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportContentOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
103 extern uno::Sequence< OUString > SAL_CALL SwXMLExportStylesOOO_getSupportedServiceNames() throw();
104 extern OUString SAL_CALL SwXMLExportStylesOOO_getImplementationName() throw();
105 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportStylesOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
106 extern uno::Sequence< OUString > SAL_CALL SwXMLExportMetaOOO_getSupportedServiceNames() throw();
107 extern OUString SAL_CALL SwXMLExportMetaOOO_getImplementationName() throw();
108 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportMetaOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
109 extern uno::Sequence< OUString > SAL_CALL SwXMLExportSettingsOOO_getSupportedServiceNames() throw();
110 extern OUString SAL_CALL SwXMLExportSettingsOOO_getImplementationName() throw();
111 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportSettingsOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
112
113
114 extern uno::Sequence< OUString > SAL_CALL SwXMLExport_getSupportedServiceNames() throw();
115 extern OUString SAL_CALL SwXMLExport_getImplementationName() throw();
116 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExport_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
117 extern uno::Sequence< OUString > SAL_CALL SwXMLExportContent_getSupportedServiceNames() throw();
118 extern OUString SAL_CALL SwXMLExportContent_getImplementationName() throw();
119 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportContent_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
120 extern uno::Sequence< OUString > SAL_CALL SwXMLExportStyles_getSupportedServiceNames() throw();
121 extern OUString SAL_CALL SwXMLExportStyles_getImplementationName() throw();
122 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportStyles_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
123 extern uno::Sequence< OUString > SAL_CALL SwXMLExportMeta_getSupportedServiceNames() throw();
124 extern OUString SAL_CALL SwXMLExportMeta_getImplementationName() throw();
125 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportMeta_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
126 extern uno::Sequence< OUString > SAL_CALL SwXMLExportSettings_getSupportedServiceNames() throw();
127 extern OUString SAL_CALL SwXMLExportSettings_getImplementationName() throw();
128 extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportSettings_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
129
130
131 extern uno::Sequence< OUString > SAL_CALL SwXAutoTextContainer_getSupportedServiceNames() throw();
132 extern OUString SAL_CALL SwXAutoTextContainer_getImplementationName() throw();
133 extern uno::Reference< uno::XInterface > SAL_CALL SwXAutoTextContainer_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
134
135 extern uno::Sequence< OUString > SAL_CALL SwXModule_getSupportedServiceNames() throw();
136 extern OUString SAL_CALL SwXModule_getImplementationName() throw();
137 extern uno::Reference< uno::XInterface > SAL_CALL SwXModule_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
138
139 extern uno::Sequence< OUString > SAL_CALL SwXMailMerge_getSupportedServiceNames() throw();
140 extern OUString SAL_CALL SwXMailMerge_getImplementationName() throw();
141 extern uno::Reference< uno::XInterface > SAL_CALL SwXMailMerge_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
142
143 extern uno::Sequence< OUString > SAL_CALL SwXMailMerge_getSupportedServiceNames() throw();
144 extern OUString SAL_CALL SwXMailMerge_getImplementationName() throw();
145 extern uno::Reference< uno::XInterface > SAL_CALL SwXMailMerge_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
146
147
148 #include "cppuhelper/implementationentry.hxx"
149 namespace comp_FinalThreadManager {
150
151
152 ::rtl::OUString SAL_CALL _getImplementationName();
153 com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames();
154 com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL _create(
155 com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > const & context );
156
157 }
158
159
160
161 #ifdef __cplusplus
162 extern "C"
163 {
164 #endif
165
166 SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
167 const sal_Char ** ppEnvTypeName,
168 uno_Environment ** )
169 {
170 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
171 }
172
173 static void lcl_uno_writeInfo(
174 registry::XRegistryKey * pRegistryKey,
175 const OUString& rImplementationName,
176 const uno::Sequence< OUString >& rServices )
177 {
178 uno::Reference< registry::XRegistryKey > xNewKey(
179 pRegistryKey->createKey(
180 OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) + rImplementationName + OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") ) ) );
181
182 for( sal_Int32 i = 0; i < rServices.getLength(); i++ )
183 xNewKey->createKey( rServices.getConstArray()[i]);
184 }
185
186 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo(
187 void * ,
188 void * pRegistryKey )
189 {
190 if( pRegistryKey )
191 {
192 try
193 {
194 registry::XRegistryKey *pKey =
195 reinterpret_cast< registry::XRegistryKey * >( pRegistryKey );
196
197
198
199 lcl_uno_writeInfo( pKey, SwXMLImport_getImplementationName(),
200 SwXMLImport_getSupportedServiceNames() );
201 lcl_uno_writeInfo( pKey, SwXMLImportStyles_getImplementationName(),
202 SwXMLImportStyles_getSupportedServiceNames() );
203 lcl_uno_writeInfo( pKey,SwXMLImportContent_getImplementationName(),
204 SwXMLImportContent_getSupportedServiceNames() );
205 lcl_uno_writeInfo( pKey, SwXMLImportMeta_getImplementationName(),
206 SwXMLImportMeta_getSupportedServiceNames() );
207 lcl_uno_writeInfo( pKey, SwXMLImportSettings_getImplementationName(),
208 SwXMLImportSettings_getSupportedServiceNames() );
209 lcl_uno_writeInfo( pKey, SwXMLExportOOO_getImplementationName(),
210 SwXMLExportOOO_getSupportedServiceNames() );
211 lcl_uno_writeInfo( pKey, SwXMLExportStylesOOO_getImplementationName(),
212 SwXMLExportStylesOOO_getSupportedServiceNames() );
213 lcl_uno_writeInfo( pKey,SwXMLExportContentOOO_getImplementationName(),
214 SwXMLExportContentOOO_getSupportedServiceNames() );
215 lcl_uno_writeInfo( pKey, SwXMLExportMetaOOO_getImplementationName(),
216 SwXMLExportMetaOOO_getSupportedServiceNames() );
217 lcl_uno_writeInfo( pKey, SwXMLExportSettingsOOO_getImplementationName(),
218 SwXMLExportSettingsOOO_getSupportedServiceNames() );
219 lcl_uno_writeInfo( pKey, SwXMLExport_getImplementationName(),
220 SwXMLExport_getSupportedServiceNames() );
221 lcl_uno_writeInfo( pKey, SwXMLExportStyles_getImplementationName(),
222 SwXMLExportStyles_getSupportedServiceNames() );
223 lcl_uno_writeInfo( pKey,SwXMLExportContent_getImplementationName(),
224 SwXMLExportContent_getSupportedServiceNames() );
225 lcl_uno_writeInfo( pKey, SwXMLExportMeta_getImplementationName(),
226 SwXMLExportMeta_getSupportedServiceNames() );
227 lcl_uno_writeInfo( pKey, SwXMLExportSettings_getImplementationName(),
228 SwXMLExportSettings_getSupportedServiceNames() );
229
230 lcl_uno_writeInfo( pKey, SwXAutoTextContainer_getImplementationName(),
231 SwXAutoTextContainer_getSupportedServiceNames() );
232 lcl_uno_writeInfo( pKey, SwXModule_getImplementationName(),
233 SwXModule_getSupportedServiceNames() );
234 lcl_uno_writeInfo( pKey, SwXMailMerge_getImplementationName(),
235 SwXMailMerge_getSupportedServiceNames() );
236
237 lcl_uno_writeInfo( pKey, SwXFilterOptions::getImplementationName_Static(),
238 SwXFilterOptions::getSupportedServiceNames_Static() );
239
240
241 lcl_uno_writeInfo( pKey, SwTextDocument_getImplementationName(),
242 SwTextDocument_getSupportedServiceNames() );
243 lcl_uno_writeInfo( pKey, SwWebDocument_getImplementationName(),
244 SwWebDocument_getSupportedServiceNames() );
245 lcl_uno_writeInfo( pKey,SwGlobalDocument_getImplementationName(),
246 SwGlobalDocument_getSupportedServiceNames() );
247
248
249 lcl_uno_writeInfo( pKey, SwUnoModule_getImplementationName(),
250 SwUnoModule_getSupportedServiceNames() );
251
252 lcl_uno_writeInfo( pKey,
253 comp_FinalThreadManager::_getImplementationName(),
254 comp_FinalThreadManager::_getSupportedServiceNames() );
255
256
257 }
258 catch (registry::InvalidRegistryException &)
259 {
260 OSL_ENSURE( sal_False, "### InvalidRegistryException!" );
261 }
262 }
263 return sal_True;
264 }
265
266 static ::cppu::ImplementationEntry const entries[] = {
267 { &comp_FinalThreadManager::_create,
268 &comp_FinalThreadManager::_getImplementationName,
269 &comp_FinalThreadManager::_getSupportedServiceNames,
270 &::cppu::createSingleComponentFactory, 0, 0 },
271 { 0, 0, 0, 0, 0, 0 }
272 };
273
274 SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
275 const sal_Char * pImplName,
276 void * pServiceManager,
277 void * pRegistryKey )
278 {
279 void * pRet = 0;
280 if( pServiceManager )
281 {
282 uno::Reference< XMultiServiceFactory > xMSF(
283 reinterpret_cast< XMultiServiceFactory * >( pServiceManager ) );
284
285 uno::Reference< XSingleServiceFactory > xFactory;
286
287 const sal_Int32 nImplNameLen = strlen( pImplName );
288 if( SwXMLImport_getImplementationName().equalsAsciiL( pImplName,
289 nImplNameLen ) )
290 {
291 xFactory = ::cppu::createSingleFactory( xMSF,
292 SwXMLImport_getImplementationName(),
293 SwXMLImport_createInstance,
294 SwXMLImport_getSupportedServiceNames() );
295 }
296 else if( SwXMLImportStyles_getImplementationName().equalsAsciiL(
297 pImplName, nImplNameLen ) )
298 {
299 xFactory = ::cppu::createSingleFactory( xMSF,
300 SwXMLImportStyles_getImplementationName(),
301 SwXMLImportStyles_createInstance,
302 SwXMLImportStyles_getSupportedServiceNames() );
303 }
304 else if( SwXMLImportContent_getImplementationName().equalsAsciiL(
305 pImplName, nImplNameLen ) )
306 {
307 xFactory = ::cppu::createSingleFactory( xMSF,
308 SwXMLImportContent_getImplementationName(),
309 SwXMLImportContent_createInstance,
310 SwXMLImportContent_getSupportedServiceNames() );
311 }
312 else if( SwXMLImportMeta_getImplementationName().equalsAsciiL(
313 pImplName, nImplNameLen ) )
314 {
315 xFactory = ::cppu::createSingleFactory( xMSF,
316 SwXMLImportMeta_getImplementationName(),
317 SwXMLImportMeta_createInstance,
318 SwXMLImportMeta_getSupportedServiceNames() );
319 }
320 else if( SwXMLImportSettings_getImplementationName().equalsAsciiL(
321 pImplName, nImplNameLen ) )
322 {
323 xFactory = ::cppu::createSingleFactory( xMSF,
324 SwXMLImportSettings_getImplementationName(),
325 SwXMLImportSettings_createInstance,
326 SwXMLImportSettings_getSupportedServiceNames() );
327 }
328 else if( SwXMLExportOOO_getImplementationName().equalsAsciiL( pImplName,
329 nImplNameLen ) )
330 {
331 xFactory = ::cppu::createSingleFactory( xMSF,
332 SwXMLExportOOO_getImplementationName(),
333 SwXMLExportOOO_createInstance,
334 SwXMLExportOOO_getSupportedServiceNames() );
335 }
336 else if( SwXMLExportStylesOOO_getImplementationName().equalsAsciiL(
337 pImplName, nImplNameLen ) )
338 {
339 xFactory = ::cppu::createSingleFactory( xMSF,
340 SwXMLExportStylesOOO_getImplementationName(),
341 SwXMLExportStylesOOO_createInstance,
342 SwXMLExportStylesOOO_getSupportedServiceNames() );
343 }
344 else if( SwXMLExportContentOOO_getImplementationName().equalsAsciiL(
345 pImplName, nImplNameLen ) )
346 {
347 xFactory = ::cppu::createSingleFactory( xMSF,
348 SwXMLExportContentOOO_getImplementationName(),
349 SwXMLExportContentOOO_createInstance,
350 SwXMLExportContentOOO_getSupportedServiceNames() );
351 }
352 else if( SwXMLExportMetaOOO_getImplementationName().equalsAsciiL(
353 pImplName, nImplNameLen ) )
354 {
355 xFactory = ::cppu::createSingleFactory( xMSF,
356 SwXMLExportMetaOOO_getImplementationName(),
357 SwXMLExportMetaOOO_createInstance,
358 SwXMLExportMetaOOO_getSupportedServiceNames() );
359 }
360 else if( SwXMLExportSettingsOOO_getImplementationName().equalsAsciiL(
361 pImplName, nImplNameLen ) )
362 {
363 xFactory = ::cppu::createSingleFactory( xMSF,
364 SwXMLExportSettingsOOO_getImplementationName(),
365 SwXMLExportSettingsOOO_createInstance,
366 SwXMLExportSettingsOOO_getSupportedServiceNames() );
367 }
368 else if( SwXMLExport_getImplementationName().equalsAsciiL( pImplName,
369 nImplNameLen ) )
370 {
371 xFactory = ::cppu::createSingleFactory( xMSF,
372 SwXMLExport_getImplementationName(),
373 SwXMLExport_createInstance,
374 SwXMLExport_getSupportedServiceNames() );
375 }
376 else if( SwXMLExportStyles_getImplementationName().equalsAsciiL(
377 pImplName, nImplNameLen ) )
378 {
379 xFactory = ::cppu::createSingleFactory( xMSF,
380 SwXMLExportStyles_getImplementationName(),
381 SwXMLExportStyles_createInstance,
382 SwXMLExportStyles_getSupportedServiceNames() );
383 }
384 else if( SwXMLExportContent_getImplementationName().equalsAsciiL(
385 pImplName, nImplNameLen ) )
386 {
387 xFactory = ::cppu::createSingleFactory( xMSF,
388 SwXMLExportContent_getImplementationName(),
389 SwXMLExportContent_createInstance,
390 SwXMLExportContent_getSupportedServiceNames() );
391 }
392 else if( SwXMLExportMeta_getImplementationName().equalsAsciiL(
393 pImplName, nImplNameLen ) )
394 {
395 xFactory = ::cppu::createSingleFactory( xMSF,
396 SwXMLExportMeta_getImplementationName(),
397 SwXMLExportMeta_createInstance,
398 SwXMLExportMeta_getSupportedServiceNames() );
399 }
400 else if( SwXMLExportSettings_getImplementationName().equalsAsciiL(
401 pImplName, nImplNameLen ) )
402 {
403 xFactory = ::cppu::createSingleFactory( xMSF,
404 SwXMLExportSettings_getImplementationName(),
405 SwXMLExportSettings_createInstance,
406 SwXMLExportSettings_getSupportedServiceNames() );
407 }
408 else if( SwXAutoTextContainer_getImplementationName().equalsAsciiL(
409 pImplName, nImplNameLen ) )
410 {
411 xFactory = ::cppu::createSingleFactory( xMSF,
412 SwXAutoTextContainer_getImplementationName(),
413 SwXAutoTextContainer_createInstance,
414 SwXAutoTextContainer_getSupportedServiceNames() );
415 }
416 else if( SwXModule_getImplementationName().equalsAsciiL(
417 pImplName, nImplNameLen ) )
418 {
419 xFactory = ::cppu::createSingleFactory( xMSF,
420 SwXModule_getImplementationName(),
421 SwXModule_createInstance,
422 SwXModule_getSupportedServiceNames() );
423 }
424 else if( SwXMailMerge_getImplementationName().equalsAsciiL(
425 pImplName, nImplNameLen ) )
426 {
427 xFactory = ::cppu::createSingleFactory( xMSF,
428 SwXMailMerge_getImplementationName(),
429 SwXMailMerge_createInstance,
430 SwXMailMerge_getSupportedServiceNames() );
431 }
432 else if( SwXFilterOptions::getImplementationName_Static().equalsAsciiL(
433 pImplName, nImplNameLen ) )
434 {
435 xFactory = ::cppu::createSingleFactory( xMSF,
436 SwXFilterOptions::getImplementationName_Static(),
437 SwXFilterOptions_createInstance,
438 SwXFilterOptions::getSupportedServiceNames_Static() );
439 }
440 else if( SwTextDocument_getImplementationName().equalsAsciiL(
441 pImplName, nImplNameLen ) )
442 {
443 xFactory = ::cppu::createSingleFactory( xMSF,
444 SwTextDocument_getImplementationName(),
445 SwTextDocument_createInstance,
446 SwTextDocument_getSupportedServiceNames() );
447 }
448 else if( SwWebDocument_getImplementationName().equalsAsciiL(
449 pImplName, nImplNameLen ) )
450 {
451 xFactory = ::cppu::createSingleFactory( xMSF,
452 SwWebDocument_getImplementationName(),
453 SwWebDocument_createInstance,
454 SwWebDocument_getSupportedServiceNames() );
455 }
456 else if( SwGlobalDocument_getImplementationName().equalsAsciiL(
457 pImplName, nImplNameLen ) )
458 {
459 xFactory = ::cppu::createSingleFactory( xMSF,
460 SwGlobalDocument_getImplementationName(),
461 SwGlobalDocument_createInstance,
462 SwGlobalDocument_getSupportedServiceNames() );
463 }
464 else if( SwUnoModule_getImplementationName().equalsAsciiL(
465 pImplName, nImplNameLen ) )
466 {
467 xFactory = ::cppu::createSingleFactory( xMSF,
468 SwUnoModule_getImplementationName(),
469 SwUnoModule_createInstance,
470 SwUnoModule_getSupportedServiceNames() );
471 }
472
473 else if( comp_FinalThreadManager::_getImplementationName().equalsAsciiL(
474 pImplName, nImplNameLen ) )
475 {
476 pRet = ::cppu::component_getFactoryHelper(
477 pImplName, pServiceManager, pRegistryKey, entries);
478 }
479
480
481 if( xFactory.is())
482 {
483 xFactory->acquire();
484 pRet = xFactory.get();
485 }
486 }
487 return pRet;
488 }
489
490 #ifdef __cplusplus
491 }
492 #endif