xref: /aoo41x/main/sw/source/ui/uno/unofreg.cxx (revision ff0525f2)
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
10efeef26fSAndrew Rist  *
11efeef26fSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12efeef26fSAndrew Rist  *
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.
19efeef26fSAndrew Rist  *
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(
147*ff0525f2SOliver-Rainer Wittmann         const sal_Char ** ppEnvTypeName,
148cdf0e10cSrcweir         uno_Environment ** /*ppEnv*/ )
149cdf0e10cSrcweir {
150*ff0525f2SOliver-Rainer Wittmann     *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(
162*ff0525f2SOliver-Rainer Wittmann     const sal_Char * pImplName,
163*ff0525f2SOliver-Rainer Wittmann     void * pServiceManager,
164cdf0e10cSrcweir     void * pRegistryKey )
165cdf0e10cSrcweir {
166*ff0525f2SOliver-Rainer Wittmann     void * pRet = 0;
167*ff0525f2SOliver-Rainer Wittmann     if( pServiceManager )
168*ff0525f2SOliver-Rainer Wittmann     {
169*ff0525f2SOliver-Rainer Wittmann         uno::Reference< XMultiServiceFactory > xMSF(
170*ff0525f2SOliver-Rainer Wittmann             reinterpret_cast< XMultiServiceFactory * >( pServiceManager ) );
171cdf0e10cSrcweir 
172*ff0525f2SOliver-Rainer Wittmann         uno::Reference< XSingleServiceFactory > xFactory;
173cdf0e10cSrcweir 
174*ff0525f2SOliver-Rainer Wittmann         const sal_Int32 nImplNameLen = strlen( pImplName );
175*ff0525f2SOliver-Rainer Wittmann         if( SwXMLImport_getImplementationName().equalsAsciiL( pImplName,
176*ff0525f2SOliver-Rainer Wittmann                                                               nImplNameLen ) )
177*ff0525f2SOliver-Rainer Wittmann         {
178*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
179*ff0525f2SOliver-Rainer Wittmann                 SwXMLImport_getImplementationName(),
180*ff0525f2SOliver-Rainer Wittmann                 SwXMLImport_createInstance,
181*ff0525f2SOliver-Rainer Wittmann                 SwXMLImport_getSupportedServiceNames() );
182*ff0525f2SOliver-Rainer Wittmann         }
183*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLImportStyles_getImplementationName().equalsAsciiL(
184*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
185*ff0525f2SOliver-Rainer Wittmann         {
186*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
187*ff0525f2SOliver-Rainer Wittmann                 SwXMLImportStyles_getImplementationName(),
188*ff0525f2SOliver-Rainer Wittmann                 SwXMLImportStyles_createInstance,
189*ff0525f2SOliver-Rainer Wittmann                 SwXMLImportStyles_getSupportedServiceNames() );
190*ff0525f2SOliver-Rainer Wittmann         }
191*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLImportContent_getImplementationName().equalsAsciiL(
192*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
193*ff0525f2SOliver-Rainer Wittmann         {
194*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
195*ff0525f2SOliver-Rainer Wittmann                 SwXMLImportContent_getImplementationName(),
196*ff0525f2SOliver-Rainer Wittmann                 SwXMLImportContent_createInstance,
197*ff0525f2SOliver-Rainer Wittmann                 SwXMLImportContent_getSupportedServiceNames() );
198*ff0525f2SOliver-Rainer Wittmann         }
199*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLImportMeta_getImplementationName().equalsAsciiL(
200*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
201*ff0525f2SOliver-Rainer Wittmann         {
202*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
203*ff0525f2SOliver-Rainer Wittmann                 SwXMLImportMeta_getImplementationName(),
204*ff0525f2SOliver-Rainer Wittmann                 SwXMLImportMeta_createInstance,
205*ff0525f2SOliver-Rainer Wittmann                 SwXMLImportMeta_getSupportedServiceNames() );
206*ff0525f2SOliver-Rainer Wittmann         }
207*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLImportSettings_getImplementationName().equalsAsciiL(
208*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
209*ff0525f2SOliver-Rainer Wittmann         {
210*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
211*ff0525f2SOliver-Rainer Wittmann                 SwXMLImportSettings_getImplementationName(),
212*ff0525f2SOliver-Rainer Wittmann                 SwXMLImportSettings_createInstance,
213*ff0525f2SOliver-Rainer Wittmann                 SwXMLImportSettings_getSupportedServiceNames() );
214*ff0525f2SOliver-Rainer Wittmann         }
215*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLExportOOO_getImplementationName().equalsAsciiL( pImplName,
216*ff0525f2SOliver-Rainer Wittmann                                                             nImplNameLen ) )
217*ff0525f2SOliver-Rainer Wittmann         {
218*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
219*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportOOO_getImplementationName(),
220*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportOOO_createInstance,
221*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportOOO_getSupportedServiceNames() );
222*ff0525f2SOliver-Rainer Wittmann         }
223*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLExportStylesOOO_getImplementationName().equalsAsciiL(
224*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
225*ff0525f2SOliver-Rainer Wittmann         {
226*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
227*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportStylesOOO_getImplementationName(),
228*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportStylesOOO_createInstance,
229*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportStylesOOO_getSupportedServiceNames() );
230*ff0525f2SOliver-Rainer Wittmann         }
231*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLExportContentOOO_getImplementationName().equalsAsciiL(
232*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
233*ff0525f2SOliver-Rainer Wittmann         {
234*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
235*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportContentOOO_getImplementationName(),
236*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportContentOOO_createInstance,
237*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportContentOOO_getSupportedServiceNames() );
238*ff0525f2SOliver-Rainer Wittmann         }
239*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLExportMetaOOO_getImplementationName().equalsAsciiL(
240*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
241*ff0525f2SOliver-Rainer Wittmann         {
242*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
243*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportMetaOOO_getImplementationName(),
244*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportMetaOOO_createInstance,
245*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportMetaOOO_getSupportedServiceNames() );
246*ff0525f2SOliver-Rainer Wittmann         }
247*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLExportSettingsOOO_getImplementationName().equalsAsciiL(
248*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
249*ff0525f2SOliver-Rainer Wittmann         {
250*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
251*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportSettingsOOO_getImplementationName(),
252*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportSettingsOOO_createInstance,
253*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportSettingsOOO_getSupportedServiceNames() );
254*ff0525f2SOliver-Rainer Wittmann         }
255*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLExport_getImplementationName().equalsAsciiL( pImplName,
256*ff0525f2SOliver-Rainer Wittmann                                                             nImplNameLen ) )
257*ff0525f2SOliver-Rainer Wittmann         {
258*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
259*ff0525f2SOliver-Rainer Wittmann                 SwXMLExport_getImplementationName(),
260*ff0525f2SOliver-Rainer Wittmann                 SwXMLExport_createInstance,
261*ff0525f2SOliver-Rainer Wittmann                 SwXMLExport_getSupportedServiceNames() );
262*ff0525f2SOliver-Rainer Wittmann         }
263*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLExportStyles_getImplementationName().equalsAsciiL(
264*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
265*ff0525f2SOliver-Rainer Wittmann         {
266*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
267*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportStyles_getImplementationName(),
268*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportStyles_createInstance,
269*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportStyles_getSupportedServiceNames() );
270*ff0525f2SOliver-Rainer Wittmann         }
271*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLExportContent_getImplementationName().equalsAsciiL(
272*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
273*ff0525f2SOliver-Rainer Wittmann         {
274*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
275*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportContent_getImplementationName(),
276*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportContent_createInstance,
277*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportContent_getSupportedServiceNames() );
278*ff0525f2SOliver-Rainer Wittmann         }
279*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLExportMeta_getImplementationName().equalsAsciiL(
280*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
281*ff0525f2SOliver-Rainer Wittmann         {
282*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
283*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportMeta_getImplementationName(),
284*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportMeta_createInstance,
285*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportMeta_getSupportedServiceNames() );
286*ff0525f2SOliver-Rainer Wittmann         }
287*ff0525f2SOliver-Rainer Wittmann         else if( SwXMLExportSettings_getImplementationName().equalsAsciiL(
288*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
289*ff0525f2SOliver-Rainer Wittmann         {
290*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
291*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportSettings_getImplementationName(),
292*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportSettings_createInstance,
293*ff0525f2SOliver-Rainer Wittmann                 SwXMLExportSettings_getSupportedServiceNames() );
294*ff0525f2SOliver-Rainer Wittmann         }
295cdf0e10cSrcweir         else if( SwXAutoTextContainer_getImplementationName().equalsAsciiL(
296*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
297*ff0525f2SOliver-Rainer Wittmann         {
298*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
299cdf0e10cSrcweir                 SwXAutoTextContainer_getImplementationName(),
300cdf0e10cSrcweir                 SwXAutoTextContainer_createInstance,
301cdf0e10cSrcweir                 SwXAutoTextContainer_getSupportedServiceNames() );
302*ff0525f2SOliver-Rainer Wittmann         }
303cdf0e10cSrcweir         else if( SwXModule_getImplementationName().equalsAsciiL(
304*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
305*ff0525f2SOliver-Rainer Wittmann         {
306*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
307cdf0e10cSrcweir                 SwXModule_getImplementationName(),
308cdf0e10cSrcweir                 SwXModule_createInstance,
309cdf0e10cSrcweir                 SwXModule_getSupportedServiceNames() );
310*ff0525f2SOliver-Rainer Wittmann         }
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(
320*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
321*ff0525f2SOliver-Rainer Wittmann         {
322*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
323cdf0e10cSrcweir                 SwXFilterOptions::getImplementationName_Static(),
324cdf0e10cSrcweir                 SwXFilterOptions_createInstance,
325cdf0e10cSrcweir                 SwXFilterOptions::getSupportedServiceNames_Static() );
326*ff0525f2SOliver-Rainer Wittmann         }
327cdf0e10cSrcweir         else if( SwTextDocument_getImplementationName().equalsAsciiL(
328*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
329*ff0525f2SOliver-Rainer Wittmann         {
330*ff0525f2SOliver-Rainer Wittmann             xFactory = ::sfx2::createSfxModelFactory( xMSF,
331cdf0e10cSrcweir                 SwTextDocument_getImplementationName(),
332cdf0e10cSrcweir                 SwTextDocument_createInstance,
333cdf0e10cSrcweir                 SwTextDocument_getSupportedServiceNames() );
334*ff0525f2SOliver-Rainer Wittmann         }
335cdf0e10cSrcweir         else if( SwWebDocument_getImplementationName().equalsAsciiL(
336*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
337*ff0525f2SOliver-Rainer Wittmann         {
338*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
339cdf0e10cSrcweir                 SwWebDocument_getImplementationName(),
340cdf0e10cSrcweir                 SwWebDocument_createInstance,
341cdf0e10cSrcweir                 SwWebDocument_getSupportedServiceNames() );
342*ff0525f2SOliver-Rainer Wittmann         }
343cdf0e10cSrcweir         else if( SwGlobalDocument_getImplementationName().equalsAsciiL(
344*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
345*ff0525f2SOliver-Rainer Wittmann         {
346*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
347cdf0e10cSrcweir                 SwGlobalDocument_getImplementationName(),
348cdf0e10cSrcweir                 SwGlobalDocument_createInstance,
349cdf0e10cSrcweir                 SwGlobalDocument_getSupportedServiceNames() );
350*ff0525f2SOliver-Rainer Wittmann         }
351cdf0e10cSrcweir         else if( SwUnoModule_getImplementationName().equalsAsciiL(
352*ff0525f2SOliver-Rainer Wittmann                                                     pImplName, nImplNameLen ) )
353*ff0525f2SOliver-Rainer Wittmann         {
354*ff0525f2SOliver-Rainer Wittmann             xFactory = ::cppu::createSingleFactory( xMSF,
355cdf0e10cSrcweir                 SwUnoModule_getImplementationName(),
356cdf0e10cSrcweir                 SwUnoModule_createInstance,
357cdf0e10cSrcweir                 SwUnoModule_getSupportedServiceNames() );
358*ff0525f2SOliver-Rainer Wittmann         }
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())
374*ff0525f2SOliver-Rainer Wittmann         {
375*ff0525f2SOliver-Rainer Wittmann             xFactory->acquire();
376*ff0525f2SOliver-Rainer Wittmann             pRet = xFactory.get();
377*ff0525f2SOliver-Rainer Wittmann         }
378*ff0525f2SOliver-Rainer Wittmann     }
379*ff0525f2SOliver-Rainer Wittmann     return pRet;
380cdf0e10cSrcweir }
381cdf0e10cSrcweir 
382cdf0e10cSrcweir #ifdef __cplusplus
383cdf0e10cSrcweir }
384cdf0e10cSrcweir #endif
385