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/tksimpleanimation.hxx> 49 #include <toolkit/controls/tkthrobber.hxx> 50 #include <toolkit/controls/animatedimages.hxx> 51 #include <toolkit/controls/spinningprogress.hxx> 52 #include <toolkit/controls/dialogcontrol.hxx> 53 #include <toolkit/controls/tabpagemodel.hxx> 54 #include <toolkit/controls/tabpagecontainer.hxx> 55 #include "toolkit/dllapi.h" 56 #include <com/sun/star/beans/XPropertySet.hpp> 57 #include <com/sun/star/uno/XComponentContext.hpp> 58 59 namespace toolkit 60 { 61 using namespace ::com::sun::star::uno; 62 using namespace ::com::sun::star::lang; 63 using namespace ::com::sun::star::registry; 64 65 //......................................................................... 66 Reference< XRegistryKey > registerServices( const Reference< XRegistryKey >& _rxParentKey, 67 const sal_Char* _pAsciiImplName, const sal_Char* _pAsciiServiceName ) 68 { 69 ::rtl::OUString sImplName( RTL_CONSTASCII_USTRINGPARAM( "/stardiv.Toolkit." ) ); 70 sImplName += ::rtl::OUString::createFromAscii( _pAsciiImplName ); 71 sImplName += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES" ) ); 72 73 Reference< XRegistryKey > xNewKey = _rxParentKey->createKey( sImplName ); 74 xNewKey->createKey( ::rtl::OUString::createFromAscii( _pAsciiServiceName ) ); 75 76 return xNewKey; 77 } 78 79 //......................................................................... 80 Reference< XRegistryKey > registerServices( const Reference< XRegistryKey >& _rxParentKey, 81 const sal_Char* _pAsciiImplName, const sal_Char* _pAsciiServiceName1, const sal_Char* _pAsciiServiceName2 ) 82 { 83 Reference< XRegistryKey > xComponentServicesKey = registerServices( _rxParentKey, _pAsciiImplName, _pAsciiServiceName1 ); 84 xComponentServicesKey->createKey( ::rtl::OUString::createFromAscii( _pAsciiServiceName2 ) ); 85 return xComponentServicesKey; 86 } 87 88 //......................................................................... 89 void* tryCreateFactory( const sal_Char* _pRequiredImplName, const sal_Char* _pComponentImplName, 90 const sal_Char* _pAsciiServiceName1, const sal_Char* _pAsciiServiceName2, 91 ::cppu::ComponentInstantiation _pInstantiation, const Reference< XMultiServiceFactory >& _rxServiceFactory ) 92 { 93 void* pReturn = NULL; 94 95 if ( rtl_str_compare( _pRequiredImplName, _pComponentImplName ) == 0 ) 96 { 97 Sequence< ::rtl::OUString > aServiceNames( _pAsciiServiceName2 ? 2 : 1 ); 98 aServiceNames.getArray()[ 0 ] = ::rtl::OUString::createFromAscii( _pAsciiServiceName1 ); 99 if ( _pAsciiServiceName2 ) 100 aServiceNames.getArray()[ 1 ] = ::rtl::OUString::createFromAscii( _pAsciiServiceName2 ); 101 Reference< XSingleServiceFactory > xFactory( ::cppu::createSingleFactory( 102 _rxServiceFactory, ::rtl::OUString::createFromAscii( _pComponentImplName ), 103 _pInstantiation, aServiceNames 104 ) ); 105 106 if ( xFactory.is() ) 107 { 108 xFactory->acquire(); 109 pReturn = xFactory.get(); 110 } 111 } 112 113 return pReturn; 114 } 115 116 117 } 118 119 #define IMPL_CREATEINSTANCE( ImplName ) \ 120 ::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 >& ) \ 121 { return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new ImplName ); } 122 123 #define IMPL_CREATEINSTANCE2( ImplName ) \ 124 ::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 ) \ 125 { return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new ImplName( i_factory ) ); } 126 127 #define IMPL_CREATE_INSTANCE_WITH_GEOMETRY( ImplName ) \ 128 ::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 ) \ 129 { \ 130 return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new OGeometryControlModel< ImplName >( i_factory ) ); \ 131 } 132 133 #define GET_FACTORY_WITH_IMPL_PREFIX( ClassName, ImplNamePrefix, ServiceName1, ServiceName2 ) \ 134 pRet = tryCreateFactory( sImplementationName, ImplNamePrefix "." #ClassName, \ 135 ServiceName1, ServiceName2, \ 136 ClassName##_CreateInstance, xServiceFactory \ 137 ); \ 138 if ( pRet ) \ 139 return pRet; \ 140 141 #define GET_FACTORY( ImplName, ServiceName1, ServiceName2 ) \ 142 GET_FACTORY_WITH_IMPL_PREFIX( ImplName, "stardiv.Toolkit", ServiceName1, ServiceName2 ) 143 144 using namespace toolkit; 145 146 IMPL_CREATEINSTANCE2( VCLXToolkit ) 147 IMPL_CREATEINSTANCE( StdTabController ) 148 IMPL_CREATEINSTANCE( StdTabControllerModel ) 149 IMPL_CREATEINSTANCE2( UnoButtonControl ) 150 IMPL_CREATEINSTANCE2( UnoCheckBoxControl ) 151 IMPL_CREATEINSTANCE2( UnoComboBoxControl ) 152 IMPL_CREATEINSTANCE2( UnoControlButtonModel ) 153 IMPL_CREATEINSTANCE2( UnoControlCheckBoxModel ) 154 IMPL_CREATEINSTANCE2( UnoControlComboBoxModel ) 155 IMPL_CREATEINSTANCE2( UnoControlContainer ) 156 IMPL_CREATEINSTANCE2( UnoControlContainerModel ) 157 IMPL_CREATEINSTANCE2( UnoControlCurrencyFieldModel ) 158 IMPL_CREATEINSTANCE2( UnoControlDateFieldModel ) 159 IMPL_CREATEINSTANCE2( UnoControlEditModel ) 160 IMPL_CREATEINSTANCE2( UnoControlFileControlModel ) 161 IMPL_CREATEINSTANCE2( UnoControlFixedHyperlinkModel ) 162 IMPL_CREATEINSTANCE2( UnoControlFixedTextModel ) 163 IMPL_CREATEINSTANCE2( UnoControlFormattedFieldModel ) 164 IMPL_CREATEINSTANCE2( UnoControlGroupBoxModel ) 165 IMPL_CREATEINSTANCE2( UnoControlImageControlModel ) 166 IMPL_CREATEINSTANCE2( UnoControlListBoxModel ) 167 IMPL_CREATEINSTANCE2( UnoControlNumericFieldModel ) 168 IMPL_CREATEINSTANCE2( UnoControlPatternFieldModel ) 169 IMPL_CREATEINSTANCE2( UnoControlRadioButtonModel ) 170 IMPL_CREATEINSTANCE2( UnoControlTimeFieldModel ) 171 IMPL_CREATEINSTANCE2( UnoControlProgressBarModel ) 172 IMPL_CREATEINSTANCE2( UnoControlScrollBarModel ) 173 IMPL_CREATEINSTANCE2( UnoSpinButtonModel ) 174 IMPL_CREATEINSTANCE2( UnoControlFixedLineModel ) 175 IMPL_CREATEINSTANCE2( UnoCurrencyFieldControl ) 176 IMPL_CREATEINSTANCE2( UnoDateFieldControl ) 177 IMPL_CREATEINSTANCE2( UnoDialogControl ) 178 IMPL_CREATEINSTANCE2( UnoEditControl ) 179 IMPL_CREATEINSTANCE2( UnoFileControl ) 180 IMPL_CREATEINSTANCE2( UnoFixedHyperlinkControl ) 181 IMPL_CREATEINSTANCE2( UnoFixedTextControl ) 182 IMPL_CREATEINSTANCE2( UnoFormattedFieldControl ) 183 IMPL_CREATEINSTANCE2( UnoGroupBoxControl ) 184 IMPL_CREATEINSTANCE2( UnoImageControlControl ) 185 IMPL_CREATEINSTANCE2( UnoListBoxControl ) 186 IMPL_CREATEINSTANCE2( UnoNumericFieldControl ) 187 IMPL_CREATEINSTANCE2( UnoPatternFieldControl ) 188 IMPL_CREATEINSTANCE2( UnoRadioButtonControl ) 189 IMPL_CREATEINSTANCE2( UnoTimeFieldControl ) 190 IMPL_CREATEINSTANCE2( UnoProgressBarControl ) 191 IMPL_CREATEINSTANCE2( UnoScrollBarControl ) 192 IMPL_CREATEINSTANCE2( UnoSpinButtonControl ) 193 IMPL_CREATEINSTANCE2( UnoFixedLineControl ) 194 IMPL_CREATEINSTANCE( VCLXMenuBar ) 195 IMPL_CREATEINSTANCE( VCLXPointer ) 196 IMPL_CREATEINSTANCE( VCLXPopupMenu ) 197 IMPL_CREATEINSTANCE( VCLXPrinterServer ) 198 IMPL_CREATEINSTANCE2( UnoRoadmapControl ) 199 IMPL_CREATEINSTANCE2( UnoControlRoadmapModel ) 200 IMPL_CREATEINSTANCE2( UnoSimpleAnimationControl ) 201 IMPL_CREATEINSTANCE2( UnoSimpleAnimationControlModel ) 202 IMPL_CREATEINSTANCE2( UnoThrobberControl ) 203 IMPL_CREATEINSTANCE2( UnoThrobberControlModel ) 204 IMPL_CREATEINSTANCE2( UnoControlTabPage ) 205 IMPL_CREATEINSTANCE2( UnoControlTabPageModel ) 206 IMPL_CREATEINSTANCE2( UnoControlTabPageContainer ) 207 IMPL_CREATEINSTANCE2( UnoControlTabPageContainerModel ) 208 IMPL_CREATEINSTANCE2( AnimatedImagesControl ) 209 IMPL_CREATEINSTANCE2( AnimatedImagesControlModel ) 210 IMPL_CREATEINSTANCE2( SpinningProgressControlModel ) 211 212 IMPL_CREATE_INSTANCE_WITH_GEOMETRY( UnoControlDialogModel ) 213 214 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 >& ); 215 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 >& ); 216 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 >& ); 217 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 >& ); 218 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 >& ); 219 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 >& ); 220 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 >& ); 221 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 >& ); 222 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 >& ); 223 224 extern void * SAL_CALL comp_AsyncCallback_component_getFactory( const char * implName, void * serviceManager, void * registryKey ); 225 226 extern void * SAL_CALL comp_Layout_component_getFactory( const char * implName, void * serviceManager, void * registryKey ); 227 228 extern "C" 229 { 230 231 TOOLKIT_DLLPUBLIC void SAL_CALL component_getImplementationEnvironment( const sal_Char** ppEnvTypeName, uno_Environment** ) 232 { 233 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 234 } 235 236 237 TOOLKIT_DLLPUBLIC void* SAL_CALL component_getFactory( const sal_Char* sImplementationName, void* _pServiceManager, void* _pRegistryKey ) 238 { 239 void* pRet = NULL; 240 241 if ( _pServiceManager ) 242 { 243 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory = 244 static_cast< ::com::sun::star::lang::XMultiServiceFactory* >( _pServiceManager ); 245 246 GET_FACTORY( VCLXToolkit, szServiceName_Toolkit, szServiceName2_Toolkit ) 247 GET_FACTORY( VCLXPopupMenu, szServiceName_PopupMenu, szServiceName2_PopupMenu ) 248 GET_FACTORY( VCLXMenuBar, szServiceName_MenuBar, szServiceName2_MenuBar ) 249 GET_FACTORY( VCLXPointer, szServiceName_Pointer, szServiceName2_Pointer ) 250 GET_FACTORY( UnoControlContainer, szServiceName_UnoControlContainer, szServiceName2_UnoControlContainer ) 251 GET_FACTORY( UnoControlContainerModel, szServiceName_UnoControlContainerModel, szServiceName2_UnoControlContainerModel ) 252 GET_FACTORY( StdTabController, szServiceName_TabController, szServiceName2_TabController ) 253 GET_FACTORY( StdTabControllerModel, szServiceName_TabControllerModel, szServiceName2_TabControllerModel ) 254 GET_FACTORY( UnoDialogControl, szServiceName_UnoControlDialog, szServiceName2_UnoControlDialog ) 255 GET_FACTORY( UnoControlDialogModel, szServiceName_UnoControlDialogModel, szServiceName2_UnoControlDialogModel ) 256 GET_FACTORY( UnoEditControl, szServiceName_UnoControlEdit, szServiceName2_UnoControlEdit ) 257 GET_FACTORY( UnoControlEditModel, szServiceName_UnoControlEditModel, szServiceName2_UnoControlEditModel ) 258 GET_FACTORY( UnoDateFieldControl, szServiceName_UnoControlDateField, szServiceName2_UnoControlDateField ) 259 GET_FACTORY( UnoControlDateFieldModel, szServiceName_UnoControlDateFieldModel, szServiceName2_UnoControlDateFieldModel ) 260 GET_FACTORY( UnoTimeFieldControl, szServiceName_UnoControlTimeField, szServiceName2_UnoControlTimeField ) 261 GET_FACTORY( UnoControlTimeFieldModel, szServiceName_UnoControlTimeFieldModel, szServiceName2_UnoControlTimeFieldModel ) 262 GET_FACTORY( UnoNumericFieldControl, szServiceName_UnoControlNumericField, szServiceName2_UnoControlNumericField ) 263 GET_FACTORY( UnoControlNumericFieldModel, szServiceName_UnoControlNumericFieldModel, szServiceName2_UnoControlNumericFieldModel ) 264 GET_FACTORY( UnoCurrencyFieldControl, szServiceName_UnoControlCurrencyField, szServiceName2_UnoControlCurrencyField ) 265 GET_FACTORY( UnoControlCurrencyFieldModel, szServiceName_UnoControlCurrencyFieldModel, szServiceName2_UnoControlCurrencyFieldModel ) 266 GET_FACTORY( UnoPatternFieldControl, szServiceName_UnoControlPatternField, szServiceName2_UnoControlPatternField ) 267 GET_FACTORY( UnoControlPatternFieldModel, szServiceName_UnoControlPatternFieldModel, szServiceName2_UnoControlPatternFieldModel ) 268 GET_FACTORY( UnoFormattedFieldControl, szServiceName_UnoControlFormattedField, szServiceName2_UnoControlFormattedField ) 269 GET_FACTORY( UnoControlFormattedFieldModel, szServiceName_UnoControlFormattedFieldModel, szServiceName2_UnoControlFormattedFieldModel ) 270 GET_FACTORY( UnoFileControl, szServiceName_UnoControlFileControl, szServiceName2_UnoControlFileControl ) 271 GET_FACTORY( UnoControlFileControlModel, szServiceName_UnoControlFileControlModel, szServiceName2_UnoControlFileControlModel ) 272 GET_FACTORY( UnoButtonControl, szServiceName_UnoControlButton, szServiceName2_UnoControlButton ) 273 GET_FACTORY( UnoControlButtonModel, szServiceName_UnoControlButtonModel, szServiceName2_UnoControlButtonModel ) 274 GET_FACTORY( UnoImageControlControl, szServiceName_UnoControlImageButton, szServiceName2_UnoControlImageButton ) 275 GET_FACTORY( UnoControlImageControlModel, szServiceName_UnoControlImageButtonModel, szServiceName2_UnoControlImageButtonModel ) 276 GET_FACTORY( UnoImageControlControl, szServiceName_UnoControlImageControl, szServiceName2_UnoControlImageControl ) 277 GET_FACTORY( UnoControlImageControlModel, szServiceName_UnoControlImageControlModel, szServiceName2_UnoControlImageControlModel ) 278 GET_FACTORY( UnoRadioButtonControl, szServiceName_UnoControlRadioButton, szServiceName2_UnoControlRadioButton ) 279 GET_FACTORY( UnoControlRadioButtonModel, szServiceName_UnoControlRadioButtonModel, szServiceName2_UnoControlRadioButtonModel ) 280 GET_FACTORY( UnoCheckBoxControl, szServiceName_UnoControlCheckBox, szServiceName2_UnoControlCheckBox ) 281 GET_FACTORY( UnoControlCheckBoxModel, szServiceName_UnoControlCheckBoxModel, szServiceName2_UnoControlCheckBoxModel ) 282 GET_FACTORY( UnoListBoxControl, szServiceName_UnoControlListBox, szServiceName2_UnoControlListBox ) 283 GET_FACTORY( UnoControlListBoxModel, szServiceName_UnoControlListBoxModel, szServiceName2_UnoControlListBoxModel ) 284 GET_FACTORY( UnoComboBoxControl, szServiceName_UnoControlComboBox, szServiceName2_UnoControlComboBox ) 285 GET_FACTORY( UnoControlComboBoxModel, szServiceName_UnoControlComboBoxModel, szServiceName2_UnoControlComboBoxModel ) 286 GET_FACTORY( UnoFixedTextControl, szServiceName_UnoControlFixedText, szServiceName2_UnoControlFixedText ) 287 GET_FACTORY( UnoControlFixedTextModel, szServiceName_UnoControlFixedTextModel, szServiceName2_UnoControlFixedTextModel ) 288 GET_FACTORY( UnoGroupBoxControl, szServiceName_UnoControlGroupBox, szServiceName2_UnoControlGroupBox ) 289 GET_FACTORY( UnoControlGroupBoxModel, szServiceName_UnoControlGroupBoxModel, szServiceName2_UnoControlGroupBoxModel ) 290 GET_FACTORY( UnoProgressBarControl, szServiceName_UnoControlProgressBar, szServiceName2_UnoControlProgressBar ) 291 GET_FACTORY( UnoControlProgressBarModel, szServiceName_UnoControlProgressBarModel, szServiceName2_UnoControlProgressBarModel ) 292 GET_FACTORY( UnoScrollBarControl, szServiceName_UnoControlScrollBar, szServiceName2_UnoControlScrollBar ) 293 GET_FACTORY( UnoControlScrollBarModel, szServiceName_UnoControlScrollBarModel, szServiceName2_UnoControlScrollBarModel ) 294 GET_FACTORY( UnoFixedLineControl, szServiceName_UnoControlFixedLine, szServiceName2_UnoControlFixedLine ) 295 GET_FACTORY( UnoControlFixedLineModel, szServiceName_UnoControlFixedLineModel, szServiceName2_UnoControlFixedLineModel ) 296 GET_FACTORY( VCLXPrinterServer, szServiceName_PrinterServer, szServiceName2_PrinterServer ) 297 GET_FACTORY( UnoRoadmapControl, szServiceName_UnoControlRoadmap, szServiceName2_UnoControlRoadmap ) 298 GET_FACTORY( UnoControlRoadmapModel, szServiceName_UnoControlRoadmapModel, szServiceName2_UnoControlRoadmapModel ) 299 GET_FACTORY( UnoSpinButtonModel, szServiceName_UnoSpinButtonModel, NULL ) 300 GET_FACTORY( UnoSpinButtonControl, szServiceName_UnoSpinButtonControl, NULL ) 301 GET_FACTORY( TreeControl, szServiceName_TreeControl, NULL ) 302 GET_FACTORY( TreeControlModel, szServiceName_TreeControlModel, NULL ) 303 GET_FACTORY( MutableTreeDataModel, szServiceName_MutableTreeDataModel, NULL ) 304 GET_FACTORY( UnoSimpleAnimationControlModel, szServiceName_UnoSimpleAnimationControlModel, szServiceName2_UnoSimpleAnimationControlModel ) 305 GET_FACTORY( UnoSimpleAnimationControl, szServiceName_UnoSimpleAnimationControl, szServiceName2_UnoSimpleAnimationControl ) 306 GET_FACTORY( UnoThrobberControlModel, szServiceName_UnoThrobberControlModel, szServiceName2_UnoThrobberControlModel ) 307 GET_FACTORY( UnoThrobberControl, szServiceName_UnoThrobberControl, szServiceName2_UnoThrobberControl ) 308 GET_FACTORY( UnoFixedHyperlinkControl, szServiceName_UnoControlFixedHyperlink, NULL ) 309 GET_FACTORY( UnoControlFixedHyperlinkModel, szServiceName_UnoControlFixedHyperlinkModel, NULL ) 310 GET_FACTORY( GridControl, szServiceName_GridControl, NULL ); 311 GET_FACTORY( GridControlModel, szServiceName_GridControlModel, NULL ); 312 GET_FACTORY( DefaultGridDataModel, szServiceName_DefaultGridDataModel, NULL ); 313 GET_FACTORY( DefaultGridColumnModel, szServiceName_DefaultGridColumnModel, NULL ); 314 GET_FACTORY_WITH_IMPL_PREFIX( GridColumn, "org.openoffice.comp.toolkit", szServiceName_GridColumn, NULL ); 315 GET_FACTORY_WITH_IMPL_PREFIX( SortableGridDataModel, "org.openoffice.comp.toolkit", szServiceName_SortableGridDataModel, NULL ); 316 GET_FACTORY( UnoControlTabPageModel, szServiceName_UnoControlTabPageModel, NULL ) 317 GET_FACTORY( UnoControlTabPage, szServiceName_UnoControlTabPage, NULL ) 318 GET_FACTORY( UnoControlTabPageContainerModel, szServiceName_UnoControlTabPageContainerModel, NULL ) 319 GET_FACTORY( UnoControlTabPageContainer, szServiceName_UnoControlTabPageContainer, NULL ) 320 GET_FACTORY_WITH_IMPL_PREFIX( AnimatedImagesControl, "org.openoffice.comp.toolkit", szServiceName_AnimatedImagesControl, NULL ) 321 GET_FACTORY_WITH_IMPL_PREFIX( AnimatedImagesControlModel, "org.openoffice.comp.toolkit", szServiceName_AnimatedImagesControlModel, NULL ) 322 GET_FACTORY_WITH_IMPL_PREFIX( SpinningProgressControlModel, "org.openoffice.comp.toolkit", szServiceName_SpinningProgressControlModel, NULL ) 323 324 if ( rtl_str_compare( sImplementationName, "com.sun.star.awt.comp.AsyncCallback" ) == 0 ) 325 return comp_AsyncCallback_component_getFactory( sImplementationName, _pServiceManager, _pRegistryKey ); 326 if( pRet == 0 ) 327 pRet = comp_Layout_component_getFactory( sImplementationName, _pServiceManager, _pRegistryKey ); 328 } 329 return pRet; 330 } 331 } 332 333 334 335