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