Version 3.6.0.2, tag libreoffice-3.6.0.2
[LibreOffice.git] / toolkit / source / helper / registerservices.cxx
blob3bb9ae67f13e09ebc661cd36c1eb85d9c29c7fb7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
30 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
31 #include <com/sun/star/registry/XRegistryKey.hpp>
32 #include <toolkit/controls/geometrycontrolmodel.hxx>
33 #include <cppuhelper/factory.hxx>
34 #include <cppuhelper/weak.hxx>
35 #include <osl/mutex.hxx>
36 #include <toolkit/helper/servicenames.hxx>
37 #include <toolkit/helper/macros.hxx>
38 #include <toolkit/awt/vclxtoolkit.hxx>
39 #include <toolkit/awt/vclxmenu.hxx>
40 #include <toolkit/awt/vclxpointer.hxx>
41 #include <toolkit/awt/vclxprinter.hxx>
42 #include <toolkit/controls/unocontrols.hxx>
43 #include <toolkit/controls/dialogcontrol.hxx>
44 #include <toolkit/controls/unocontrolcontainer.hxx>
45 #include <toolkit/controls/unocontrolcontainermodel.hxx>
46 #include <toolkit/controls/stdtabcontroller.hxx>
47 #include <toolkit/controls/stdtabcontrollermodel.hxx>
48 #include <toolkit/controls/formattedcontrol.hxx>
49 #include <toolkit/controls/roadmapcontrol.hxx>
50 #include <toolkit/controls/tkscrollbar.hxx>
51 #include "toolkit/controls/tkspinbutton.hxx"
52 #include <toolkit/controls/tksimpleanimation.hxx>
53 #include <toolkit/controls/tkthrobber.hxx>
54 #include <toolkit/controls/animatedimages.hxx>
55 #include <toolkit/controls/spinningprogress.hxx>
56 #include <toolkit/controls/dialogcontrol.hxx>
57 #include <toolkit/controls/tabpagemodel.hxx>
58 #include <toolkit/controls/tabpagecontainer.hxx>
59 #include "toolkit/dllapi.h"
60 #include <com/sun/star/beans/XPropertySet.hpp>
61 #include <com/sun/star/uno/XComponentContext.hpp>
63 namespace toolkit
65 using namespace ::com::sun::star::uno;
66 using namespace ::com::sun::star::lang;
67 using namespace ::com::sun::star::registry;
69 //.........................................................................
70 void* tryCreateFactory( const sal_Char* _pRequiredImplName, const sal_Char* _pComponentImplName,
71 const sal_Char* _pAsciiServiceName1, const sal_Char* _pAsciiServiceName2,
72 ::cppu::ComponentInstantiation _pInstantiation, const Reference< XMultiServiceFactory >& _rxServiceFactory )
74 void* pReturn = NULL;
76 if ( rtl_str_compare( _pRequiredImplName, _pComponentImplName ) == 0 )
78 Sequence< ::rtl::OUString > aServiceNames( _pAsciiServiceName2 ? 2 : 1 );
79 aServiceNames.getArray()[ 0 ] = ::rtl::OUString::createFromAscii( _pAsciiServiceName1 );
80 if ( _pAsciiServiceName2 )
81 aServiceNames.getArray()[ 1 ] = ::rtl::OUString::createFromAscii( _pAsciiServiceName2 );
82 Reference< XSingleServiceFactory > xFactory( ::cppu::createSingleFactory(
83 _rxServiceFactory, ::rtl::OUString::createFromAscii( _pComponentImplName ),
84 _pInstantiation, aServiceNames
85 ) );
86 if ( xFactory.is() )
88 xFactory->acquire();
89 pReturn = xFactory.get();
93 return pReturn;
99 #define IMPL_CREATEINSTANCE( ImplName ) \
100 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ImplName##_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& ) \
101 { return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new ImplName ); }
103 #define IMPL_CREATEINSTANCE2( ImplName ) \
104 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ImplName##_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory ) \
105 { return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new ImplName( i_factory ) ); }
107 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL UnoControlDialogModel_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory )
109 return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new OGeometryControlModel<UnoControlDialogModel>( i_factory ) );
112 #define GET_FACTORY_WITH_IMPL_PREFIX( ClassName, ImplNamePrefix, ServiceName1, ServiceName2 ) \
113 pRet = tryCreateFactory( sImplementationName, ImplNamePrefix "." #ClassName, \
114 ServiceName1, ServiceName2, \
115 ClassName##_CreateInstance, xServiceFactory \
116 ); \
117 if ( pRet ) \
118 return pRet; \
120 #define GET_FACTORY( ImplName, ServiceName1, ServiceName2 ) \
121 GET_FACTORY_WITH_IMPL_PREFIX( ImplName, "stardiv.Toolkit", ServiceName1, ServiceName2 )
123 using namespace toolkit;
125 IMPL_CREATEINSTANCE2( VCLXToolkit )
126 IMPL_CREATEINSTANCE( StdTabController )
127 IMPL_CREATEINSTANCE( StdTabControllerModel )
128 IMPL_CREATEINSTANCE2( UnoButtonControl )
129 IMPL_CREATEINSTANCE2( UnoCheckBoxControl )
130 IMPL_CREATEINSTANCE2( UnoComboBoxControl )
131 IMPL_CREATEINSTANCE2( UnoControlButtonModel )
132 IMPL_CREATEINSTANCE2( UnoControlCheckBoxModel )
133 IMPL_CREATEINSTANCE2( UnoControlComboBoxModel )
134 IMPL_CREATEINSTANCE2( UnoControlContainer )
135 IMPL_CREATEINSTANCE2( UnoControlContainerModel )
136 IMPL_CREATEINSTANCE2( UnoControlCurrencyFieldModel )
137 IMPL_CREATEINSTANCE2( UnoControlDateFieldModel )
138 IMPL_CREATEINSTANCE2( UnoControlEditModel )
139 IMPL_CREATEINSTANCE2( UnoControlFileControlModel )
140 IMPL_CREATEINSTANCE2( UnoControlFixedHyperlinkModel )
141 IMPL_CREATEINSTANCE2( UnoControlFixedTextModel )
142 IMPL_CREATEINSTANCE2( UnoControlFormattedFieldModel )
143 IMPL_CREATEINSTANCE2( UnoControlGroupBoxModel )
144 IMPL_CREATEINSTANCE2( UnoControlImageControlModel )
145 IMPL_CREATEINSTANCE2( UnoControlListBoxModel )
146 IMPL_CREATEINSTANCE2( UnoControlNumericFieldModel )
147 IMPL_CREATEINSTANCE2( UnoControlPatternFieldModel )
148 IMPL_CREATEINSTANCE2( UnoControlRadioButtonModel )
149 IMPL_CREATEINSTANCE2( UnoControlTimeFieldModel )
150 IMPL_CREATEINSTANCE2( UnoControlProgressBarModel )
151 IMPL_CREATEINSTANCE2( UnoControlScrollBarModel )
152 IMPL_CREATEINSTANCE2( UnoSpinButtonModel )
153 IMPL_CREATEINSTANCE2( UnoMultiPageModel )
154 IMPL_CREATEINSTANCE2( UnoPageModel )
155 IMPL_CREATEINSTANCE2( UnoFrameModel )
156 IMPL_CREATEINSTANCE2( UnoControlFixedLineModel )
157 IMPL_CREATEINSTANCE2( UnoCurrencyFieldControl )
158 IMPL_CREATEINSTANCE2( UnoDateFieldControl )
159 IMPL_CREATEINSTANCE2( UnoDialogControl )
160 IMPL_CREATEINSTANCE2( UnoEditControl )
161 IMPL_CREATEINSTANCE2( UnoFileControl )
162 IMPL_CREATEINSTANCE2( UnoFixedHyperlinkControl )
163 IMPL_CREATEINSTANCE2( UnoFixedTextControl )
164 IMPL_CREATEINSTANCE2( UnoFormattedFieldControl )
165 IMPL_CREATEINSTANCE2( UnoGroupBoxControl )
166 IMPL_CREATEINSTANCE2( UnoImageControlControl )
167 IMPL_CREATEINSTANCE2( UnoListBoxControl )
168 IMPL_CREATEINSTANCE2( UnoNumericFieldControl )
169 IMPL_CREATEINSTANCE2( UnoPatternFieldControl )
170 IMPL_CREATEINSTANCE2( UnoRadioButtonControl )
171 IMPL_CREATEINSTANCE2( UnoTimeFieldControl )
172 IMPL_CREATEINSTANCE2( UnoProgressBarControl )
173 IMPL_CREATEINSTANCE2( UnoScrollBarControl )
174 IMPL_CREATEINSTANCE2( UnoSpinButtonControl )
175 IMPL_CREATEINSTANCE2( UnoFixedLineControl )
176 IMPL_CREATEINSTANCE2( UnoMultiPageControl )
177 IMPL_CREATEINSTANCE2( UnoPageControl )
178 IMPL_CREATEINSTANCE2( UnoFrameControl )
179 IMPL_CREATEINSTANCE( VCLXMenuBar )
180 IMPL_CREATEINSTANCE( VCLXPointer )
181 IMPL_CREATEINSTANCE( VCLXPopupMenu )
182 IMPL_CREATEINSTANCE( VCLXPrinterServer )
183 IMPL_CREATEINSTANCE2( UnoRoadmapControl )
184 IMPL_CREATEINSTANCE2( UnoControlRoadmapModel )
185 IMPL_CREATEINSTANCE2( UnoSimpleAnimationControl )
186 IMPL_CREATEINSTANCE2( UnoSimpleAnimationControlModel )
187 IMPL_CREATEINSTANCE2( UnoThrobberControl )
188 IMPL_CREATEINSTANCE2( UnoThrobberControlModel )
189 IMPL_CREATEINSTANCE2( UnoControlTabPage )
190 IMPL_CREATEINSTANCE2( UnoControlTabPageModel )
191 IMPL_CREATEINSTANCE2( UnoControlTabPageContainer )
192 IMPL_CREATEINSTANCE2( UnoControlTabPageContainerModel )
193 IMPL_CREATEINSTANCE2( AnimatedImagesControl )
194 IMPL_CREATEINSTANCE2( AnimatedImagesControlModel )
195 IMPL_CREATEINSTANCE2( SpinningProgressControlModel )
197 extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL TreeControl_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
198 extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL TreeControlModel_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
199 extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL MutableTreeDataModel_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
200 extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL GridControl_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
201 extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL GridControlModel_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
202 extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL DefaultGridDataModel_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
203 extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL DefaultGridColumnModel_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
204 extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL GridColumn_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
205 extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SortableGridDataModel_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
207 extern void * SAL_CALL comp_AsyncCallback_component_getFactory( const char * implName, void * serviceManager, void * registryKey );
209 extern "C"
212 TOOLKIT_DLLPUBLIC void* SAL_CALL tk_component_getFactory( const sal_Char* sImplementationName, void* _pServiceManager, void* _pRegistryKey )
214 void* pRet = NULL;
216 if ( _pServiceManager )
218 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory =
219 static_cast< ::com::sun::star::lang::XMultiServiceFactory* >( _pServiceManager );
220 GET_FACTORY( VCLXToolkit, szServiceName_Toolkit, szServiceName2_Toolkit )
221 GET_FACTORY( VCLXPopupMenu, szServiceName_PopupMenu, szServiceName2_PopupMenu )
222 GET_FACTORY( VCLXMenuBar, szServiceName_MenuBar, szServiceName2_MenuBar )
223 GET_FACTORY( VCLXPointer, szServiceName_Pointer, szServiceName2_Pointer )
224 GET_FACTORY( UnoControlContainer, szServiceName_UnoControlContainer, szServiceName2_UnoControlContainer )
225 GET_FACTORY( UnoControlContainerModel, szServiceName_UnoControlContainerModel, szServiceName2_UnoControlContainerModel )
226 GET_FACTORY( StdTabController, szServiceName_TabController, szServiceName2_TabController )
227 GET_FACTORY( StdTabControllerModel, szServiceName_TabControllerModel, szServiceName2_TabControllerModel )
228 GET_FACTORY( UnoDialogControl, szServiceName_UnoControlDialog, szServiceName2_UnoControlDialog )
229 GET_FACTORY( UnoControlDialogModel, szServiceName_UnoControlDialogModel, szServiceName2_UnoControlDialogModel )
230 GET_FACTORY( UnoEditControl, szServiceName_UnoControlEdit, szServiceName2_UnoControlEdit )
231 GET_FACTORY( UnoControlEditModel, szServiceName_UnoControlEditModel, szServiceName2_UnoControlEditModel )
232 GET_FACTORY( UnoDateFieldControl, szServiceName_UnoControlDateField, szServiceName2_UnoControlDateField )
233 GET_FACTORY( UnoControlDateFieldModel, szServiceName_UnoControlDateFieldModel, szServiceName2_UnoControlDateFieldModel )
234 GET_FACTORY( UnoTimeFieldControl, szServiceName_UnoControlTimeField, szServiceName2_UnoControlTimeField )
235 GET_FACTORY( UnoControlTimeFieldModel, szServiceName_UnoControlTimeFieldModel, szServiceName2_UnoControlTimeFieldModel )
236 GET_FACTORY( UnoNumericFieldControl, szServiceName_UnoControlNumericField, szServiceName2_UnoControlNumericField )
237 GET_FACTORY( UnoControlNumericFieldModel, szServiceName_UnoControlNumericFieldModel, szServiceName2_UnoControlNumericFieldModel )
238 GET_FACTORY( UnoCurrencyFieldControl, szServiceName_UnoControlCurrencyField, szServiceName2_UnoControlCurrencyField )
239 GET_FACTORY( UnoControlCurrencyFieldModel, szServiceName_UnoControlCurrencyFieldModel, szServiceName2_UnoControlCurrencyFieldModel )
240 GET_FACTORY( UnoPatternFieldControl, szServiceName_UnoControlPatternField, szServiceName2_UnoControlPatternField )
241 GET_FACTORY( UnoControlPatternFieldModel, szServiceName_UnoControlPatternFieldModel, szServiceName2_UnoControlPatternFieldModel )
242 GET_FACTORY( UnoFormattedFieldControl, szServiceName_UnoControlFormattedField, szServiceName2_UnoControlFormattedField )
243 GET_FACTORY( UnoControlFormattedFieldModel, szServiceName_UnoControlFormattedFieldModel, szServiceName2_UnoControlFormattedFieldModel )
244 GET_FACTORY( UnoFileControl, szServiceName_UnoControlFileControl, szServiceName2_UnoControlFileControl )
245 GET_FACTORY( UnoControlFileControlModel, szServiceName_UnoControlFileControlModel, szServiceName2_UnoControlFileControlModel )
246 GET_FACTORY( UnoButtonControl, szServiceName_UnoControlButton, szServiceName2_UnoControlButton )
247 GET_FACTORY( UnoControlButtonModel, szServiceName_UnoControlButtonModel, szServiceName2_UnoControlButtonModel )
248 GET_FACTORY( UnoImageControlControl, szServiceName_UnoControlImageButton, szServiceName2_UnoControlImageButton )
249 GET_FACTORY( UnoControlImageControlModel, szServiceName_UnoControlImageButtonModel, szServiceName2_UnoControlImageButtonModel )
250 GET_FACTORY( UnoImageControlControl, szServiceName_UnoControlImageControl, szServiceName2_UnoControlImageControl )
251 GET_FACTORY( UnoControlImageControlModel, szServiceName_UnoControlImageControlModel, szServiceName2_UnoControlImageControlModel )
252 GET_FACTORY( UnoRadioButtonControl, szServiceName_UnoControlRadioButton, szServiceName2_UnoControlRadioButton )
253 GET_FACTORY( UnoControlRadioButtonModel, szServiceName_UnoControlRadioButtonModel, szServiceName2_UnoControlRadioButtonModel )
254 GET_FACTORY( UnoCheckBoxControl, szServiceName_UnoControlCheckBox, szServiceName2_UnoControlCheckBox )
255 GET_FACTORY( UnoControlCheckBoxModel, szServiceName_UnoControlCheckBoxModel, szServiceName2_UnoControlCheckBoxModel )
256 GET_FACTORY( UnoListBoxControl, szServiceName_UnoControlListBox, szServiceName2_UnoControlListBox )
257 GET_FACTORY( UnoControlListBoxModel, szServiceName_UnoControlListBoxModel, szServiceName2_UnoControlListBoxModel )
258 GET_FACTORY( UnoComboBoxControl, szServiceName_UnoControlComboBox, szServiceName2_UnoControlComboBox )
259 GET_FACTORY( UnoControlComboBoxModel, szServiceName_UnoControlComboBoxModel, szServiceName2_UnoControlComboBoxModel )
260 GET_FACTORY( UnoFixedTextControl, szServiceName_UnoControlFixedText, szServiceName2_UnoControlFixedText )
261 GET_FACTORY( UnoControlFixedTextModel, szServiceName_UnoControlFixedTextModel, szServiceName2_UnoControlFixedTextModel )
262 GET_FACTORY( UnoGroupBoxControl, szServiceName_UnoControlGroupBox, szServiceName2_UnoControlGroupBox )
263 GET_FACTORY( UnoControlGroupBoxModel, szServiceName_UnoControlGroupBoxModel, szServiceName2_UnoControlGroupBoxModel )
264 GET_FACTORY( UnoProgressBarControl, szServiceName_UnoControlProgressBar, szServiceName2_UnoControlProgressBar )
265 GET_FACTORY( UnoControlProgressBarModel, szServiceName_UnoControlProgressBarModel, szServiceName2_UnoControlProgressBarModel )
266 GET_FACTORY( UnoScrollBarControl, szServiceName_UnoControlScrollBar, szServiceName2_UnoControlScrollBar )
267 GET_FACTORY( UnoControlScrollBarModel, szServiceName_UnoControlScrollBarModel, szServiceName2_UnoControlScrollBarModel )
268 GET_FACTORY( UnoFixedLineControl, szServiceName_UnoControlFixedLine, szServiceName2_UnoControlFixedLine )
269 GET_FACTORY( UnoControlFixedLineModel, szServiceName_UnoControlFixedLineModel, szServiceName2_UnoControlFixedLineModel )
270 GET_FACTORY( VCLXPrinterServer, szServiceName_PrinterServer, szServiceName2_PrinterServer )
271 GET_FACTORY( UnoRoadmapControl, szServiceName_UnoControlRoadmap, szServiceName2_UnoControlRoadmap )
272 GET_FACTORY( UnoControlRoadmapModel, szServiceName_UnoControlRoadmapModel, szServiceName2_UnoControlRoadmapModel )
273 GET_FACTORY( UnoMultiPageModel, szServiceName_UnoMultiPageModel, NULL )
274 GET_FACTORY( UnoMultiPageControl, szServiceName_UnoMultiPageControl, NULL )
275 GET_FACTORY( UnoPageModel, szServiceName_UnoPageModel, NULL )
276 GET_FACTORY( UnoPageControl, szServiceName_UnoPageControl, NULL )
277 GET_FACTORY( UnoFrameModel, szServiceName_UnoFrameModel, NULL )
278 GET_FACTORY( UnoFrameControl, szServiceName_UnoFrameControl, NULL )
279 GET_FACTORY( UnoSpinButtonModel, szServiceName_UnoSpinButtonModel, NULL )
280 GET_FACTORY( UnoSpinButtonControl, szServiceName_UnoSpinButtonControl, NULL )
281 GET_FACTORY( TreeControl, szServiceName_TreeControl, NULL )
282 GET_FACTORY( TreeControlModel, szServiceName_TreeControlModel, NULL )
283 GET_FACTORY( MutableTreeDataModel, szServiceName_MutableTreeDataModel, NULL )
284 GET_FACTORY( UnoSimpleAnimationControlModel, szServiceName_UnoSimpleAnimationControlModel, szServiceName2_UnoSimpleAnimationControlModel )
285 GET_FACTORY( UnoSimpleAnimationControl, szServiceName_UnoSimpleAnimationControl, szServiceName2_UnoSimpleAnimationControl )
286 GET_FACTORY( UnoThrobberControlModel, szServiceName_UnoThrobberControlModel, szServiceName2_UnoThrobberControlModel )
287 GET_FACTORY( UnoThrobberControl, szServiceName_UnoThrobberControl, szServiceName2_UnoThrobberControl )
288 GET_FACTORY( UnoFixedHyperlinkControl, szServiceName_UnoControlFixedHyperlink, NULL )
289 GET_FACTORY( UnoControlFixedHyperlinkModel, szServiceName_UnoControlFixedHyperlinkModel, NULL )
290 GET_FACTORY( GridControl, szServiceName_GridControl, NULL );
291 GET_FACTORY( GridControlModel, szServiceName_GridControlModel, NULL );
292 GET_FACTORY( DefaultGridDataModel, szServiceName_DefaultGridDataModel, NULL );
293 GET_FACTORY( DefaultGridColumnModel, szServiceName_DefaultGridColumnModel, NULL );
294 GET_FACTORY_WITH_IMPL_PREFIX( GridColumn, "org.openoffice.comp.toolkit", szServiceName_GridColumn, NULL );
295 GET_FACTORY_WITH_IMPL_PREFIX( SortableGridDataModel, "org.openoffice.comp.toolkit", szServiceName_SortableGridDataModel, NULL );
296 GET_FACTORY_WITH_IMPL_PREFIX( AnimatedImagesControl, "org.openoffice.comp.toolkit", szServiceName_AnimatedImagesControl, NULL )
297 GET_FACTORY_WITH_IMPL_PREFIX( AnimatedImagesControlModel, "org.openoffice.comp.toolkit", szServiceName_AnimatedImagesControlModel, NULL )
298 GET_FACTORY_WITH_IMPL_PREFIX( SpinningProgressControlModel, "org.openoffice.comp.toolkit", szServiceName_SpinningProgressControlModel, NULL )
299 GET_FACTORY( UnoControlTabPageModel, szServiceName_UnoControlTabPageModel, NULL )
300 GET_FACTORY( UnoControlTabPage, szServiceName_UnoControlTabPage, NULL )
301 GET_FACTORY( UnoControlTabPageContainerModel, szServiceName_UnoControlTabPageContainerModel, NULL )
302 GET_FACTORY( UnoControlTabPageContainer, szServiceName_UnoControlTabPageContainer, NULL )
304 if ( rtl_str_compare( sImplementationName, "com.sun.star.awt.comp.AsyncCallback" ) == 0 )
305 return comp_AsyncCallback_component_getFactory( sImplementationName, _pServiceManager, _pRegistryKey );
307 return pRet;
313 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */