fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / toolkit / source / helper / registerservices.cxx
blobf4e2bd242c07b230239da0873bdef5386d1c64f7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
21 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
22 #include <com/sun/star/registry/XRegistryKey.hpp>
23 #include <toolkit/controls/geometrycontrolmodel.hxx>
24 #include <comphelper/processfactory.hxx>
25 #include <cppuhelper/factory.hxx>
26 #include <cppuhelper/weak.hxx>
27 #include <osl/mutex.hxx>
28 #include <toolkit/helper/servicenames.hxx>
29 #include <toolkit/helper/macros.hxx>
30 #include <toolkit/awt/vclxtoolkit.hxx>
31 #include <toolkit/awt/vclxmenu.hxx>
32 #include <toolkit/awt/vclxpointer.hxx>
33 #include <toolkit/awt/vclxprinter.hxx>
34 #include <toolkit/controls/unocontrols.hxx>
35 #include <toolkit/controls/dialogcontrol.hxx>
36 #include <toolkit/controls/unocontrolcontainer.hxx>
37 #include <toolkit/controls/unocontrolcontainermodel.hxx>
38 #include <toolkit/controls/stdtabcontroller.hxx>
39 #include <toolkit/controls/stdtabcontrollermodel.hxx>
40 #include <toolkit/controls/formattedcontrol.hxx>
41 #include <toolkit/controls/roadmapcontrol.hxx>
42 #include <toolkit/controls/tkscrollbar.hxx>
43 #include "toolkit/controls/tkspinbutton.hxx"
44 #include <toolkit/controls/tksimpleanimation.hxx>
45 #include <toolkit/controls/tkthrobber.hxx>
46 #include <toolkit/controls/animatedimages.hxx>
47 #include <toolkit/controls/spinningprogress.hxx>
48 #include <toolkit/controls/tabpagemodel.hxx>
49 #include <toolkit/controls/tabpagecontainer.hxx>
50 #include "toolkit/dllapi.h"
51 #include <com/sun/star/beans/XPropertySet.hpp>
52 #include <com/sun/star/uno/XComponentContext.hpp>
54 namespace toolkit
56 using namespace ::com::sun::star::uno;
57 using namespace ::com::sun::star::lang;
58 using namespace ::com::sun::star::registry;
60 //.........................................................................
61 void* tryCreateFactory( const sal_Char* _pRequiredImplName, const sal_Char* _pComponentImplName,
62 const sal_Char* _pAsciiServiceName1, const sal_Char* _pAsciiServiceName2,
63 ::cppu::ComponentInstantiation _pInstantiation, const Reference< XMultiServiceFactory >& _rxServiceFactory )
65 void* pReturn = NULL;
67 if ( rtl_str_compare( _pRequiredImplName, _pComponentImplName ) == 0 )
69 Sequence< OUString > aServiceNames( _pAsciiServiceName2 ? 2 : 1 );
70 aServiceNames.getArray()[ 0 ] = OUString::createFromAscii( _pAsciiServiceName1 );
71 if ( _pAsciiServiceName2 )
72 aServiceNames.getArray()[ 1 ] = OUString::createFromAscii( _pAsciiServiceName2 );
73 Reference< XSingleServiceFactory > xFactory( ::cppu::createSingleFactory(
74 _rxServiceFactory, OUString::createFromAscii( _pComponentImplName ),
75 _pInstantiation, aServiceNames
76 ) );
77 if ( xFactory.is() )
79 xFactory->acquire();
80 pReturn = xFactory.get();
84 return pReturn;
90 #define IMPL_CREATEINSTANCE( ImplName ) \
91 ::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 >& ) \
92 { return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new ImplName ); }
94 #define IMPL_CREATEINSTANCE_CTX( ImplName ) \
95 ::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 ) \
96 { return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new ImplName( comphelper::getComponentContext(i_factory) ) ); }
98 #define IMPL_CREATE_INSTANCE_WITH_GEOMETRY( ImplName ) \
99 ::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 ) \
101 return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new OGeometryControlModel< ImplName >( comphelper::getComponentContext( i_factory ) ) ); \
104 #define GET_FACTORY_WITH_IMPL_PREFIX( ClassName, ImplNamePrefix, ServiceName1, ServiceName2 ) \
105 pRet = tryCreateFactory( sImplementationName, ImplNamePrefix "." #ClassName, \
106 ServiceName1, ServiceName2, \
107 ClassName##_CreateInstance, xServiceFactory \
108 ); \
109 if ( pRet ) \
110 return pRet; \
112 #define GET_FACTORY( ImplName, ServiceName1, ServiceName2 ) \
113 GET_FACTORY_WITH_IMPL_PREFIX( ImplName, "stardiv.Toolkit", ServiceName1, ServiceName2 )
115 using namespace toolkit;
117 IMPL_CREATEINSTANCE( VCLXToolkit )
118 IMPL_CREATEINSTANCE( StdTabController )
119 IMPL_CREATEINSTANCE( StdTabControllerModel )
120 IMPL_CREATEINSTANCE( UnoButtonControl )
121 IMPL_CREATEINSTANCE( UnoCheckBoxControl )
122 IMPL_CREATEINSTANCE( UnoComboBoxControl )
123 IMPL_CREATEINSTANCE_CTX( UnoControlButtonModel )
124 IMPL_CREATEINSTANCE_CTX( UnoControlCheckBoxModel )
125 IMPL_CREATEINSTANCE_CTX( UnoControlComboBoxModel )
126 IMPL_CREATEINSTANCE( UnoControlContainer )
127 IMPL_CREATEINSTANCE_CTX( UnoControlContainerModel )
128 IMPL_CREATEINSTANCE_CTX( UnoControlCurrencyFieldModel )
129 IMPL_CREATEINSTANCE_CTX( UnoControlDateFieldModel )
130 IMPL_CREATEINSTANCE_CTX( UnoControlEditModel )
131 IMPL_CREATEINSTANCE_CTX( UnoControlFileControlModel )
132 IMPL_CREATEINSTANCE_CTX( UnoControlFixedHyperlinkModel )
133 IMPL_CREATEINSTANCE_CTX( UnoControlFixedTextModel )
134 IMPL_CREATEINSTANCE_CTX( UnoControlFormattedFieldModel )
135 IMPL_CREATEINSTANCE_CTX( UnoControlGroupBoxModel )
136 IMPL_CREATEINSTANCE_CTX( UnoControlImageControlModel )
137 IMPL_CREATEINSTANCE_CTX( UnoControlListBoxModel )
138 IMPL_CREATEINSTANCE_CTX( UnoControlNumericFieldModel )
139 IMPL_CREATEINSTANCE_CTX( UnoControlPatternFieldModel )
140 IMPL_CREATEINSTANCE_CTX( UnoControlRadioButtonModel )
141 IMPL_CREATEINSTANCE_CTX( UnoControlTimeFieldModel )
142 IMPL_CREATEINSTANCE_CTX( UnoControlProgressBarModel )
143 IMPL_CREATEINSTANCE_CTX( UnoControlScrollBarModel )
144 IMPL_CREATEINSTANCE_CTX( UnoSpinButtonModel )
145 IMPL_CREATEINSTANCE_CTX( UnoMultiPageModel )
146 IMPL_CREATEINSTANCE_CTX( UnoPageModel )
147 IMPL_CREATEINSTANCE_CTX( UnoFrameModel )
148 IMPL_CREATEINSTANCE_CTX( UnoControlFixedLineModel )
149 IMPL_CREATEINSTANCE( UnoCurrencyFieldControl )
150 IMPL_CREATEINSTANCE( UnoDateFieldControl )
151 IMPL_CREATEINSTANCE_CTX( UnoDialogControl )
152 IMPL_CREATEINSTANCE( UnoEditControl )
153 IMPL_CREATEINSTANCE( UnoFileControl )
154 IMPL_CREATEINSTANCE( UnoFixedHyperlinkControl )
155 IMPL_CREATEINSTANCE( UnoFixedTextControl )
156 IMPL_CREATEINSTANCE( UnoFormattedFieldControl )
157 IMPL_CREATEINSTANCE( UnoGroupBoxControl )
158 IMPL_CREATEINSTANCE( UnoImageControlControl )
159 IMPL_CREATEINSTANCE( UnoListBoxControl )
160 IMPL_CREATEINSTANCE( UnoNumericFieldControl )
161 IMPL_CREATEINSTANCE( UnoPatternFieldControl )
162 IMPL_CREATEINSTANCE( UnoRadioButtonControl )
163 IMPL_CREATEINSTANCE( UnoTimeFieldControl )
164 IMPL_CREATEINSTANCE( UnoProgressBarControl )
165 IMPL_CREATEINSTANCE( UnoScrollBarControl )
166 IMPL_CREATEINSTANCE( UnoSpinButtonControl )
167 IMPL_CREATEINSTANCE( UnoFixedLineControl )
168 IMPL_CREATEINSTANCE_CTX( UnoMultiPageControl )
169 IMPL_CREATEINSTANCE_CTX( UnoPageControl )
170 IMPL_CREATEINSTANCE_CTX( UnoFrameControl )
171 IMPL_CREATEINSTANCE( VCLXMenuBar )
172 IMPL_CREATEINSTANCE( VCLXPointer )
173 IMPL_CREATEINSTANCE( VCLXPopupMenu )
174 IMPL_CREATEINSTANCE( VCLXPrinterServer )
175 IMPL_CREATEINSTANCE( UnoRoadmapControl )
176 IMPL_CREATEINSTANCE_CTX( UnoControlRoadmapModel )
177 IMPL_CREATEINSTANCE( UnoSimpleAnimationControl )
178 IMPL_CREATEINSTANCE_CTX( UnoSimpleAnimationControlModel )
179 IMPL_CREATEINSTANCE( UnoThrobberControl )
180 IMPL_CREATEINSTANCE_CTX( UnoThrobberControlModel )
181 IMPL_CREATEINSTANCE_CTX( UnoControlTabPage )
182 IMPL_CREATEINSTANCE_CTX( UnoControlTabPageModel )
183 IMPL_CREATEINSTANCE_CTX( UnoControlTabPageContainer )
184 IMPL_CREATEINSTANCE_CTX( UnoControlTabPageContainerModel )
185 IMPL_CREATEINSTANCE( AnimatedImagesControl )
186 IMPL_CREATEINSTANCE_CTX( AnimatedImagesControlModel )
187 IMPL_CREATEINSTANCE_CTX( SpinningProgressControlModel )
189 IMPL_CREATE_INSTANCE_WITH_GEOMETRY( UnoControlDialogModel )
191 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 >& );
192 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 >& );
193 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 >& );
194 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 >& );
195 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 >& );
196 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 >& );
197 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 >& );
198 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 >& );
199 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 >& );
201 extern void * SAL_CALL comp_AsyncCallback_component_getFactory( const char * implName, void * serviceManager, void * registryKey );
203 extern "C"
206 TOOLKIT_DLLPUBLIC void* SAL_CALL tk_component_getFactory( const sal_Char* sImplementationName, void* _pServiceManager, void* _pRegistryKey )
209 void* pRet = NULL;
211 if ( _pServiceManager )
213 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory =
214 static_cast< ::com::sun::star::lang::XMultiServiceFactory* >( _pServiceManager );
215 GET_FACTORY( VCLXToolkit, szServiceName_Toolkit, szServiceName2_Toolkit )
216 GET_FACTORY( VCLXPopupMenu, szServiceName_PopupMenu, szServiceName2_PopupMenu )
217 GET_FACTORY( VCLXMenuBar, szServiceName_MenuBar, szServiceName2_MenuBar )
218 GET_FACTORY( VCLXPointer, szServiceName_Pointer, szServiceName2_Pointer )
219 GET_FACTORY( UnoControlContainer, szServiceName_UnoControlContainer, szServiceName2_UnoControlContainer )
220 GET_FACTORY( UnoControlContainerModel, szServiceName_UnoControlContainerModel, szServiceName2_UnoControlContainerModel )
221 GET_FACTORY( StdTabController, szServiceName_TabController, szServiceName2_TabController )
222 GET_FACTORY( StdTabControllerModel, szServiceName_TabControllerModel, szServiceName2_TabControllerModel )
223 GET_FACTORY( UnoDialogControl, szServiceName_UnoControlDialog, szServiceName2_UnoControlDialog )
224 GET_FACTORY( UnoControlDialogModel, szServiceName_UnoControlDialogModel, szServiceName2_UnoControlDialogModel )
225 GET_FACTORY( UnoEditControl, szServiceName_UnoControlEdit, szServiceName2_UnoControlEdit )
226 GET_FACTORY( UnoControlEditModel, szServiceName_UnoControlEditModel, szServiceName2_UnoControlEditModel )
227 GET_FACTORY( UnoDateFieldControl, szServiceName_UnoControlDateField, szServiceName2_UnoControlDateField )
228 GET_FACTORY( UnoControlDateFieldModel, szServiceName_UnoControlDateFieldModel, szServiceName2_UnoControlDateFieldModel )
229 GET_FACTORY( UnoTimeFieldControl, szServiceName_UnoControlTimeField, szServiceName2_UnoControlTimeField )
230 GET_FACTORY( UnoControlTimeFieldModel, szServiceName_UnoControlTimeFieldModel, szServiceName2_UnoControlTimeFieldModel )
231 GET_FACTORY( UnoNumericFieldControl, szServiceName_UnoControlNumericField, szServiceName2_UnoControlNumericField )
232 GET_FACTORY( UnoControlNumericFieldModel, szServiceName_UnoControlNumericFieldModel, szServiceName2_UnoControlNumericFieldModel )
233 GET_FACTORY( UnoCurrencyFieldControl, szServiceName_UnoControlCurrencyField, szServiceName2_UnoControlCurrencyField )
234 GET_FACTORY( UnoControlCurrencyFieldModel, szServiceName_UnoControlCurrencyFieldModel, szServiceName2_UnoControlCurrencyFieldModel )
235 GET_FACTORY( UnoPatternFieldControl, szServiceName_UnoControlPatternField, szServiceName2_UnoControlPatternField )
236 GET_FACTORY( UnoControlPatternFieldModel, szServiceName_UnoControlPatternFieldModel, szServiceName2_UnoControlPatternFieldModel )
237 GET_FACTORY( UnoFormattedFieldControl, szServiceName_UnoControlFormattedField, szServiceName2_UnoControlFormattedField )
238 GET_FACTORY( UnoControlFormattedFieldModel, szServiceName_UnoControlFormattedFieldModel, szServiceName2_UnoControlFormattedFieldModel )
239 GET_FACTORY( UnoFileControl, szServiceName_UnoControlFileControl, szServiceName2_UnoControlFileControl )
240 GET_FACTORY( UnoControlFileControlModel, szServiceName_UnoControlFileControlModel, szServiceName2_UnoControlFileControlModel )
241 GET_FACTORY( UnoButtonControl, szServiceName_UnoControlButton, szServiceName2_UnoControlButton )
242 GET_FACTORY( UnoControlButtonModel, szServiceName_UnoControlButtonModel, szServiceName2_UnoControlButtonModel )
243 GET_FACTORY( UnoImageControlControl, szServiceName_UnoControlImageButton, szServiceName2_UnoControlImageButton )
244 GET_FACTORY( UnoControlImageControlModel, szServiceName_UnoControlImageButtonModel, szServiceName2_UnoControlImageButtonModel )
245 GET_FACTORY( UnoImageControlControl, szServiceName_UnoControlImageControl, szServiceName2_UnoControlImageControl )
246 GET_FACTORY( UnoControlImageControlModel, szServiceName_UnoControlImageControlModel, szServiceName2_UnoControlImageControlModel )
247 GET_FACTORY( UnoRadioButtonControl, szServiceName_UnoControlRadioButton, szServiceName2_UnoControlRadioButton )
248 GET_FACTORY( UnoControlRadioButtonModel, szServiceName_UnoControlRadioButtonModel, szServiceName2_UnoControlRadioButtonModel )
249 GET_FACTORY( UnoCheckBoxControl, szServiceName_UnoControlCheckBox, szServiceName2_UnoControlCheckBox )
250 GET_FACTORY( UnoControlCheckBoxModel, szServiceName_UnoControlCheckBoxModel, szServiceName2_UnoControlCheckBoxModel )
251 GET_FACTORY( UnoListBoxControl, szServiceName_UnoControlListBox, szServiceName2_UnoControlListBox )
252 GET_FACTORY( UnoControlListBoxModel, szServiceName_UnoControlListBoxModel, szServiceName2_UnoControlListBoxModel )
253 GET_FACTORY( UnoComboBoxControl, szServiceName_UnoControlComboBox, szServiceName2_UnoControlComboBox )
254 GET_FACTORY( UnoControlComboBoxModel, szServiceName_UnoControlComboBoxModel, szServiceName2_UnoControlComboBoxModel )
255 GET_FACTORY( UnoFixedTextControl, szServiceName_UnoControlFixedText, szServiceName2_UnoControlFixedText )
256 GET_FACTORY( UnoControlFixedTextModel, szServiceName_UnoControlFixedTextModel, szServiceName2_UnoControlFixedTextModel )
257 GET_FACTORY( UnoGroupBoxControl, szServiceName_UnoControlGroupBox, szServiceName2_UnoControlGroupBox )
258 GET_FACTORY( UnoControlGroupBoxModel, szServiceName_UnoControlGroupBoxModel, szServiceName2_UnoControlGroupBoxModel )
259 GET_FACTORY( UnoProgressBarControl, szServiceName_UnoControlProgressBar, szServiceName2_UnoControlProgressBar )
260 GET_FACTORY( UnoControlProgressBarModel, szServiceName_UnoControlProgressBarModel, szServiceName2_UnoControlProgressBarModel )
261 GET_FACTORY( UnoScrollBarControl, szServiceName_UnoControlScrollBar, szServiceName2_UnoControlScrollBar )
262 GET_FACTORY( UnoControlScrollBarModel, szServiceName_UnoControlScrollBarModel, szServiceName2_UnoControlScrollBarModel )
263 GET_FACTORY( UnoFixedLineControl, szServiceName_UnoControlFixedLine, szServiceName2_UnoControlFixedLine )
264 GET_FACTORY( UnoControlFixedLineModel, szServiceName_UnoControlFixedLineModel, szServiceName2_UnoControlFixedLineModel )
265 GET_FACTORY( VCLXPrinterServer, szServiceName_PrinterServer, szServiceName2_PrinterServer )
266 GET_FACTORY( UnoRoadmapControl, szServiceName_UnoControlRoadmap, szServiceName2_UnoControlRoadmap )
267 GET_FACTORY( UnoControlRoadmapModel, szServiceName_UnoControlRoadmapModel, szServiceName2_UnoControlRoadmapModel )
268 GET_FACTORY( UnoMultiPageModel, szServiceName_UnoMultiPageModel, NULL )
269 GET_FACTORY( UnoMultiPageControl, szServiceName_UnoMultiPageControl, NULL )
270 GET_FACTORY( UnoPageModel, szServiceName_UnoPageModel, NULL )
271 GET_FACTORY( UnoPageControl, szServiceName_UnoPageControl, NULL )
272 GET_FACTORY( UnoFrameModel, szServiceName_UnoFrameModel, NULL )
273 GET_FACTORY( UnoFrameControl, szServiceName_UnoFrameControl, NULL )
274 GET_FACTORY( UnoSpinButtonModel, szServiceName_UnoSpinButtonModel, NULL )
275 GET_FACTORY( UnoSpinButtonControl, szServiceName_UnoSpinButtonControl, NULL )
276 GET_FACTORY( TreeControl, szServiceName_TreeControl, NULL )
277 GET_FACTORY( TreeControlModel, szServiceName_TreeControlModel, NULL )
278 GET_FACTORY( MutableTreeDataModel, szServiceName_MutableTreeDataModel, NULL )
279 GET_FACTORY( UnoSimpleAnimationControlModel, szServiceName_UnoSimpleAnimationControlModel, szServiceName2_UnoSimpleAnimationControlModel )
280 GET_FACTORY( UnoSimpleAnimationControl, szServiceName_UnoSimpleAnimationControl, szServiceName2_UnoSimpleAnimationControl )
281 GET_FACTORY( UnoThrobberControlModel, szServiceName_UnoThrobberControlModel, szServiceName2_UnoThrobberControlModel )
282 GET_FACTORY( UnoThrobberControl, szServiceName_UnoThrobberControl, szServiceName2_UnoThrobberControl )
283 GET_FACTORY( UnoFixedHyperlinkControl, szServiceName_UnoControlFixedHyperlink, NULL )
284 GET_FACTORY( UnoControlFixedHyperlinkModel, szServiceName_UnoControlFixedHyperlinkModel, NULL )
285 GET_FACTORY( GridControl, szServiceName_GridControl, NULL );
286 GET_FACTORY( GridControlModel, szServiceName_GridControlModel, NULL );
287 GET_FACTORY( DefaultGridDataModel, szServiceName_DefaultGridDataModel, NULL );
288 GET_FACTORY( DefaultGridColumnModel, szServiceName_DefaultGridColumnModel, NULL );
289 GET_FACTORY_WITH_IMPL_PREFIX( GridColumn, "org.openoffice.comp.toolkit", szServiceName_GridColumn, NULL );
290 GET_FACTORY_WITH_IMPL_PREFIX( SortableGridDataModel, "org.openoffice.comp.toolkit", szServiceName_SortableGridDataModel, NULL );
291 GET_FACTORY( UnoControlTabPageModel, szServiceName_UnoControlTabPageModel, NULL )
292 GET_FACTORY( UnoControlTabPage, szServiceName_UnoControlTabPage, NULL )
293 GET_FACTORY( UnoControlTabPageContainerModel, szServiceName_UnoControlTabPageContainerModel, NULL )
294 GET_FACTORY( UnoControlTabPageContainer, szServiceName_UnoControlTabPageContainer, NULL )
295 GET_FACTORY_WITH_IMPL_PREFIX( AnimatedImagesControl, "org.openoffice.comp.toolkit", szServiceName_AnimatedImagesControl, NULL )
296 GET_FACTORY_WITH_IMPL_PREFIX( AnimatedImagesControlModel, "org.openoffice.comp.toolkit", szServiceName_AnimatedImagesControlModel, NULL )
297 GET_FACTORY_WITH_IMPL_PREFIX( SpinningProgressControlModel, "org.openoffice.comp.toolkit", szServiceName_SpinningProgressControlModel, NULL )
299 if ( rtl_str_compare( sImplementationName, "com.sun.star.awt.comp.AsyncCallback" ) == 0 )
300 return comp_AsyncCallback_component_getFactory( sImplementationName, _pServiceManager, _pRegistryKey );
302 return pRet;
308 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */