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