xref: /AOO41X/main/sw/source/ui/uno/unofreg.cxx (revision ca62e2c2083b5d0995f1245bad6c2edfb455fbec)
1efeef26fSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3efeef26fSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4efeef26fSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5efeef26fSAndrew Rist  * distributed with this work for additional information
6efeef26fSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7efeef26fSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8efeef26fSAndrew Rist  * "License"); you may not use this file except in compliance
9efeef26fSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11efeef26fSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13efeef26fSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14efeef26fSAndrew Rist  * software distributed under the License is distributed on an
15efeef26fSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16efeef26fSAndrew Rist  * KIND, either express or implied.  See the License for the
17efeef26fSAndrew Rist  * specific language governing permissions and limitations
18efeef26fSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20efeef26fSAndrew Rist  *************************************************************/
21efeef26fSAndrew Rist 
22efeef26fSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_sw.hxx"
26cdf0e10cSrcweir #include "SwXFilterOptions.hxx"
27cdf0e10cSrcweir #include "sal/types.h"
28cdf0e10cSrcweir #include <osl/diagnose.h>
29cdf0e10cSrcweir #include <uno/lbnames.h>
30cdf0e10cSrcweir #include <cppuhelper/factory.hxx>
31cdf0e10cSrcweir #include <sfx2/sfxmodelfactory.hxx>
32cdf0e10cSrcweir #ifndef INCLUDED_STRING_H
33cdf0e10cSrcweir #include <string.h>
34cdf0e10cSrcweir #define INCLUDED_STRING_H
35cdf0e10cSrcweir #endif
36cdf0e10cSrcweir 
37cdf0e10cSrcweir using namespace rtl;
38cdf0e10cSrcweir using namespace ::com::sun::star;
39cdf0e10cSrcweir using namespace ::com::sun::star::lang;
40cdf0e10cSrcweir 
41cdf0e10cSrcweir // module
42cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwUnoModule_getSupportedServiceNames() throw();
43cdf0e10cSrcweir extern OUString SAL_CALL SwUnoModule_getImplementationName() throw();
44cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwUnoModule_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr ) throw( uno::Exception );
45cdf0e10cSrcweir 
46cdf0e10cSrcweir // writer documents
47cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwTextDocument_getSupportedServiceNames() throw();
48cdf0e10cSrcweir extern OUString SAL_CALL SwTextDocument_getImplementationName() throw();
49cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwTextDocument_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr, const sal_uInt64 _nCreationFlags ) throw( uno::Exception );
50cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwWebDocument_getSupportedServiceNames() throw();
51cdf0e10cSrcweir extern OUString SAL_CALL SwWebDocument_getImplementationName() throw();
52cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwWebDocument_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr ) throw( uno::Exception );
53cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwGlobalDocument_getSupportedServiceNames() throw();
54cdf0e10cSrcweir extern OUString SAL_CALL SwGlobalDocument_getImplementationName() throw();
55cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwGlobalDocument_createInstance( const uno::Reference< XMultiServiceFactory > &rSMgr ) throw( uno::Exception );
56cdf0e10cSrcweir 
57cdf0e10cSrcweir // xml import
58cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLImport_getSupportedServiceNames() throw();
59cdf0e10cSrcweir extern OUString SAL_CALL SwXMLImport_getImplementationName() throw();
60cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImport_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
61cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLImportStyles_getSupportedServiceNames() throw();
62cdf0e10cSrcweir extern OUString SAL_CALL SwXMLImportStyles_getImplementationName() throw();
63cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImportStyles_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
64cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLImportContent_getSupportedServiceNames() throw();
65cdf0e10cSrcweir extern OUString SAL_CALL SwXMLImportContent_getImplementationName() throw();
66cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImportContent_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
67cdf0e10cSrcweir 
68cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL     SwXMLImportMeta_getSupportedServiceNames() throw();
69cdf0e10cSrcweir extern OUString SAL_CALL     SwXMLImportMeta_getImplementationName() throw();
70cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImportMeta_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
71cdf0e10cSrcweir 
72cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLImportSettings_getSupportedServiceNames() throw();
73cdf0e10cSrcweir extern OUString SAL_CALL SwXMLImportSettings_getImplementationName() throw();
74cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLImportSettings_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
75cdf0e10cSrcweir 
76cdf0e10cSrcweir // xml export (OOo)
77cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLExportOOO_getSupportedServiceNames() throw();
78cdf0e10cSrcweir extern OUString SAL_CALL SwXMLExportOOO_getImplementationName() throw();
79cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
80cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLExportContentOOO_getSupportedServiceNames() throw();
81cdf0e10cSrcweir extern OUString SAL_CALL SwXMLExportContentOOO_getImplementationName() throw();
82cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportContentOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
83cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLExportStylesOOO_getSupportedServiceNames() throw();
84cdf0e10cSrcweir extern OUString SAL_CALL SwXMLExportStylesOOO_getImplementationName() throw();
85cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportStylesOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
86cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLExportMetaOOO_getSupportedServiceNames() throw();
87cdf0e10cSrcweir extern OUString SAL_CALL SwXMLExportMetaOOO_getImplementationName() throw();
88cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportMetaOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
89cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLExportSettingsOOO_getSupportedServiceNames() throw();
90cdf0e10cSrcweir extern OUString SAL_CALL SwXMLExportSettingsOOO_getImplementationName() throw();
91cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportSettingsOOO_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
92cdf0e10cSrcweir 
93cdf0e10cSrcweir // xml export (OASIS)
94cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLExport_getSupportedServiceNames() throw();
95cdf0e10cSrcweir extern OUString SAL_CALL SwXMLExport_getImplementationName() throw();
96cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExport_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
97cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLExportContent_getSupportedServiceNames() throw();
98cdf0e10cSrcweir extern OUString SAL_CALL SwXMLExportContent_getImplementationName() throw();
99cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportContent_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
100cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLExportStyles_getSupportedServiceNames() throw();
101cdf0e10cSrcweir extern OUString SAL_CALL SwXMLExportStyles_getImplementationName() throw();
102cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportStyles_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
103cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLExportMeta_getSupportedServiceNames() throw();
104cdf0e10cSrcweir extern OUString SAL_CALL SwXMLExportMeta_getImplementationName() throw();
105cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportMeta_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
106cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMLExportSettings_getSupportedServiceNames() throw();
107cdf0e10cSrcweir extern OUString SAL_CALL SwXMLExportSettings_getImplementationName() throw();
108cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMLExportSettings_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr)	throw( uno::Exception );
109cdf0e10cSrcweir 
110cdf0e10cSrcweir //API objects
111cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXAutoTextContainer_getSupportedServiceNames() throw();
112cdf0e10cSrcweir extern OUString SAL_CALL SwXAutoTextContainer_getImplementationName() throw();
113cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXAutoTextContainer_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
114cdf0e10cSrcweir 
115cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXModule_getSupportedServiceNames() throw();
116cdf0e10cSrcweir extern OUString SAL_CALL SwXModule_getImplementationName() throw();
117cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXModule_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
118cdf0e10cSrcweir 
119cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMailMerge_getSupportedServiceNames() throw();
120cdf0e10cSrcweir extern OUString SAL_CALL SwXMailMerge_getImplementationName() throw();
121cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMailMerge_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
122cdf0e10cSrcweir 
123cdf0e10cSrcweir extern uno::Sequence< OUString > SAL_CALL SwXMailMerge_getSupportedServiceNames() throw();
124cdf0e10cSrcweir extern OUString SAL_CALL SwXMailMerge_getImplementationName() throw();
125cdf0e10cSrcweir extern uno::Reference< uno::XInterface > SAL_CALL SwXMailMerge_createInstance(const uno::Reference< XMultiServiceFactory > & rSMgr) throw( uno::Exception );
126cdf0e10cSrcweir 
127cdf0e10cSrcweir #include "cppuhelper/implementationentry.hxx"
128cdf0e10cSrcweir namespace comp_FinalThreadManager {
129cdf0e10cSrcweir 
130cdf0e10cSrcweir // component and service helper functions:
131cdf0e10cSrcweir ::rtl::OUString SAL_CALL _getImplementationName();
132cdf0e10cSrcweir com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames();
133cdf0e10cSrcweir com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL _create(
134cdf0e10cSrcweir     com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > const & context );
135cdf0e10cSrcweir 
136cdf0e10cSrcweir }
137*ff0525f2SOliver-Rainer Wittmann 
138*ff0525f2SOliver-Rainer Wittmann #include "SwPanelFactory.hxx"
139cdf0e10cSrcweir 
140cdf0e10cSrcweir //
141cdf0e10cSrcweir #ifdef __cplusplus
142cdf0e10cSrcweir extern "C"
143cdf0e10cSrcweir {
144cdf0e10cSrcweir #endif
145cdf0e10cSrcweir 
component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,uno_Environment **)146cdf0e10cSrcweir SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
147cdf0e10cSrcweir         const sal_Char ** ppEnvTypeName,
148cdf0e10cSrcweir         uno_Environment ** /*ppEnv*/ )
149cdf0e10cSrcweir {
150cdf0e10cSrcweir     *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
151cdf0e10cSrcweir }
152cdf0e10cSrcweir 
153cdf0e10cSrcweir static ::cppu::ImplementationEntry const entries[] = {
154cdf0e10cSrcweir     { &comp_FinalThreadManager::_create,
155cdf0e10cSrcweir       &comp_FinalThreadManager::_getImplementationName,
156cdf0e10cSrcweir       &comp_FinalThreadManager::_getSupportedServiceNames,
157cdf0e10cSrcweir       &::cppu::createSingleComponentFactory, 0, 0 },
158cdf0e10cSrcweir     { 0, 0, 0, 0, 0, 0 }
159cdf0e10cSrcweir };
160cdf0e10cSrcweir 
component_getFactory(const sal_Char * pImplName,void * pServiceManager,void * pRegistryKey)161cdf0e10cSrcweir SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
162cdf0e10cSrcweir     const sal_Char * pImplName,
163cdf0e10cSrcweir     void * pServiceManager,
164cdf0e10cSrcweir     void * pRegistryKey )
165cdf0e10cSrcweir {
166cdf0e10cSrcweir     void * pRet = 0;
167cdf0e10cSrcweir     if( pServiceManager )
168cdf0e10cSrcweir     {
169cdf0e10cSrcweir         uno::Reference< XMultiServiceFactory > xMSF(
170cdf0e10cSrcweir             reinterpret_cast< XMultiServiceFactory * >( pServiceManager ) );
171cdf0e10cSrcweir 
172cdf0e10cSrcweir         uno::Reference< XSingleServiceFactory > xFactory;
173cdf0e10cSrcweir 
174cdf0e10cSrcweir         const sal_Int32 nImplNameLen = strlen( pImplName );
175cdf0e10cSrcweir         if( SwXMLImport_getImplementationName().equalsAsciiL( pImplName,
176cdf0e10cSrcweir                                                               nImplNameLen ) )
177cdf0e10cSrcweir         {
178cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
179cdf0e10cSrcweir                 SwXMLImport_getImplementationName(),
180cdf0e10cSrcweir                 SwXMLImport_createInstance,
181cdf0e10cSrcweir                 SwXMLImport_getSupportedServiceNames() );
182cdf0e10cSrcweir         }
183cdf0e10cSrcweir         else if( SwXMLImportStyles_getImplementationName().equalsAsciiL(
184cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
185cdf0e10cSrcweir         {
186cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
187cdf0e10cSrcweir                 SwXMLImportStyles_getImplementationName(),
188cdf0e10cSrcweir                 SwXMLImportStyles_createInstance,
189cdf0e10cSrcweir                 SwXMLImportStyles_getSupportedServiceNames() );
190cdf0e10cSrcweir         }
191cdf0e10cSrcweir         else if( SwXMLImportContent_getImplementationName().equalsAsciiL(
192cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
193cdf0e10cSrcweir         {
194cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
195cdf0e10cSrcweir                 SwXMLImportContent_getImplementationName(),
196cdf0e10cSrcweir                 SwXMLImportContent_createInstance,
197cdf0e10cSrcweir                 SwXMLImportContent_getSupportedServiceNames() );
198cdf0e10cSrcweir         }
199cdf0e10cSrcweir         else if( SwXMLImportMeta_getImplementationName().equalsAsciiL(
200cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
201cdf0e10cSrcweir         {
202cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
203cdf0e10cSrcweir                 SwXMLImportMeta_getImplementationName(),
204cdf0e10cSrcweir                 SwXMLImportMeta_createInstance,
205cdf0e10cSrcweir                 SwXMLImportMeta_getSupportedServiceNames() );
206cdf0e10cSrcweir         }
207cdf0e10cSrcweir         else if( SwXMLImportSettings_getImplementationName().equalsAsciiL(
208cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
209cdf0e10cSrcweir         {
210cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
211cdf0e10cSrcweir                 SwXMLImportSettings_getImplementationName(),
212cdf0e10cSrcweir                 SwXMLImportSettings_createInstance,
213cdf0e10cSrcweir                 SwXMLImportSettings_getSupportedServiceNames() );
214cdf0e10cSrcweir         }
215cdf0e10cSrcweir         else if( SwXMLExportOOO_getImplementationName().equalsAsciiL( pImplName,
216cdf0e10cSrcweir                                                             nImplNameLen ) )
217cdf0e10cSrcweir         {
218cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
219cdf0e10cSrcweir                 SwXMLExportOOO_getImplementationName(),
220cdf0e10cSrcweir                 SwXMLExportOOO_createInstance,
221cdf0e10cSrcweir                 SwXMLExportOOO_getSupportedServiceNames() );
222cdf0e10cSrcweir         }
223cdf0e10cSrcweir         else if( SwXMLExportStylesOOO_getImplementationName().equalsAsciiL(
224cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
225cdf0e10cSrcweir         {
226cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
227cdf0e10cSrcweir                 SwXMLExportStylesOOO_getImplementationName(),
228cdf0e10cSrcweir                 SwXMLExportStylesOOO_createInstance,
229cdf0e10cSrcweir                 SwXMLExportStylesOOO_getSupportedServiceNames() );
230cdf0e10cSrcweir         }
231cdf0e10cSrcweir         else if( SwXMLExportContentOOO_getImplementationName().equalsAsciiL(
232cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
233cdf0e10cSrcweir         {
234cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
235cdf0e10cSrcweir                 SwXMLExportContentOOO_getImplementationName(),
236cdf0e10cSrcweir                 SwXMLExportContentOOO_createInstance,
237cdf0e10cSrcweir                 SwXMLExportContentOOO_getSupportedServiceNames() );
238cdf0e10cSrcweir         }
239cdf0e10cSrcweir         else if( SwXMLExportMetaOOO_getImplementationName().equalsAsciiL(
240cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
241cdf0e10cSrcweir         {
242cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
243cdf0e10cSrcweir                 SwXMLExportMetaOOO_getImplementationName(),
244cdf0e10cSrcweir                 SwXMLExportMetaOOO_createInstance,
245cdf0e10cSrcweir                 SwXMLExportMetaOOO_getSupportedServiceNames() );
246cdf0e10cSrcweir         }
247cdf0e10cSrcweir         else if( SwXMLExportSettingsOOO_getImplementationName().equalsAsciiL(
248cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
249cdf0e10cSrcweir         {
250cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
251cdf0e10cSrcweir                 SwXMLExportSettingsOOO_getImplementationName(),
252cdf0e10cSrcweir                 SwXMLExportSettingsOOO_createInstance,
253cdf0e10cSrcweir                 SwXMLExportSettingsOOO_getSupportedServiceNames() );
254cdf0e10cSrcweir         }
255cdf0e10cSrcweir         else if( SwXMLExport_getImplementationName().equalsAsciiL( pImplName,
256cdf0e10cSrcweir                                                             nImplNameLen ) )
257cdf0e10cSrcweir         {
258cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
259cdf0e10cSrcweir                 SwXMLExport_getImplementationName(),
260cdf0e10cSrcweir                 SwXMLExport_createInstance,
261cdf0e10cSrcweir                 SwXMLExport_getSupportedServiceNames() );
262cdf0e10cSrcweir         }
263cdf0e10cSrcweir         else if( SwXMLExportStyles_getImplementationName().equalsAsciiL(
264cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
265cdf0e10cSrcweir         {
266cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
267cdf0e10cSrcweir                 SwXMLExportStyles_getImplementationName(),
268cdf0e10cSrcweir                 SwXMLExportStyles_createInstance,
269cdf0e10cSrcweir                 SwXMLExportStyles_getSupportedServiceNames() );
270cdf0e10cSrcweir         }
271cdf0e10cSrcweir         else if( SwXMLExportContent_getImplementationName().equalsAsciiL(
272cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
273cdf0e10cSrcweir         {
274cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
275cdf0e10cSrcweir                 SwXMLExportContent_getImplementationName(),
276cdf0e10cSrcweir                 SwXMLExportContent_createInstance,
277cdf0e10cSrcweir                 SwXMLExportContent_getSupportedServiceNames() );
278cdf0e10cSrcweir         }
279cdf0e10cSrcweir         else if( SwXMLExportMeta_getImplementationName().equalsAsciiL(
280cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
281cdf0e10cSrcweir         {
282cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
283cdf0e10cSrcweir                 SwXMLExportMeta_getImplementationName(),
284cdf0e10cSrcweir                 SwXMLExportMeta_createInstance,
285cdf0e10cSrcweir                 SwXMLExportMeta_getSupportedServiceNames() );
286cdf0e10cSrcweir         }
287cdf0e10cSrcweir         else if( SwXMLExportSettings_getImplementationName().equalsAsciiL(
288cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
289cdf0e10cSrcweir         {
290cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
291cdf0e10cSrcweir                 SwXMLExportSettings_getImplementationName(),
292cdf0e10cSrcweir                 SwXMLExportSettings_createInstance,
293cdf0e10cSrcweir                 SwXMLExportSettings_getSupportedServiceNames() );
294cdf0e10cSrcweir         }
295cdf0e10cSrcweir         else if( SwXAutoTextContainer_getImplementationName().equalsAsciiL(
296cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
297cdf0e10cSrcweir         {
298cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
299cdf0e10cSrcweir                 SwXAutoTextContainer_getImplementationName(),
300cdf0e10cSrcweir                 SwXAutoTextContainer_createInstance,
301cdf0e10cSrcweir                 SwXAutoTextContainer_getSupportedServiceNames() );
302cdf0e10cSrcweir         }
303cdf0e10cSrcweir         else if( SwXModule_getImplementationName().equalsAsciiL(
304cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
305cdf0e10cSrcweir         {
306cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
307cdf0e10cSrcweir                 SwXModule_getImplementationName(),
308cdf0e10cSrcweir                 SwXModule_createInstance,
309cdf0e10cSrcweir                 SwXModule_getSupportedServiceNames() );
310cdf0e10cSrcweir         }
311cdf0e10cSrcweir         else if( SwXMailMerge_getImplementationName().equalsAsciiL(
312cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
313cdf0e10cSrcweir         {
314cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
315cdf0e10cSrcweir                 SwXMailMerge_getImplementationName(),
316cdf0e10cSrcweir                 SwXMailMerge_createInstance,
317cdf0e10cSrcweir                 SwXMailMerge_getSupportedServiceNames() );
318cdf0e10cSrcweir         }
319cdf0e10cSrcweir         else if( SwXFilterOptions::getImplementationName_Static().equalsAsciiL(
320cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
321cdf0e10cSrcweir         {
322cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
323cdf0e10cSrcweir                 SwXFilterOptions::getImplementationName_Static(),
324cdf0e10cSrcweir                 SwXFilterOptions_createInstance,
325cdf0e10cSrcweir                 SwXFilterOptions::getSupportedServiceNames_Static() );
326cdf0e10cSrcweir         }
327cdf0e10cSrcweir         else if( SwTextDocument_getImplementationName().equalsAsciiL(
328cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
329cdf0e10cSrcweir         {
330cdf0e10cSrcweir             xFactory = ::sfx2::createSfxModelFactory( xMSF,
331cdf0e10cSrcweir                 SwTextDocument_getImplementationName(),
332cdf0e10cSrcweir                 SwTextDocument_createInstance,
333cdf0e10cSrcweir                 SwTextDocument_getSupportedServiceNames() );
334cdf0e10cSrcweir         }
335cdf0e10cSrcweir         else if( SwWebDocument_getImplementationName().equalsAsciiL(
336cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
337cdf0e10cSrcweir         {
338cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
339cdf0e10cSrcweir                 SwWebDocument_getImplementationName(),
340cdf0e10cSrcweir                 SwWebDocument_createInstance,
341cdf0e10cSrcweir                 SwWebDocument_getSupportedServiceNames() );
342cdf0e10cSrcweir         }
343cdf0e10cSrcweir         else if( SwGlobalDocument_getImplementationName().equalsAsciiL(
344cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
345cdf0e10cSrcweir         {
346cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
347cdf0e10cSrcweir                 SwGlobalDocument_getImplementationName(),
348cdf0e10cSrcweir                 SwGlobalDocument_createInstance,
349cdf0e10cSrcweir                 SwGlobalDocument_getSupportedServiceNames() );
350cdf0e10cSrcweir         }
351cdf0e10cSrcweir         else if( SwUnoModule_getImplementationName().equalsAsciiL(
352cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
353cdf0e10cSrcweir         {
354cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory( xMSF,
355cdf0e10cSrcweir                 SwUnoModule_getImplementationName(),
356cdf0e10cSrcweir                 SwUnoModule_createInstance,
357cdf0e10cSrcweir                 SwUnoModule_getSupportedServiceNames() );
358cdf0e10cSrcweir         }
359*ff0525f2SOliver-Rainer Wittmann         else if ( ::sw::sidebar::SwPanelFactory::getImplementationName().equalsAsciiL( pImplName, nImplNameLen ) )
360*ff0525f2SOliver-Rainer Wittmann         {
361*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
362*ff0525f2SOliver-Rainer Wittmann                 ::sw::sidebar::SwPanelFactory::getImplementationName(),
363*ff0525f2SOliver-Rainer Wittmann                 ::sw::sidebar::SwPanelFactory::createInstance,
364*ff0525f2SOliver-Rainer Wittmann                 ::sw::sidebar::SwPanelFactory::getSupportedServiceNames() );
365*ff0525f2SOliver-Rainer Wittmann         }
366cdf0e10cSrcweir         else if( comp_FinalThreadManager::_getImplementationName().equalsAsciiL(
367cdf0e10cSrcweir                                                     pImplName, nImplNameLen ) )
368cdf0e10cSrcweir         {
369cdf0e10cSrcweir             pRet = ::cppu::component_getFactoryHelper(
370cdf0e10cSrcweir                         pImplName, pServiceManager, pRegistryKey, entries);
371cdf0e10cSrcweir         }
372cdf0e10cSrcweir 
373cdf0e10cSrcweir         if( xFactory.is())
374cdf0e10cSrcweir         {
375cdf0e10cSrcweir             xFactory->acquire();
376cdf0e10cSrcweir             pRet = xFactory.get();
377cdf0e10cSrcweir         }
378cdf0e10cSrcweir     }
379cdf0e10cSrcweir     return pRet;
380cdf0e10cSrcweir }
381cdf0e10cSrcweir 
382cdf0e10cSrcweir #ifdef __cplusplus
383cdf0e10cSrcweir }
384cdf0e10cSrcweir #endif
385