1 /**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_toolkit.hxx"
26 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
27 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
28 #include <com/sun/star/registry/XRegistryKey.hpp>
29 #include <toolkit/controls/geometrycontrolmodel.hxx>
30 #include <cppuhelper/factory.hxx>
31 #include <cppuhelper/weak.hxx>
32 #include <osl/mutex.hxx>
33 #include <toolkit/helper/servicenames.hxx>
34 #include <toolkit/helper/macros.hxx>
35 #include <toolkit/awt/vclxtoolkit.hxx>
36 #include <toolkit/awt/vclxmenu.hxx>
37 #include <toolkit/awt/vclxpointer.hxx>
38 #include <toolkit/awt/vclxprinter.hxx>
39 #include <toolkit/controls/unocontrols.hxx>
40 #include <toolkit/controls/unocontrolcontainer.hxx>
41 #include <toolkit/controls/unocontrolcontainermodel.hxx>
42 #include <toolkit/controls/stdtabcontroller.hxx>
43 #include <toolkit/controls/stdtabcontrollermodel.hxx>
44 #include <toolkit/controls/formattedcontrol.hxx>
45 #include <toolkit/controls/roadmapcontrol.hxx>
46 #include <toolkit/controls/tkscrollbar.hxx>
47 #include "toolkit/controls/tkspinbutton.hxx"
48 #include <toolkit/controls/animatedimages.hxx>
49 #include <toolkit/controls/spinningprogress.hxx>
50 #include <toolkit/controls/dialogcontrol.hxx>
51 #include <toolkit/controls/tabpagemodel.hxx>
52 #include <toolkit/controls/tabpagecontainer.hxx>
53 #include "toolkit/dllapi.h"
54 #include <com/sun/star/beans/XPropertySet.hpp>
55 #include <com/sun/star/uno/XComponentContext.hpp>
56
57 namespace toolkit
58 {
59 using namespace ::com::sun::star::uno;
60 using namespace ::com::sun::star::lang;
61 using namespace ::com::sun::star::registry;
62
63 //.........................................................................
registerServices(const Reference<XRegistryKey> & _rxParentKey,const sal_Char * _pAsciiImplName,const sal_Char * _pAsciiServiceName)64 Reference< XRegistryKey > registerServices( const Reference< XRegistryKey >& _rxParentKey,
65 const sal_Char* _pAsciiImplName, const sal_Char* _pAsciiServiceName )
66 {
67 ::rtl::OUString sImplName( RTL_CONSTASCII_USTRINGPARAM( "/stardiv.Toolkit." ) );
68 sImplName += ::rtl::OUString::createFromAscii( _pAsciiImplName );
69 sImplName += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES" ) );
70
71 Reference< XRegistryKey > xNewKey = _rxParentKey->createKey( sImplName );
72 xNewKey->createKey( ::rtl::OUString::createFromAscii( _pAsciiServiceName ) );
73
74 return xNewKey;
75 }
76
77 //.........................................................................
registerServices(const Reference<XRegistryKey> & _rxParentKey,const sal_Char * _pAsciiImplName,const sal_Char * _pAsciiServiceName1,const sal_Char * _pAsciiServiceName2)78 Reference< XRegistryKey > registerServices( const Reference< XRegistryKey >& _rxParentKey,
79 const sal_Char* _pAsciiImplName, const sal_Char* _pAsciiServiceName1, const sal_Char* _pAsciiServiceName2 )
80 {
81 Reference< XRegistryKey > xComponentServicesKey = registerServices( _rxParentKey, _pAsciiImplName, _pAsciiServiceName1 );
82 xComponentServicesKey->createKey( ::rtl::OUString::createFromAscii( _pAsciiServiceName2 ) );
83 return xComponentServicesKey;
84 }
85
86 //.........................................................................
tryCreateFactory(const sal_Char * _pRequiredImplName,const sal_Char * _pComponentImplName,const sal_Char * _pAsciiServiceName1,const sal_Char * _pAsciiServiceName2,::cppu::ComponentInstantiation _pInstantiation,const Reference<XMultiServiceFactory> & _rxServiceFactory)87 void* tryCreateFactory( const sal_Char* _pRequiredImplName, const sal_Char* _pComponentImplName,
88 const sal_Char* _pAsciiServiceName1, const sal_Char* _pAsciiServiceName2,
89 ::cppu::ComponentInstantiation _pInstantiation, const Reference< XMultiServiceFactory >& _rxServiceFactory )
90 {
91 void* pReturn = NULL;
92
93 if ( rtl_str_compare( _pRequiredImplName, _pComponentImplName ) == 0 )
94 {
95 Sequence< ::rtl::OUString > aServiceNames( _pAsciiServiceName2 ? 2 : 1 );
96 aServiceNames.getArray()[ 0 ] = ::rtl::OUString::createFromAscii( _pAsciiServiceName1 );
97 if ( _pAsciiServiceName2 )
98 aServiceNames.getArray()[ 1 ] = ::rtl::OUString::createFromAscii( _pAsciiServiceName2 );
99 Reference< XSingleServiceFactory > xFactory( ::cppu::createSingleFactory(
100 _rxServiceFactory, ::rtl::OUString::createFromAscii( _pComponentImplName ),
101 _pInstantiation, aServiceNames
102 ) );
103
104 if ( xFactory.is() )
105 {
106 xFactory->acquire();
107 pReturn = xFactory.get();
108 }
109 }
110
111 return pReturn;
112 }
113
114
115 }
116
117 #define IMPL_CREATEINSTANCE( ImplName ) \
118 ::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 >& ) \
119 { return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new ImplName ); }
120
121 #define IMPL_CREATEINSTANCE2( ImplName ) \
122 ::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 ) \
123 { return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new ImplName( i_factory ) ); }
124
125 #define IMPL_CREATE_INSTANCE_WITH_GEOMETRY( ImplName ) \
126 ::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 ) \
127 { \
128 return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new OGeometryControlModel< ImplName >( i_factory ) ); \
129 }
130
131 #define GET_FACTORY_WITH_IMPL_PREFIX( ClassName, ImplNamePrefix, ServiceName1, ServiceName2 ) \
132 pRet = tryCreateFactory( sImplementationName, ImplNamePrefix "." #ClassName, \
133 ServiceName1, ServiceName2, \
134 ClassName##_CreateInstance, xServiceFactory \
135 ); \
136 if ( pRet ) \
137 return pRet; \
138
139 #define GET_FACTORY( ImplName, ServiceName1, ServiceName2 ) \
140 GET_FACTORY_WITH_IMPL_PREFIX( ImplName, "stardiv.Toolkit", ServiceName1, ServiceName2 )
141
142 using namespace toolkit;
143
144 IMPL_CREATEINSTANCE2( VCLXToolkit )
145 IMPL_CREATEINSTANCE( StdTabController )
146 IMPL_CREATEINSTANCE( StdTabControllerModel )
147 IMPL_CREATEINSTANCE2( UnoButtonControl )
148 IMPL_CREATEINSTANCE2( UnoCheckBoxControl )
149 IMPL_CREATEINSTANCE2( UnoComboBoxControl )
150 IMPL_CREATEINSTANCE2( UnoControlButtonModel )
151 IMPL_CREATEINSTANCE2( UnoControlCheckBoxModel )
152 IMPL_CREATEINSTANCE2( UnoControlComboBoxModel )
153 IMPL_CREATEINSTANCE2( UnoControlContainer )
154 IMPL_CREATEINSTANCE2( UnoControlContainerModel )
155 IMPL_CREATEINSTANCE2( UnoControlCurrencyFieldModel )
156 IMPL_CREATEINSTANCE2( UnoControlDateFieldModel )
157 IMPL_CREATEINSTANCE2( UnoControlEditModel )
158 IMPL_CREATEINSTANCE2( UnoControlFileControlModel )
159 IMPL_CREATEINSTANCE2( UnoControlFixedHyperlinkModel )
160 IMPL_CREATEINSTANCE2( UnoControlFixedTextModel )
161 IMPL_CREATEINSTANCE2( UnoControlFormattedFieldModel )
162 IMPL_CREATEINSTANCE2( UnoControlGroupBoxModel )
163 IMPL_CREATEINSTANCE2( UnoControlImageControlModel )
164 IMPL_CREATEINSTANCE2( UnoControlListBoxModel )
165 IMPL_CREATEINSTANCE2( UnoControlNumericFieldModel )
166 IMPL_CREATEINSTANCE2( UnoControlPatternFieldModel )
167 IMPL_CREATEINSTANCE2( UnoControlRadioButtonModel )
168 IMPL_CREATEINSTANCE2( UnoControlTimeFieldModel )
169 IMPL_CREATEINSTANCE2( UnoControlProgressBarModel )
170 IMPL_CREATEINSTANCE2( UnoControlScrollBarModel )
171 IMPL_CREATEINSTANCE2( UnoSpinButtonModel )
172 IMPL_CREATEINSTANCE2( UnoControlFixedLineModel )
173 IMPL_CREATEINSTANCE2( UnoCurrencyFieldControl )
174 IMPL_CREATEINSTANCE2( UnoDateFieldControl )
175 IMPL_CREATEINSTANCE2( UnoDialogControl )
176 IMPL_CREATEINSTANCE2( UnoEditControl )
177 IMPL_CREATEINSTANCE2( UnoFileControl )
178 IMPL_CREATEINSTANCE2( UnoFixedHyperlinkControl )
179 IMPL_CREATEINSTANCE2( UnoFixedTextControl )
180 IMPL_CREATEINSTANCE2( UnoFormattedFieldControl )
181 IMPL_CREATEINSTANCE2( UnoGroupBoxControl )
182 IMPL_CREATEINSTANCE2( UnoImageControlControl )
183 IMPL_CREATEINSTANCE2( UnoListBoxControl )
184 IMPL_CREATEINSTANCE2( UnoNumericFieldControl )
185 IMPL_CREATEINSTANCE2( UnoPatternFieldControl )
186 IMPL_CREATEINSTANCE2( UnoRadioButtonControl )
187 IMPL_CREATEINSTANCE2( UnoTimeFieldControl )
188 IMPL_CREATEINSTANCE2( UnoProgressBarControl )
189 IMPL_CREATEINSTANCE2( UnoScrollBarControl )
190 IMPL_CREATEINSTANCE2( UnoSpinButtonControl )
191 IMPL_CREATEINSTANCE2( UnoFixedLineControl )
192 IMPL_CREATEINSTANCE( VCLXMenuBar )
193 IMPL_CREATEINSTANCE( VCLXPointer )
194 IMPL_CREATEINSTANCE( VCLXPopupMenu )
195 IMPL_CREATEINSTANCE( VCLXPrinterServer )
196 IMPL_CREATEINSTANCE2( UnoRoadmapControl )
197 IMPL_CREATEINSTANCE2( UnoControlRoadmapModel )
198 IMPL_CREATEINSTANCE2( UnoControlTabPage )
199 IMPL_CREATEINSTANCE2( UnoControlTabPageModel )
200 IMPL_CREATEINSTANCE2( UnoControlTabPageContainer )
201 IMPL_CREATEINSTANCE2( UnoControlTabPageContainerModel )
202 IMPL_CREATEINSTANCE2( AnimatedImagesControl )
203 IMPL_CREATEINSTANCE2( AnimatedImagesControlModel )
204 IMPL_CREATEINSTANCE2( SpinningProgressControlModel )
205
206 IMPL_CREATE_INSTANCE_WITH_GEOMETRY( UnoControlDialogModel )
207
208 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 >& );
209 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 >& );
210 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 >& );
211 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 >& );
212 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 >& );
213 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 >& );
214 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 >& );
215 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 >& );
216 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 >& );
217
218 extern void * SAL_CALL comp_AsyncCallback_component_getFactory( const char * implName, void * serviceManager, void * registryKey );
219
220 extern void * SAL_CALL comp_Layout_component_getFactory( const char * implName, void * serviceManager, void * registryKey );
221
222 extern "C"
223 {
224
component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,uno_Environment **)225 TOOLKIT_DLLPUBLIC void SAL_CALL component_getImplementationEnvironment( const sal_Char** ppEnvTypeName, uno_Environment** )
226 {
227 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
228 }
229
230
component_getFactory(const sal_Char * sImplementationName,void * _pServiceManager,void * _pRegistryKey)231 TOOLKIT_DLLPUBLIC void* SAL_CALL component_getFactory( const sal_Char* sImplementationName, void* _pServiceManager, void* _pRegistryKey )
232 {
233 void* pRet = NULL;
234
235 if ( _pServiceManager )
236 {
237 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory =
238 static_cast< ::com::sun::star::lang::XMultiServiceFactory* >( _pServiceManager );
239
240 GET_FACTORY( VCLXToolkit, szServiceName_Toolkit, szServiceName2_Toolkit )
241 GET_FACTORY( VCLXPopupMenu, szServiceName_PopupMenu, szServiceName2_PopupMenu )
242 GET_FACTORY( VCLXMenuBar, szServiceName_MenuBar, szServiceName2_MenuBar )
243 GET_FACTORY( VCLXPointer, szServiceName_Pointer, szServiceName2_Pointer )
244 GET_FACTORY( UnoControlContainer, szServiceName_UnoControlContainer, szServiceName2_UnoControlContainer )
245 GET_FACTORY( UnoControlContainerModel, szServiceName_UnoControlContainerModel, szServiceName2_UnoControlContainerModel )
246 GET_FACTORY( StdTabController, szServiceName_TabController, szServiceName2_TabController )
247 GET_FACTORY( StdTabControllerModel, szServiceName_TabControllerModel, szServiceName2_TabControllerModel )
248 GET_FACTORY( UnoDialogControl, szServiceName_UnoControlDialog, szServiceName2_UnoControlDialog )
249 GET_FACTORY( UnoControlDialogModel, szServiceName_UnoControlDialogModel, szServiceName2_UnoControlDialogModel )
250 GET_FACTORY( UnoEditControl, szServiceName_UnoControlEdit, szServiceName2_UnoControlEdit )
251 GET_FACTORY( UnoControlEditModel, szServiceName_UnoControlEditModel, szServiceName2_UnoControlEditModel )
252 GET_FACTORY( UnoDateFieldControl, szServiceName_UnoControlDateField, szServiceName2_UnoControlDateField )
253 GET_FACTORY( UnoControlDateFieldModel, szServiceName_UnoControlDateFieldModel, szServiceName2_UnoControlDateFieldModel )
254 GET_FACTORY( UnoTimeFieldControl, szServiceName_UnoControlTimeField, szServiceName2_UnoControlTimeField )
255 GET_FACTORY( UnoControlTimeFieldModel, szServiceName_UnoControlTimeFieldModel, szServiceName2_UnoControlTimeFieldModel )
256 GET_FACTORY( UnoNumericFieldControl, szServiceName_UnoControlNumericField, szServiceName2_UnoControlNumericField )
257 GET_FACTORY( UnoControlNumericFieldModel, szServiceName_UnoControlNumericFieldModel, szServiceName2_UnoControlNumericFieldModel )
258 GET_FACTORY( UnoCurrencyFieldControl, szServiceName_UnoControlCurrencyField, szServiceName2_UnoControlCurrencyField )
259 GET_FACTORY( UnoControlCurrencyFieldModel, szServiceName_UnoControlCurrencyFieldModel, szServiceName2_UnoControlCurrencyFieldModel )
260 GET_FACTORY( UnoPatternFieldControl, szServiceName_UnoControlPatternField, szServiceName2_UnoControlPatternField )
261 GET_FACTORY( UnoControlPatternFieldModel, szServiceName_UnoControlPatternFieldModel, szServiceName2_UnoControlPatternFieldModel )
262 GET_FACTORY( UnoFormattedFieldControl, szServiceName_UnoControlFormattedField, szServiceName2_UnoControlFormattedField )
263 GET_FACTORY( UnoControlFormattedFieldModel, szServiceName_UnoControlFormattedFieldModel, szServiceName2_UnoControlFormattedFieldModel )
264 GET_FACTORY( UnoFileControl, szServiceName_UnoControlFileControl, szServiceName2_UnoControlFileControl )
265 GET_FACTORY( UnoControlFileControlModel, szServiceName_UnoControlFileControlModel, szServiceName2_UnoControlFileControlModel )
266 GET_FACTORY( UnoButtonControl, szServiceName_UnoControlButton, szServiceName2_UnoControlButton )
267 GET_FACTORY( UnoControlButtonModel, szServiceName_UnoControlButtonModel, szServiceName2_UnoControlButtonModel )
268 GET_FACTORY( UnoImageControlControl, szServiceName_UnoControlImageButton, szServiceName2_UnoControlImageButton )
269 GET_FACTORY( UnoControlImageControlModel, szServiceName_UnoControlImageButtonModel, szServiceName2_UnoControlImageButtonModel )
270 GET_FACTORY( UnoImageControlControl, szServiceName_UnoControlImageControl, szServiceName2_UnoControlImageControl )
271 GET_FACTORY( UnoControlImageControlModel, szServiceName_UnoControlImageControlModel, szServiceName2_UnoControlImageControlModel )
272 GET_FACTORY( UnoRadioButtonControl, szServiceName_UnoControlRadioButton, szServiceName2_UnoControlRadioButton )
273 GET_FACTORY( UnoControlRadioButtonModel, szServiceName_UnoControlRadioButtonModel, szServiceName2_UnoControlRadioButtonModel )
274 GET_FACTORY( UnoCheckBoxControl, szServiceName_UnoControlCheckBox, szServiceName2_UnoControlCheckBox )
275 GET_FACTORY( UnoControlCheckBoxModel, szServiceName_UnoControlCheckBoxModel, szServiceName2_UnoControlCheckBoxModel )
276 GET_FACTORY( UnoListBoxControl, szServiceName_UnoControlListBox, szServiceName2_UnoControlListBox )
277 GET_FACTORY( UnoControlListBoxModel, szServiceName_UnoControlListBoxModel, szServiceName2_UnoControlListBoxModel )
278 GET_FACTORY( UnoComboBoxControl, szServiceName_UnoControlComboBox, szServiceName2_UnoControlComboBox )
279 GET_FACTORY( UnoControlComboBoxModel, szServiceName_UnoControlComboBoxModel, szServiceName2_UnoControlComboBoxModel )
280 GET_FACTORY( UnoFixedTextControl, szServiceName_UnoControlFixedText, szServiceName2_UnoControlFixedText )
281 GET_FACTORY( UnoControlFixedTextModel, szServiceName_UnoControlFixedTextModel, szServiceName2_UnoControlFixedTextModel )
282 GET_FACTORY( UnoGroupBoxControl, szServiceName_UnoControlGroupBox, szServiceName2_UnoControlGroupBox )
283 GET_FACTORY( UnoControlGroupBoxModel, szServiceName_UnoControlGroupBoxModel, szServiceName2_UnoControlGroupBoxModel )
284 GET_FACTORY( UnoProgressBarControl, szServiceName_UnoControlProgressBar, szServiceName2_UnoControlProgressBar )
285 GET_FACTORY( UnoControlProgressBarModel, szServiceName_UnoControlProgressBarModel, szServiceName2_UnoControlProgressBarModel )
286 GET_FACTORY( UnoScrollBarControl, szServiceName_UnoControlScrollBar, szServiceName2_UnoControlScrollBar )
287 GET_FACTORY( UnoControlScrollBarModel, szServiceName_UnoControlScrollBarModel, szServiceName2_UnoControlScrollBarModel )
288 GET_FACTORY( UnoFixedLineControl, szServiceName_UnoControlFixedLine, szServiceName2_UnoControlFixedLine )
289 GET_FACTORY( UnoControlFixedLineModel, szServiceName_UnoControlFixedLineModel, szServiceName2_UnoControlFixedLineModel )
290 GET_FACTORY( VCLXPrinterServer, szServiceName_PrinterServer, szServiceName2_PrinterServer )
291 GET_FACTORY( UnoRoadmapControl, szServiceName_UnoControlRoadmap, szServiceName2_UnoControlRoadmap )
292 GET_FACTORY( UnoControlRoadmapModel, szServiceName_UnoControlRoadmapModel, szServiceName2_UnoControlRoadmapModel )
293 GET_FACTORY( UnoSpinButtonModel, szServiceName_UnoSpinButtonModel, NULL )
294 GET_FACTORY( UnoSpinButtonControl, szServiceName_UnoSpinButtonControl, NULL )
295 GET_FACTORY( TreeControl, szServiceName_TreeControl, NULL )
296 GET_FACTORY( TreeControlModel, szServiceName_TreeControlModel, NULL )
297 GET_FACTORY( MutableTreeDataModel, szServiceName_MutableTreeDataModel, NULL )
298 GET_FACTORY( UnoFixedHyperlinkControl, szServiceName_UnoControlFixedHyperlink, NULL )
299 GET_FACTORY( UnoControlFixedHyperlinkModel, szServiceName_UnoControlFixedHyperlinkModel, NULL )
300 GET_FACTORY( GridControl, szServiceName_GridControl, NULL );
301 GET_FACTORY( GridControlModel, szServiceName_GridControlModel, NULL );
302 GET_FACTORY( DefaultGridDataModel, szServiceName_DefaultGridDataModel, NULL );
303 GET_FACTORY( DefaultGridColumnModel, szServiceName_DefaultGridColumnModel, NULL );
304 GET_FACTORY_WITH_IMPL_PREFIX( GridColumn, "org.openoffice.comp.toolkit", szServiceName_GridColumn, NULL );
305 GET_FACTORY_WITH_IMPL_PREFIX( SortableGridDataModel, "org.openoffice.comp.toolkit", szServiceName_SortableGridDataModel, NULL );
306 GET_FACTORY( UnoControlTabPageModel, szServiceName_UnoControlTabPageModel, NULL )
307 GET_FACTORY( UnoControlTabPage, szServiceName_UnoControlTabPage, NULL )
308 GET_FACTORY( UnoControlTabPageContainerModel, szServiceName_UnoControlTabPageContainerModel, NULL )
309 GET_FACTORY( UnoControlTabPageContainer, szServiceName_UnoControlTabPageContainer, NULL )
310 GET_FACTORY_WITH_IMPL_PREFIX( AnimatedImagesControl, "org.openoffice.comp.toolkit", szServiceName_AnimatedImagesControl, NULL )
311 GET_FACTORY_WITH_IMPL_PREFIX( AnimatedImagesControlModel, "org.openoffice.comp.toolkit", szServiceName_AnimatedImagesControlModel, NULL )
312 GET_FACTORY_WITH_IMPL_PREFIX( SpinningProgressControlModel, "org.openoffice.comp.toolkit", szServiceName_SpinningProgressControlModel, NULL )
313
314 if ( rtl_str_compare( sImplementationName, "com.sun.star.awt.comp.AsyncCallback" ) == 0 )
315 return comp_AsyncCallback_component_getFactory( sImplementationName, _pServiceManager, _pRegistryKey );
316 if( pRet == 0 )
317 pRet = comp_Layout_component_getFactory( sImplementationName, _pServiceManager, _pRegistryKey );
318 }
319 return pRet;
320 }
321 }
322
323
324
325