LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/toolkit/controls - unocontrols.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 9 143 6.3 %
Date: 2012-12-27 Functions: 10 209 4.8 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef _TOOLKIT_HELPER_UNOCONTROLS_HXX_
      21             : #define _TOOLKIT_HELPER_UNOCONTROLS_HXX_
      22             : 
      23             : #include <toolkit/dllapi.h>
      24             : #include <com/sun/star/awt/XTextComponent.hpp>
      25             : #include <com/sun/star/awt/XTextListener.hpp>
      26             : #include <com/sun/star/awt/XLayoutConstrains.hpp>
      27             : #include <com/sun/star/awt/XTextLayoutConstrains.hpp>
      28             : #include <com/sun/star/awt/XButton.hpp>
      29             : #include <com/sun/star/awt/XToggleButton.hpp>
      30             : #include <com/sun/star/awt/XRadioButton.hpp>
      31             : #include <com/sun/star/awt/XItemListener.hpp>
      32             : #include <com/sun/star/awt/XCheckBox.hpp>
      33             : #include <com/sun/star/awt/XFixedHyperlink.hpp>
      34             : #include <com/sun/star/awt/XFixedText.hpp>
      35             : #include <com/sun/star/awt/XListBox.hpp>
      36             : #include <com/sun/star/awt/XComboBox.hpp>
      37             : #include <com/sun/star/awt/XDateField.hpp>
      38             : #include <com/sun/star/awt/XSpinField.hpp>
      39             : #include <com/sun/star/awt/XTimeField.hpp>
      40             : #include <com/sun/star/awt/XNumericField.hpp>
      41             : #include <com/sun/star/awt/XCurrencyField.hpp>
      42             : #include <com/sun/star/awt/XPatternField.hpp>
      43             : #include <com/sun/star/awt/XProgressBar.hpp>
      44             : #include <com/sun/star/awt/XItemList.hpp>
      45             : #include <com/sun/star/graphic/XGraphicObject.hpp>
      46             : #include <toolkit/controls/unocontrolmodel.hxx>
      47             : #include <toolkit/controls/unocontrolbase.hxx>
      48             : #include <toolkit/helper/macros.hxx>
      49             : #include <toolkit/helper/servicenames.hxx>
      50             : #include <vcl/bitmapex.hxx>
      51             : #include <cppuhelper/implbase5.hxx>
      52             : #include <cppuhelper/implbase4.hxx>
      53             : #include <cppuhelper/implbase2.hxx>
      54             : #include <cppuhelper/implbase1.hxx>
      55             : #include <comphelper/uno3.hxx>
      56             : 
      57             : #include <list>
      58             : #include <vector>
      59             : 
      60             : #include <boost/scoped_ptr.hpp>
      61             : #include <boost/optional.hpp>
      62             : 
      63             : #define UNO_NAME_GRAPHOBJ_URLPREFIX                             "vnd.sun.star.GraphicObject:"
      64             : #define UNO_NAME_GRAPHOBJ_URLPKGPREFIX                  "vnd.sun.star.Package:"
      65             : 
      66             : class ImageHelper
      67             : {
      68             : public:
      69             :     // The routine will always attempt to return a valid XGraphic for the
      70             :     // passed _rURL, additionallly xOutGraphicObject will contain the
      71             :     // associated XGraphicObject ( if url is valid for that ) and is set
      72             :     // appropriately ( e.g. NULL if non GraphicObject scheme ) or a valid
      73             :     // object if the rURL points to a valid object
      74             :     static ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > getGraphicAndGraphicObjectFromURL_nothrow( ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphicObject >& xOutGraphicObject, const ::rtl::OUString& _rURL );
      75             :     static ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > getGraphicFromURL_nothrow( const ::rtl::OUString& _rURL );
      76             : 
      77             : };
      78             : 
      79             : //  ----------------------------------------------------
      80             : //  class UnoControlEditModel
      81             : //  ----------------------------------------------------
      82           0 : class UnoControlEditModel : public UnoControlModel
      83             : {
      84             : protected:
      85             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
      86             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
      87             : 
      88             : public:
      89             :                         UnoControlEditModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
      90           0 :                         UnoControlEditModel( const UnoControlEditModel& rModel ) : UnoControlModel( rModel ) {;}
      91             : 
      92           0 :     UnoControlModel*    Clone() const { return new UnoControlEditModel( *this ); }
      93             : 
      94             :     // ::com::sun::star::io::XPersistObject
      95             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
      96             : 
      97             :     // ::com::sun::star::beans::XMultiPropertySet
      98             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
      99             : 
     100             : 
     101             :     // XServiceInfo
     102           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlEditModel, UnoControlModel, szServiceName2_UnoControlEditModel )
     103             : };
     104             : 
     105             : //  ----------------------------------------------------
     106             : //  class UnoEditControl
     107             : //  ----------------------------------------------------
     108             : typedef ::cppu::ImplHelper4  <   ::com::sun::star::awt::XTextComponent
     109             :                              ,   ::com::sun::star::awt::XTextListener
     110             :                              ,   ::com::sun::star::awt::XLayoutConstrains
     111             :                              ,   ::com::sun::star::awt::XTextLayoutConstrains
     112             :                              >   UnoEditControl_Base;
     113           2 : class TOOLKIT_DLLPUBLIC UnoEditControl    :public UnoControlBase
     114             :                                             ,public UnoEditControl_Base
     115             : {
     116             : private:
     117             :     TextListenerMultiplexer maTextListeners;
     118             : 
     119             :     // Not all fields derived from UnoEditCOntrol have the property "Text"
     120             :     // They only support XTextComponent, so keep the text
     121             :     // here, maybe there is no Peer when calling setText()...
     122             :     ::rtl::OUString     maText;
     123             :     sal_uInt16              mnMaxTextLen;
     124             : 
     125             :     sal_Bool            mbSetTextInPeer;
     126             :     sal_Bool            mbSetMaxTextLenInPeer;
     127             :     sal_Bool            mbHasTextProperty;
     128             : 
     129             : public:
     130             : 
     131             :                                 UnoEditControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     132             :     ::rtl::OUString             GetComponentServiceName();
     133           0 :     TextListenerMultiplexer&    GetTextListeners()  { return maTextListeners; }
     134             : 
     135             :     void                        ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
     136             : 
     137             :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
     138           2 :     void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
     139             :     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
     140             : 
     141             :     // disambiguate XInterface
     142             :     DECLARE_XINTERFACE()
     143             : 
     144             :     // XAggregation
     145             :     ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
     146             : 
     147             :     // XTypeProvider
     148             :     DECLARE_XTYPEPROVIDER()
     149             : 
     150             :     // XTextListener
     151             :     void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
     152             : 
     153             :     // XTextComponent
     154             :     void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     155             :     void SAL_CALL removeTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     156             :     void SAL_CALL setText( const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException);
     157             :     void SAL_CALL insertText( const ::com::sun::star::awt::Selection& Sel, const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
     158             :     ::rtl::OUString SAL_CALL getText(  ) throw(::com::sun::star::uno::RuntimeException);
     159             :     ::rtl::OUString SAL_CALL getSelectedText(  ) throw(::com::sun::star::uno::RuntimeException);
     160             :     void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw(::com::sun::star::uno::RuntimeException);
     161             :     ::com::sun::star::awt::Selection SAL_CALL getSelection(  ) throw(::com::sun::star::uno::RuntimeException);
     162             :     sal_Bool SAL_CALL isEditable(  ) throw(::com::sun::star::uno::RuntimeException);
     163             :     void SAL_CALL setEditable( sal_Bool bEditable ) throw(::com::sun::star::uno::RuntimeException);
     164             :     void SAL_CALL setMaxTextLen( sal_Int16 nLen ) throw(::com::sun::star::uno::RuntimeException);
     165             :     sal_Int16 SAL_CALL getMaxTextLen(  ) throw(::com::sun::star::uno::RuntimeException);
     166             : 
     167             :     // XLayoutConstrains
     168             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
     169             :     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
     170             :     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
     171             : 
     172             :     // XTextLayoutConstrains
     173             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
     174             :     void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException);
     175             : 
     176             :     // XServiceInfo
     177             :     ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
     178             :     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
     179             : 
     180             :     sal_Bool SAL_CALL setModel(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model) throw ( ::com::sun::star::uno::RuntimeException );
     181             : };
     182             : 
     183             : //  ----------------------------------------------------
     184             : //  class UnoControlFileControlModel
     185             : //  ----------------------------------------------------
     186           0 : class UnoControlFileControlModel : public UnoControlModel
     187             : {
     188             : protected:
     189             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
     190             :     ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
     191             : 
     192             : public:
     193             :                         UnoControlFileControlModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     194           0 :                         UnoControlFileControlModel( const UnoControlFileControlModel& rModel ) : UnoControlModel( rModel ) {;}
     195             : 
     196           0 :     UnoControlModel*    Clone() const { return new UnoControlFileControlModel( *this ); }
     197             : 
     198             :     // ::com::sun::star::io::XPersistObject
     199             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
     200             : 
     201             :     // ::com::sun::star::beans::XMultiPropertySet
     202             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
     203             : 
     204             :     // ::com::sun::star::lang::XServiceInfo
     205           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlFileControlModel, UnoControlModel, szServiceName2_UnoControlFileControlModel )
     206             : };
     207             : 
     208             : //  ----------------------------------------------------
     209             : //  class UnoFileControl
     210             : //  ----------------------------------------------------
     211           0 : class UnoFileControl : public UnoEditControl
     212             : {
     213             : public:
     214             :                         UnoFileControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     215             :     ::rtl::OUString     GetComponentServiceName();
     216             : 
     217             :     // ::com::sun::star::lang::XServiceInfo
     218           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoFileControl, UnoEditControl, szServiceName2_UnoControlFileControl )
     219             : };
     220             : 
     221             : //  ----------------------------------------------------
     222             : //  class GraphicControlModel
     223             : //  ----------------------------------------------------
     224           4 : class GraphicControlModel : public UnoControlModel
     225             : {
     226             : private:
     227             :     bool                                                                                    mbAdjustingImagePosition;
     228             :     bool                                                                                    mbAdjustingGraphic;
     229             : 
     230             :     ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphicObject > mxGrfObj;
     231             : 
     232             : protected:
     233           8 :     GraphicControlModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory )
     234             :         :UnoControlModel( i_factory )
     235             :         ,mbAdjustingImagePosition( false )
     236           8 :         ,mbAdjustingGraphic( false )
     237             :     {
     238           8 :     }
     239           0 :     GraphicControlModel( const GraphicControlModel& _rSource ) : UnoControlModel( _rSource ), mbAdjustingImagePosition( false ), mbAdjustingGraphic( false ) { }
     240             : 
     241             :     // ::cppu::OPropertySetHelper
     242             :     void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
     243             : 
     244             :     // UnoControlModel
     245             :     ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
     246             : 
     247             : private:
     248             :         GraphicControlModel& operator=( const GraphicControlModel& );   // never implemented
     249             : };
     250             : 
     251             : //  ----------------------------------------------------
     252             : //  class UnoControlButtonModel
     253             : //  ----------------------------------------------------
     254           6 : class UnoControlButtonModel : public GraphicControlModel
     255             : {
     256             : protected:
     257             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
     258             :     ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
     259             : 
     260             : public:
     261             :                         UnoControlButtonModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     262           0 :                         UnoControlButtonModel( const UnoControlButtonModel& rModel ) : GraphicControlModel( rModel ) {;}
     263             : 
     264           0 :     UnoControlModel*    Clone() const { return new UnoControlButtonModel( *this ); }
     265             : 
     266             :     // ::com::sun::star::beans::XMultiPropertySet
     267             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
     268             : 
     269             :     // ::com::sun::star::io::XPersistObject
     270             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
     271             : 
     272             :     // ::com::sun::star::lang::XServiceInfo
     273           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlButtonModel, GraphicControlModel, szServiceName2_UnoControlButtonModel )
     274             : };
     275             : 
     276             : //  ----------------------------------------------------
     277             : //  class UnoButtonControl
     278             : //  ----------------------------------------------------
     279             : typedef ::cppu::AggImplInheritanceHelper4   <   UnoControlBase
     280             :                                             ,   ::com::sun::star::awt::XButton
     281             :                                             ,   ::com::sun::star::awt::XToggleButton
     282             :                                             ,   ::com::sun::star::awt::XLayoutConstrains
     283             :                                             ,   ::com::sun::star::awt::XItemListener
     284             :                                             >   UnoButtonControl_Base;
     285           0 : class UnoButtonControl :    public UnoButtonControl_Base
     286             : {
     287             : private:
     288             :     ActionListenerMultiplexer   maActionListeners;
     289             :     ItemListenerMultiplexer     maItemListeners;
     290             :     ::rtl::OUString             maActionCommand;
     291             : 
     292             : public:
     293             : 
     294             :                         UnoButtonControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     295             :     ::rtl::OUString     GetComponentServiceName();
     296             : 
     297             :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
     298             :     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
     299             : 
     300             :     // ::com::sun::star::awt::XButton
     301             :     void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     302             :     void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     303             :     void SAL_CALL setLabel( const ::rtl::OUString& Label ) throw(::com::sun::star::uno::RuntimeException);
     304             :     void SAL_CALL setActionCommand( const ::rtl::OUString& Command ) throw(::com::sun::star::uno::RuntimeException);
     305             : 
     306             :     // ::com::sun::star::awt::XToggleButton
     307             :     // ::com::sun::star::awt::XItemEventBroadcaster
     308             :     void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     309             :     void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     310             : 
     311             :     // ::com::sun::star::lang::XEventListener
     312             :     virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
     313             : 
     314             :     // XItemListener
     315             :     virtual void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw (::com::sun::star::uno::RuntimeException);
     316             : 
     317             :     // ::com::sun::star::awt::XLayoutConstrains
     318             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
     319             :     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
     320             :     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
     321             : 
     322             :     // ::com::sun::star::lang::XServiceInfo
     323           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoButtonControl, UnoControlBase, szServiceName2_UnoControlButton )
     324             : };
     325             : 
     326             : //  ----------------------------------------------------
     327             : //  class UnoControlImageControlModel
     328             : //  ----------------------------------------------------
     329           0 : class UnoControlImageControlModel : public GraphicControlModel
     330             : {
     331             : private:
     332             :     bool    mbAdjustingImageScaleMode;
     333             : 
     334             : protected:
     335             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
     336             :     ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
     337             : 
     338             : public:
     339             :                                     UnoControlImageControlModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     340           0 :                                     UnoControlImageControlModel( const UnoControlImageControlModel& rModel ) : GraphicControlModel( rModel ), mbAdjustingImageScaleMode( false ) { }
     341             : 
     342           0 :     UnoControlModel*    Clone() const { return new UnoControlImageControlModel( *this ); }
     343             : 
     344             :     // ::com::sun::star::beans::XMultiPropertySet
     345             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
     346             : 
     347             :     // ::com::sun::star::io::XPersistObject
     348             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
     349             : 
     350             :     // ::com::sun::star::lang::XServiceInfo
     351           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlImageControlModel, GraphicControlModel, szServiceName2_UnoControlImageControlModel )
     352             : 
     353             :     // ::cppu::OPropertySetHelper
     354             :     void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
     355             : };
     356             : 
     357             : //  ----------------------------------------------------
     358             : //  class UnoImageControlControl
     359             : //  ----------------------------------------------------
     360             : typedef ::cppu::AggImplInheritanceHelper1   <   UnoControlBase
     361             :                                             ,   ::com::sun::star::awt::XLayoutConstrains
     362             :                                             >   UnoImageControlControl_Base;
     363           0 : class UnoImageControlControl : public UnoImageControlControl_Base
     364             : {
     365             : private:
     366             :     ActionListenerMultiplexer   maActionListeners;
     367             :     ::rtl::OUString             maActionCommand;
     368             : 
     369             : public:
     370             : 
     371             :                             UnoImageControlControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     372             :     ::rtl::OUString         GetComponentServiceName();
     373             : 
     374             :     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
     375             : 
     376             :     // ::com::sun::star::awt::XControl
     377             :     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
     378             : 
     379             :     // ::com::sun::star::awt::XLayoutConstrains
     380             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
     381             :     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
     382             :     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
     383             : 
     384             :     // ::com::sun::star::lang::XServiceInfo
     385           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoImageControlControl, UnoControlBase, szServiceName2_UnoControlImageControl )
     386             : };
     387             : 
     388             : //  ----------------------------------------------------
     389             : //  class UnoControlRadioButtonModel
     390             : //  ----------------------------------------------------
     391           0 : class UnoControlRadioButtonModel :  public GraphicControlModel
     392             : 
     393             : {
     394             : protected:
     395             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
     396             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
     397             : 
     398             : public:
     399             :                         UnoControlRadioButtonModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     400           0 :                         UnoControlRadioButtonModel( const UnoControlRadioButtonModel& rModel ) : GraphicControlModel( rModel ) {;}
     401             : 
     402           0 :     UnoControlModel*    Clone() const { return new UnoControlRadioButtonModel( *this ); }
     403             : 
     404             :     // ::com::sun::star::io::XPersistObject
     405             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
     406             : 
     407             :     // ::com::sun::star::beans::XMultiPropertySet
     408             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
     409             : 
     410             :     // ::com::sun::star::lang::XServiceInfo
     411           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlRadioButtonModel, GraphicControlModel, szServiceName2_UnoControlRadioButtonModel )
     412             : 
     413             : };
     414             : 
     415             : //  ----------------------------------------------------
     416             : //  class UnoRadioButtonControl
     417             : //  ----------------------------------------------------
     418             : typedef ::cppu::AggImplInheritanceHelper4   <   UnoControlBase
     419             :                                             ,   ::com::sun::star::awt::XButton
     420             :                                             ,   ::com::sun::star::awt::XRadioButton
     421             :                                             ,   ::com::sun::star::awt::XItemListener
     422             :                                             ,   ::com::sun::star::awt::XLayoutConstrains
     423             :                                             >   UnoRadioButtonControl_Base;
     424           0 : class UnoRadioButtonControl : public UnoRadioButtonControl_Base
     425             : {
     426             : private:
     427             :     ItemListenerMultiplexer     maItemListeners;
     428             :     ActionListenerMultiplexer   maActionListeners;
     429             :     ::rtl::OUString             maActionCommand;
     430             : 
     431             : public:
     432             : 
     433             :                             UnoRadioButtonControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     434             :     ::rtl::OUString         GetComponentServiceName();
     435             : 
     436             :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
     437             :     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
     438           0 :     void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
     439             : 
     440             :     // ::com::sun::star::awt::XControl
     441             :     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
     442             : 
     443             :     // ::com::sun::star::awt::XButton
     444             :     void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     445             :     void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     446             :     void SAL_CALL setActionCommand( const ::rtl::OUString& Command ) throw(::com::sun::star::uno::RuntimeException);
     447             : 
     448             :     // ::com::sun::star::awt::XRadioButton
     449             :     void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     450             :     void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     451             :     sal_Bool SAL_CALL getState(  ) throw(::com::sun::star::uno::RuntimeException);
     452             :     void SAL_CALL setState( sal_Bool b ) throw(::com::sun::star::uno::RuntimeException);
     453             :     void SAL_CALL setLabel( const ::rtl::OUString& Label ) throw(::com::sun::star::uno::RuntimeException);
     454             : 
     455             :     // ::com::sun::star::awt::XItemListener
     456             :     void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
     457             : 
     458             :     // ::com::sun::star::awt::XLayoutConstrains
     459             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
     460             :     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
     461             :     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
     462             : 
     463             :     // ::com::sun::star::lang::XServiceInfo
     464           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoRadioButtonControl, UnoControlBase, szServiceName2_UnoControlRadioButton )
     465             : 
     466             : };
     467             : 
     468             : //  ----------------------------------------------------
     469             : //  class UnoControlCheckBoxModel
     470             : //  ----------------------------------------------------
     471           2 : class UnoControlCheckBoxModel : public GraphicControlModel
     472             : {
     473             : protected:
     474             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
     475             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
     476             : 
     477             : public:
     478             :                         UnoControlCheckBoxModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     479           0 :                         UnoControlCheckBoxModel( const UnoControlCheckBoxModel& rModel ) : GraphicControlModel( rModel ) {;}
     480             : 
     481           0 :     UnoControlModel*    Clone() const { return new UnoControlCheckBoxModel( *this ); }
     482             : 
     483             :     // ::com::sun::star::io::XPersistObject
     484             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
     485             : 
     486             :     // ::com::sun::star::beans::XMultiPropertySet
     487             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
     488             : 
     489             :     // ::com::sun::star::lang::XServiceInfo
     490           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlCheckBoxModel, GraphicControlModel, szServiceName2_UnoControlCheckBoxModel )
     491             : };
     492             : 
     493             : //  ----------------------------------------------------
     494             : //  class UnoCheckBoxControl
     495             : //  ----------------------------------------------------
     496             : typedef ::cppu::AggImplInheritanceHelper4   <   UnoControlBase
     497             :                                             ,   ::com::sun::star::awt::XButton
     498             :                                             ,   ::com::sun::star::awt::XCheckBox
     499             :                                             ,   ::com::sun::star::awt::XItemListener
     500             :                                             ,   ::com::sun::star::awt::XLayoutConstrains
     501             :                                             >   UnoCheckBoxControl_Base;
     502             : class UnoCheckBoxControl : public UnoCheckBoxControl_Base
     503             : {
     504             : private:
     505             :     ItemListenerMultiplexer     maItemListeners;
     506             :     ActionListenerMultiplexer   maActionListeners;
     507             :     ::rtl::OUString             maActionCommand;
     508             : 
     509             : public:
     510             : 
     511             :                             UnoCheckBoxControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     512           0 :                             ~UnoCheckBoxControl(){;}
     513             :     ::rtl::OUString         GetComponentServiceName();
     514             : 
     515             :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
     516             :     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
     517           0 :     void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
     518             : 
     519             :     // ::com::sun::star::awt::XControl
     520             :     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
     521             : 
     522             :     // ::com::sun::star::awt::XButton
     523             :     void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     524             :     void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     525             :     void SAL_CALL setActionCommand( const ::rtl::OUString& Command ) throw(::com::sun::star::uno::RuntimeException);
     526             : 
     527             :     virtual void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw (::com::sun::star::uno::RuntimeException);
     528             :     virtual void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw (::com::sun::star::uno::RuntimeException);
     529             : 
     530             : 
     531             :     sal_Int16 SAL_CALL getState(  ) throw(::com::sun::star::uno::RuntimeException);
     532             :     void SAL_CALL setState( sal_Int16 n ) throw(::com::sun::star::uno::RuntimeException);
     533             :     void SAL_CALL setLabel( const ::rtl::OUString& Label ) throw(::com::sun::star::uno::RuntimeException);
     534             :     void SAL_CALL enableTriState( sal_Bool b ) throw(::com::sun::star::uno::RuntimeException);
     535             : 
     536             :     // ::com::sun::star::awt::XItemListener
     537             :     void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
     538             : 
     539             :     // ::com::sun::star::awt::XLayoutConstrains
     540             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
     541             :     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
     542             :     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
     543             : 
     544             :     // ::com::sun::star::lang::XServiceInfo
     545           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoCheckBoxControl, UnoControlBase, szServiceName2_UnoControlCheckBox )
     546             : 
     547             : };
     548             : 
     549             : //  ----------------------------------------------------
     550             : //  class UnoControlFixedTextModel
     551             : //  ----------------------------------------------------
     552           0 : class UnoControlFixedHyperlinkModel : public UnoControlModel
     553             : {
     554             : protected:
     555             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
     556             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
     557             : 
     558             : public:
     559             :     UnoControlFixedHyperlinkModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     560           0 :     UnoControlFixedHyperlinkModel( const UnoControlFixedHyperlinkModel& rModel ) : UnoControlModel( rModel ) {;}
     561             : 
     562           0 :     UnoControlModel*    Clone() const { return new UnoControlFixedHyperlinkModel( *this ); }
     563             : 
     564             :     // ::com::sun::star::io::XPersistObject
     565             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
     566             : 
     567             :     // ::com::sun::star::beans::XMultiPropertySet
     568             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
     569             : 
     570             :     // ::com::sun::star::lang::XServiceInfo
     571           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlFixedHyperlinkModel, UnoControlModel, szServiceName_UnoControlFixedHyperlinkModel )
     572             : };
     573             : 
     574             : //  ----------------------------------------------------
     575             : //  class UnoFixedHyperlinkControl
     576             : //  ----------------------------------------------------
     577           0 : class UnoFixedHyperlinkControl : public UnoControlBase,
     578             :                                  public ::com::sun::star::awt::XFixedHyperlink,
     579             :                                  public ::com::sun::star::awt::XLayoutConstrains
     580             : {
     581             : private:
     582             :     ActionListenerMultiplexer   maActionListeners;
     583             : 
     584             : public:
     585             :     UnoFixedHyperlinkControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     586             : 
     587             :     ::rtl::OUString     GetComponentServiceName();
     588             : 
     589           0 :     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
     590             :     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
     591           0 :     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
     592           0 :     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
     593             : 
     594             :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
     595             :     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
     596             : 
     597             :     // ::com::sun::star::lang::XTypeProvider
     598             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
     599             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
     600             : 
     601             :     // ::com::sun::star::awt::XControl
     602             :     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
     603             : 
     604             :     // ::com::sun::star::awt::XFixedHyperlink
     605             :     void SAL_CALL setText( const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
     606             :     ::rtl::OUString SAL_CALL getText(  ) throw(::com::sun::star::uno::RuntimeException);
     607             :     void SAL_CALL setURL( const ::rtl::OUString& URL ) throw(::com::sun::star::uno::RuntimeException);
     608             :     ::rtl::OUString SAL_CALL getURL(  ) throw(::com::sun::star::uno::RuntimeException);
     609             :     void SAL_CALL setAlignment( sal_Int16 nAlign ) throw(::com::sun::star::uno::RuntimeException);
     610             :     sal_Int16 SAL_CALL getAlignment(  ) throw(::com::sun::star::uno::RuntimeException);
     611             :     void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     612             :     void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     613             : 
     614             :     // ::com::sun::star::awt::XLayoutConstrains
     615             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
     616             :     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
     617             :     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
     618             : 
     619             :     // ::com::sun::star::lang::XServiceInfo
     620           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoFixedHyperlinkControl, UnoControlBase, szServiceName_UnoControlFixedHyperlink )
     621             : };
     622             : 
     623             : //  ----------------------------------------------------
     624             : //  class UnoControlFixedTextModel
     625             : //  ----------------------------------------------------
     626           0 : class UnoControlFixedTextModel : public UnoControlModel
     627             : {
     628             : protected:
     629             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
     630             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
     631             : 
     632             : public:
     633             :                         UnoControlFixedTextModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     634           0 :                         UnoControlFixedTextModel( const UnoControlFixedTextModel& rModel ) : UnoControlModel( rModel ) {;}
     635             : 
     636           0 :     UnoControlModel*    Clone() const { return new UnoControlFixedTextModel( *this ); }
     637             : 
     638             :     // ::com::sun::star::io::XPersistObject
     639             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
     640             : 
     641             :     // ::com::sun::star::beans::XMultiPropertySet
     642             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
     643             : 
     644             :     // ::com::sun::star::lang::XServiceInfo
     645           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlFixedTextModel, UnoControlModel, szServiceName2_UnoControlFixedTextModel )
     646             : 
     647             : };
     648             : 
     649             : //  ----------------------------------------------------
     650             : //  class UnoFixedTextControl
     651             : //  ----------------------------------------------------
     652           0 : class UnoFixedTextControl : public UnoControlBase,
     653             :                             public ::com::sun::star::awt::XFixedText,
     654             :                             public ::com::sun::star::awt::XLayoutConstrains
     655             : {
     656             : public:
     657             :                         UnoFixedTextControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     658             :     ::rtl::OUString     GetComponentServiceName();
     659             : 
     660           0 :     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
     661             :     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
     662           0 :     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
     663           0 :     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
     664             : 
     665             :     // ::com::sun::star::lang::XTypeProvider
     666             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
     667             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
     668             : 
     669             :     // ::com::sun::star::awt::XControl
     670             :     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
     671             : 
     672             :     // ::com::sun::star::awt::XFixedText
     673             :     void SAL_CALL setText( const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
     674             :     ::rtl::OUString SAL_CALL getText(  ) throw(::com::sun::star::uno::RuntimeException);
     675             :     void SAL_CALL setAlignment( sal_Int16 nAlign ) throw(::com::sun::star::uno::RuntimeException);
     676             :     sal_Int16 SAL_CALL getAlignment(  ) throw(::com::sun::star::uno::RuntimeException);
     677             : 
     678             :     // ::com::sun::star::awt::XLayoutConstrains
     679             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
     680             :     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
     681             :     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
     682             : 
     683             :     // ::com::sun::star::lang::XServiceInfo
     684           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoFixedTextControl, UnoControlBase, szServiceName2_UnoControlFixedText )
     685             : 
     686             : };
     687             : 
     688             : //  ----------------------------------------------------
     689             : //  class UnoControlGroupBoxModel
     690             : //  ----------------------------------------------------
     691           2 : class UnoControlGroupBoxModel : public UnoControlModel
     692             : {
     693             : protected:
     694             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
     695             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
     696             : 
     697             : public:
     698             :                         UnoControlGroupBoxModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     699           0 :                         UnoControlGroupBoxModel( const UnoControlGroupBoxModel& rModel ) : UnoControlModel( rModel ) {;}
     700             : 
     701           0 :     UnoControlModel*    Clone() const { return new UnoControlGroupBoxModel( *this ); }
     702             : 
     703             :     // ::com::sun::star::io::XPersistObject
     704             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
     705             : 
     706             :     // ::com::sun::star::beans::XMultiPropertySet
     707             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
     708             : 
     709             :     // ::com::sun::star::lang::XServiceInfo
     710           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlGroupBoxModel, UnoControlModel, szServiceName2_UnoControlGroupBoxModel )
     711             : 
     712             : };
     713             : 
     714             : //  ----------------------------------------------------
     715             : //  class UnoGroupBoxControl
     716             : //  ----------------------------------------------------
     717           0 : class UnoGroupBoxControl :  public UnoControlBase
     718             : {
     719             : public:
     720             :                         UnoGroupBoxControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     721             :     ::rtl::OUString     GetComponentServiceName();
     722             : 
     723             :     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
     724             : 
     725             :     // ::com::sun::star::lang::XServiceInfo
     726           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoGroupBoxControl, UnoControlBase, szServiceName2_UnoControlGroupBox )
     727             : 
     728             : };
     729             : 
     730             : //  ----------------------------------------------------
     731             : //  class UnoControlListBoxModel
     732             : //  ----------------------------------------------------
     733             : struct UnoControlListBoxModel_Data;
     734             : typedef ::cppu::AggImplInheritanceHelper1   <   UnoControlModel
     735             :                                             ,   ::com::sun::star::awt::XItemList
     736             :                                             >   UnoControlListBoxModel_Base;
     737             : class TOOLKIT_DLLPUBLIC UnoControlListBoxModel : public UnoControlListBoxModel_Base
     738             : {
     739             : protected:
     740             :     enum ConstructorMode
     741             :     {
     742             :         ConstructDefault,
     743             :         ConstructWithoutProperties
     744             :     };
     745             : 
     746             : public:
     747             :                         UnoControlListBoxModel(
     748             :                             const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory,
     749             :                             ConstructorMode const i_mode = ConstructDefault
     750             :                         );
     751             :                         UnoControlListBoxModel( const UnoControlListBoxModel& i_rSource );
     752             :                         ~UnoControlListBoxModel();
     753             : 
     754           0 :     UnoControlModel*    Clone() const { return new UnoControlListBoxModel( *this ); }
     755             : 
     756             :     virtual void        ImplNormalizePropertySequence(
     757             :                             const sal_Int32                 _nCount,        /// the number of entries in the arrays
     758             :                             sal_Int32*                      _pHandles,      /// the handles of the properties to set
     759             :                             ::com::sun::star::uno::Any*     _pValues,       /// the values of the properties to set
     760             :                             sal_Int32*                      _pValidHandles  /// pointer to the valid handles, allowed to be adjusted
     761             :                         )   const SAL_THROW(());
     762             : 
     763             :     // ::com::sun::star::beans::XMultiPropertySet
     764             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
     765             : 
     766             :     // ::com::sun::star::io::XPersistObject
     767             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
     768             : 
     769             :     // ::com::sun::star::lang::XServiceInfo
     770             :     ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
     771             :     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
     772             : 
     773             :     // ::com::sun::star::awt::XItemList
     774             :     virtual ::sal_Int32 SAL_CALL getItemCount() throw (::com::sun::star::uno::RuntimeException);
     775             :     virtual void SAL_CALL insertItem( ::sal_Int32 Position, const ::rtl::OUString& ItemText, const ::rtl::OUString& ItemImageURL ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     776             :     virtual void SAL_CALL insertItemText( ::sal_Int32 Position, const ::rtl::OUString& ItemText ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     777             :     virtual void SAL_CALL insertItemImage( ::sal_Int32 Position, const ::rtl::OUString& ItemImageURL ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     778             :     virtual void SAL_CALL removeItem( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     779             :     virtual void SAL_CALL removeAllItems(  ) throw (::com::sun::star::uno::RuntimeException);
     780             :     virtual void SAL_CALL setItemText( ::sal_Int32 Position, const ::rtl::OUString& ItemText ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     781             :     virtual void SAL_CALL setItemImage( ::sal_Int32 Position, const ::rtl::OUString& ItemImageURL ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     782             :     virtual void SAL_CALL setItemTextAndImage( ::sal_Int32 Position, const ::rtl::OUString& ItemText, const ::rtl::OUString& ItemImageURL ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     783             :     virtual void SAL_CALL setItemData( ::sal_Int32 Position, const ::com::sun::star::uno::Any& DataValue ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     784             :     virtual ::rtl::OUString SAL_CALL getItemText( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     785             :     virtual ::rtl::OUString SAL_CALL getItemImage( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     786             :     virtual ::com::sun::star::beans::Pair< ::rtl::OUString, ::rtl::OUString > SAL_CALL getItemTextAndImage( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     787             :     virtual ::com::sun::star::uno::Any SAL_CALL getItemData( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     788             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Pair< ::rtl::OUString, ::rtl::OUString > > SAL_CALL getAllItems(  ) throw (::com::sun::star::uno::RuntimeException);
     789             :     virtual void SAL_CALL addItemListListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListListener >& Listener ) throw (::com::sun::star::uno::RuntimeException);
     790             :     virtual void SAL_CALL removeItemListListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListListener >& Listener ) throw (::com::sun::star::uno::RuntimeException);
     791             : 
     792             :     // OPropertySetHelper
     793             :     void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
     794             : 
     795             : protected:
     796             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
     797             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
     798             : 
     799             : private:
     800             :     void    impl_notifyItemListEvent_nolck(
     801             :                 const sal_Int32 i_nItemPosition,
     802             :                 const ::boost::optional< ::rtl::OUString >& i_rItemText,
     803             :                 const ::boost::optional< ::rtl::OUString >& i_rItemImageURL,
     804             :                 void ( SAL_CALL ::com::sun::star::awt::XItemListListener::*NotificationMethod )( const ::com::sun::star::awt::ItemListEvent& )
     805             :             );
     806             : 
     807             :     void    impl_handleInsert(
     808             :                 const sal_Int32 i_nItemPosition,
     809             :                 const ::boost::optional< ::rtl::OUString >& i_rItemText,
     810             :                 const ::boost::optional< ::rtl::OUString >& i_rItemImageURL,
     811             :                 ::osl::ClearableMutexGuard& i_rClearBeforeNotify
     812             :             );
     813             : 
     814             :     void    impl_handleRemove(
     815             :                 const sal_Int32 i_nItemPosition,
     816             :                 ::osl::ClearableMutexGuard& i_rClearBeforeNotify
     817             :             );
     818             : 
     819             :     void    impl_handleModify(
     820             :                 const sal_Int32 i_nItemPosition,
     821             :                 const ::boost::optional< ::rtl::OUString >& i_rItemText,
     822             :                 const ::boost::optional< ::rtl::OUString >& i_rItemImageURL,
     823             :                 ::osl::ClearableMutexGuard& i_rClearBeforeNotify
     824             :             );
     825             : 
     826             :     void    impl_getStringItemList( ::std::vector< ::rtl::OUString >& o_rStringItems ) const;
     827             :     void    impl_setStringItemList_nolck( const ::std::vector< ::rtl::OUString >& i_rStringItems );
     828             : 
     829             : protected:
     830             :     ::boost::scoped_ptr< UnoControlListBoxModel_Data >  m_pData;
     831             :     ::cppu::OInterfaceContainerHelper                   m_aItemListListeners;
     832             : };
     833             : 
     834             : //  ----------------------------------------------------
     835             : //  class UnoListBoxControl
     836             : //  ----------------------------------------------------
     837             : typedef ::cppu::AggImplInheritanceHelper5   <   UnoControlBase
     838             :                                             ,   ::com::sun::star::awt::XListBox
     839             :                                             ,   ::com::sun::star::awt::XItemListener
     840             :                                             ,   ::com::sun::star::awt::XLayoutConstrains
     841             :                                             ,   ::com::sun::star::awt::XTextLayoutConstrains
     842             :                                             ,   ::com::sun::star::awt::XItemListListener
     843             :                                             >   UnoListBoxControl_Base;
     844           0 : class TOOLKIT_DLLPUBLIC UnoListBoxControl : public UnoListBoxControl_Base
     845             : {
     846             : public:
     847             :                         UnoListBoxControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     848             :     ::rtl::OUString     GetComponentServiceName();
     849             : 
     850             :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
     851             :     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
     852           0 :     void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
     853             : 
     854             :     // ::com::sun::star::awt::XListBox
     855             :     void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     856             :     void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     857             :     void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     858             :     void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     859             :     void SAL_CALL addItem( const ::rtl::OUString& aItem, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
     860             :     void SAL_CALL addItems( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aItems, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
     861             :     void SAL_CALL removeItems( sal_Int16 nPos, sal_Int16 nCount ) throw(::com::sun::star::uno::RuntimeException);
     862             :     sal_Int16 SAL_CALL getItemCount(  ) throw(::com::sun::star::uno::RuntimeException);
     863             :     ::rtl::OUString SAL_CALL getItem( sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
     864             :     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getItems(  ) throw(::com::sun::star::uno::RuntimeException);
     865             :     sal_Int16 SAL_CALL getSelectedItemPos(  ) throw(::com::sun::star::uno::RuntimeException);
     866             :     ::com::sun::star::uno::Sequence< sal_Int16 > SAL_CALL getSelectedItemsPos(  ) throw(::com::sun::star::uno::RuntimeException);
     867             :     ::rtl::OUString SAL_CALL getSelectedItem(  ) throw(::com::sun::star::uno::RuntimeException);
     868             :     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSelectedItems(  ) throw(::com::sun::star::uno::RuntimeException);
     869             :     void SAL_CALL selectItemPos( sal_Int16 nPos, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException);
     870             :     void SAL_CALL selectItemsPos( const ::com::sun::star::uno::Sequence< sal_Int16 >& aPositions, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException);
     871             :     void SAL_CALL selectItem( const ::rtl::OUString& aItem, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException);
     872             :     sal_Bool SAL_CALL isMutipleMode(  ) throw(::com::sun::star::uno::RuntimeException);
     873             :     void SAL_CALL setMultipleMode( sal_Bool bMulti ) throw(::com::sun::star::uno::RuntimeException);
     874             :     sal_Int16 SAL_CALL getDropDownLineCount(  ) throw(::com::sun::star::uno::RuntimeException);
     875             :     void SAL_CALL setDropDownLineCount( sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
     876             :     void SAL_CALL makeVisible( sal_Int16 nEntry ) throw(::com::sun::star::uno::RuntimeException);
     877             : 
     878             :     // ::com::sun::star::awt::XItemListener
     879             :     void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
     880             : 
     881             :     // ::com::sun::star::awt::XLayoutConstrains
     882             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
     883             :     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
     884             :     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
     885             : 
     886             :     // ::com::sun::star::awt::XTextLayoutConstrains
     887             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
     888             :     void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException);
     889             : 
     890             :     // XUnoControl
     891             :     sal_Bool SAL_CALL setModel(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model) throw ( ::com::sun::star::uno::RuntimeException );
     892             : 
     893             :     // XItemListListener
     894             :     virtual void SAL_CALL listItemInserted( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
     895             :     virtual void SAL_CALL listItemRemoved( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
     896             :     virtual void SAL_CALL listItemModified( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
     897             :     virtual void SAL_CALL allItemsRemoved( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
     898             :     virtual void SAL_CALL itemListChanged( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
     899             : 
     900             :     // ::com::sun::star::lang::XServiceInfo
     901             :     ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
     902             :     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
     903             : 
     904             : protected:
     905             :     void                ImplUpdateSelectedItemsProperty();
     906             :     virtual void        ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
     907             :     virtual void        updateFromModel();
     908             : 
     909             : private:
     910             :     ActionListenerMultiplexer   maActionListeners;
     911             :     ItemListenerMultiplexer     maItemListeners;
     912             : };
     913             : 
     914             : //  ----------------------------------------------------
     915             : //  class UnoControlComboBoxModel
     916             : //  ----------------------------------------------------
     917           0 : class UnoControlComboBoxModel : public UnoControlListBoxModel
     918             : {
     919             : protected:
     920             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
     921             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
     922             : 
     923             : public:
     924             :                         UnoControlComboBoxModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     925           0 :                         UnoControlComboBoxModel( const UnoControlComboBoxModel& rModel ) : UnoControlListBoxModel( rModel ) {;}
     926             : 
     927           0 :     UnoControlModel*    Clone() const { return new UnoControlComboBoxModel( *this ); }
     928             : 
     929             :     // ::com::sun::star::io::XPersistObject
     930             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
     931             : 
     932             :     // ::com::sun::star::beans::XMultiPropertySet
     933             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
     934             :     // OPropertySetHelper
     935             :     void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
     936             : 
     937             :     // ::com::sun::star::lang::XServiceInfo
     938             :     ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
     939             :     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
     940             : 
     941             : };
     942             : 
     943             : //  ----------------------------------------------------
     944             : //  class UnoComboBoxControl
     945             : //  ----------------------------------------------------
     946           0 : class UnoComboBoxControl :  public UnoEditControl
     947             :                         ,   public ::com::sun::star::awt::XComboBox
     948             :                         ,   public ::com::sun::star::awt::XItemListener
     949             :                         ,   public ::com::sun::star::awt::XItemListListener
     950             : {
     951             : private:
     952             :     ActionListenerMultiplexer   maActionListeners;
     953             :     ItemListenerMultiplexer     maItemListeners;
     954             : 
     955             : public:
     956             : 
     957             :                         UnoComboBoxControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
     958             :     ::rtl::OUString     GetComponentServiceName();
     959             : 
     960             :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
     961           0 :     void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoEditControl::disposing( Source ); }
     962             :     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
     963             : 
     964           0 :     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoEditControl::queryInterface(rType); }
     965             :     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
     966           0 :     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
     967           0 :     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
     968             : 
     969             : 
     970             :     // ::com::sun::star::lang::XTypeProvider
     971             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
     972             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
     973             : 
     974             :     // ::com::sun::star::awt::XComboBox
     975             :     void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     976             :     void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     977             :     void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     978             :     void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
     979             :     void SAL_CALL addItem( const ::rtl::OUString& aItem, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
     980             :     void SAL_CALL addItems( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aItems, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
     981             :     void SAL_CALL removeItems( sal_Int16 nPos, sal_Int16 nCount ) throw(::com::sun::star::uno::RuntimeException);
     982             :     sal_Int16 SAL_CALL getItemCount(  ) throw(::com::sun::star::uno::RuntimeException);
     983             :     ::rtl::OUString SAL_CALL getItem( sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
     984             :     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getItems(  ) throw(::com::sun::star::uno::RuntimeException);
     985             :     sal_Int16 SAL_CALL getDropDownLineCount(  ) throw(::com::sun::star::uno::RuntimeException);
     986             :     void SAL_CALL setDropDownLineCount( sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
     987             : 
     988             :     // XUnoControl
     989             :     virtual sal_Bool SAL_CALL setModel(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model) throw ( ::com::sun::star::uno::RuntimeException );
     990             : 
     991             :     // XItemListListener
     992             :     virtual void SAL_CALL listItemInserted( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
     993             :     virtual void SAL_CALL listItemRemoved( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
     994             :     virtual void SAL_CALL listItemModified( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
     995             :     virtual void SAL_CALL allItemsRemoved( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
     996             :     virtual void SAL_CALL itemListChanged( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
     997             : 
     998             :     // XItemListener
     999             :     virtual void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw (::com::sun::star::uno::RuntimeException);
    1000             : 
    1001             :     // ::com::sun::star::lang::XServiceInfo
    1002             :     ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
    1003             :     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
    1004             : protected:
    1005             :     virtual void        ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
    1006             :     virtual void        updateFromModel();
    1007             :     ActionListenerMultiplexer&  getActionListeners();
    1008             :     ItemListenerMultiplexer&    getItemListeners();
    1009             : 
    1010             : };
    1011             : 
    1012             : //  ----------------------------------------------------
    1013             : //  class UnoSpinFieldControl
    1014             : //  ----------------------------------------------------
    1015           0 : class UnoSpinFieldControl : public UnoEditControl,
    1016             :                             public ::com::sun::star::awt::XSpinField
    1017             : {
    1018             : private:
    1019             :     SpinListenerMultiplexer     maSpinListeners;
    1020             :     sal_Bool                        mbRepeat;
    1021             : 
    1022             : public:
    1023             :                                 UnoSpinFieldControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1024             : 
    1025           0 :     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoEditControl::queryInterface(rType); }
    1026             :     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
    1027           0 :     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
    1028           0 :     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
    1029             : 
    1030             :     // ::com::sun::star::lang::XTypeProvider
    1031             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
    1032             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
    1033             : 
    1034             :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
    1035             : 
    1036             :     // ::com::sun::star::awt::XSpinField
    1037             :     void SAL_CALL addSpinListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XSpinListener >& l ) throw(::com::sun::star::uno::RuntimeException);
    1038             :     void SAL_CALL removeSpinListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XSpinListener >& l ) throw(::com::sun::star::uno::RuntimeException);
    1039             :     void SAL_CALL up() throw(::com::sun::star::uno::RuntimeException);
    1040             :     void SAL_CALL down() throw(::com::sun::star::uno::RuntimeException);
    1041             :     void SAL_CALL first() throw(::com::sun::star::uno::RuntimeException);
    1042             :     void SAL_CALL last() throw(::com::sun::star::uno::RuntimeException);
    1043             :     void SAL_CALL enableRepeat( sal_Bool bRepeat ) throw(::com::sun::star::uno::RuntimeException);
    1044             : 
    1045             : 
    1046             :     // ::com::sun::star::lang::XServiceInfo
    1047             :     // No service info, only base class for other fields.
    1048             : };
    1049             : 
    1050             : 
    1051             : //  ----------------------------------------------------
    1052             : //  class UnoControlDateFieldModel
    1053             : //  ----------------------------------------------------
    1054           0 : class UnoControlDateFieldModel : public UnoControlModel
    1055             : {
    1056             : protected:
    1057             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
    1058             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
    1059             : 
    1060             : public:
    1061             :                 UnoControlDateFieldModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1062           0 :                 UnoControlDateFieldModel( const UnoControlDateFieldModel& rModel ) : UnoControlModel( rModel ) {;}
    1063             : 
    1064           0 :     UnoControlModel*    Clone() const { return new UnoControlDateFieldModel( *this ); }
    1065             : 
    1066             :     // ::com::sun::star::io::XPersistObject
    1067             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
    1068             : 
    1069             :     // ::com::sun::star::beans::XMultiPropertySet
    1070             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
    1071             : 
    1072             :     // ::com::sun::star::lang::XServiceInfo
    1073           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlDateFieldModel, UnoControlModel, szServiceName2_UnoControlDateFieldModel )
    1074             : 
    1075             : };
    1076             : 
    1077             : //  ----------------------------------------------------
    1078             : //  class UnoDateFieldControl
    1079             : //  ----------------------------------------------------
    1080           0 : class UnoDateFieldControl : public UnoSpinFieldControl,
    1081             :                             public ::com::sun::star::awt::XDateField
    1082             : {
    1083             : private:
    1084             :     sal_Int32       mnFirst;
    1085             :     sal_Int32       mnLast;
    1086             :     sal_Bool        mbLongFormat;
    1087             : public:
    1088             :                             UnoDateFieldControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1089             :     ::rtl::OUString         GetComponentServiceName();
    1090             : 
    1091           0 :     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
    1092             :     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
    1093           0 :     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
    1094           0 :     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
    1095             : 
    1096             :     // ::com::sun::star::lang::XTypeProvider
    1097             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
    1098             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
    1099             : 
    1100             :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
    1101             : 
    1102             :     // ::com::sun::star::awt::XTextListener
    1103             :     void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
    1104             : 
    1105             :     //XDateField
    1106             :     void SAL_CALL setDate( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
    1107             :     sal_Int32 SAL_CALL getDate(  ) throw(::com::sun::star::uno::RuntimeException);
    1108             :     void SAL_CALL setMin( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
    1109             :     sal_Int32 SAL_CALL getMin(  ) throw(::com::sun::star::uno::RuntimeException);
    1110             :     void SAL_CALL setMax( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
    1111             :     sal_Int32 SAL_CALL getMax(  ) throw(::com::sun::star::uno::RuntimeException);
    1112             :     void SAL_CALL setFirst( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
    1113             :     sal_Int32 SAL_CALL getFirst(  ) throw(::com::sun::star::uno::RuntimeException);
    1114             :     void SAL_CALL setLast( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
    1115             :     sal_Int32 SAL_CALL getLast(  ) throw(::com::sun::star::uno::RuntimeException);
    1116             :     void SAL_CALL setLongFormat( sal_Bool bLong ) throw(::com::sun::star::uno::RuntimeException);
    1117             :     sal_Bool SAL_CALL isLongFormat(  ) throw(::com::sun::star::uno::RuntimeException);
    1118             :     void SAL_CALL setEmpty(  ) throw(::com::sun::star::uno::RuntimeException);
    1119             :     sal_Bool SAL_CALL isEmpty(  ) throw(::com::sun::star::uno::RuntimeException);
    1120             :     void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
    1121             :     sal_Bool SAL_CALL isStrictFormat(  ) throw(::com::sun::star::uno::RuntimeException);
    1122             : 
    1123             :     // ::com::sun::star::lang::XServiceInfo
    1124           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoDateFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlDateField )
    1125             : };
    1126             : 
    1127             : //  ----------------------------------------------------
    1128             : //  class UnoControlTimeFieldModel
    1129             : //  ----------------------------------------------------
    1130           0 : class UnoControlTimeFieldModel : public UnoControlModel
    1131             : {
    1132             : protected:
    1133             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
    1134             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
    1135             : 
    1136             : public:
    1137             :                         UnoControlTimeFieldModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1138           0 :                         UnoControlTimeFieldModel( const UnoControlTimeFieldModel& rModel ) : UnoControlModel( rModel ) {;}
    1139             : 
    1140           0 :     UnoControlModel*    Clone() const { return new UnoControlTimeFieldModel( *this ); }
    1141             : 
    1142             :     // ::com::sun::star::io::XPersistObject
    1143             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
    1144             : 
    1145             :     // ::com::sun::star::beans::XMultiPropertySet
    1146             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
    1147             : 
    1148             :     // ::com::sun::star::lang::XServiceInfo
    1149           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlTimeFieldModel, UnoControlModel, szServiceName2_UnoControlTimeFieldModel )
    1150             : 
    1151             : };
    1152             : 
    1153             : //  ----------------------------------------------------
    1154             : //  class UnoTimeFieldControl
    1155             : //  ----------------------------------------------------
    1156           0 : class UnoTimeFieldControl : public UnoSpinFieldControl,
    1157             :                             public ::com::sun::star::awt::XTimeField
    1158             : {
    1159             : private:
    1160             :     sal_Int32       mnFirst;
    1161             :     sal_Int32       mnLast;
    1162             : 
    1163             : public:
    1164             :                         UnoTimeFieldControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1165             :     ::rtl::OUString     GetComponentServiceName();
    1166             : 
    1167           0 :     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
    1168             :     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
    1169           0 :     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
    1170           0 :     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
    1171             : 
    1172             :     // ::com::sun::star::lang::XTypeProvider
    1173             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
    1174             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
    1175             : 
    1176             :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
    1177             : 
    1178             :     // ::com::sun::star::awt::XTextListener
    1179             :     void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
    1180             : 
    1181             :     //XTimeField
    1182             :     void SAL_CALL setTime( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
    1183             :     sal_Int32 SAL_CALL getTime(  ) throw(::com::sun::star::uno::RuntimeException);
    1184             :     void SAL_CALL setMin( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
    1185             :     sal_Int32 SAL_CALL getMin(  ) throw(::com::sun::star::uno::RuntimeException);
    1186             :     void SAL_CALL setMax( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
    1187             :     sal_Int32 SAL_CALL getMax(  ) throw(::com::sun::star::uno::RuntimeException);
    1188             :     void SAL_CALL setFirst( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
    1189             :     sal_Int32 SAL_CALL getFirst(  ) throw(::com::sun::star::uno::RuntimeException);
    1190             :     void SAL_CALL setLast( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
    1191             :     sal_Int32 SAL_CALL getLast(  ) throw(::com::sun::star::uno::RuntimeException);
    1192             :     void SAL_CALL setEmpty(  ) throw(::com::sun::star::uno::RuntimeException);
    1193             :     sal_Bool SAL_CALL isEmpty(  ) throw(::com::sun::star::uno::RuntimeException);
    1194             :     void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
    1195             :     sal_Bool SAL_CALL isStrictFormat(  ) throw(::com::sun::star::uno::RuntimeException);
    1196             : 
    1197             :     // ::com::sun::star::lang::XServiceInfo
    1198           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoTimeFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlTimeField )
    1199             : 
    1200             : };
    1201             : 
    1202             : //  ----------------------------------------------------
    1203             : //  class UnoControlNumericFieldModel
    1204             : //  ----------------------------------------------------
    1205           0 : class UnoControlNumericFieldModel : public UnoControlModel
    1206             : {
    1207             : protected:
    1208             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
    1209             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
    1210             : 
    1211             : public:
    1212             :                 UnoControlNumericFieldModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1213           0 :                 UnoControlNumericFieldModel( const UnoControlNumericFieldModel& rModel ) : UnoControlModel( rModel ) {;}
    1214             : 
    1215           0 :     UnoControlModel*    Clone() const { return new UnoControlNumericFieldModel( *this ); }
    1216             : 
    1217             :     // ::com::sun::star::io::XPersistObject
    1218             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
    1219             : 
    1220             :     // ::com::sun::star::beans::XMultiPropertySet
    1221             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
    1222             : 
    1223             :     // ::com::sun::star::lang::XServiceInfo
    1224           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlNumericFieldModel, UnoControlModel, szServiceName2_UnoControlNumericFieldModel )
    1225             : 
    1226             : };
    1227             : 
    1228             : //  ----------------------------------------------------
    1229             : //  class UnoNumericFieldControl
    1230             : //  ----------------------------------------------------
    1231           0 : class UnoNumericFieldControl :  public UnoSpinFieldControl,
    1232             :                                 public ::com::sun::star::awt::XNumericField
    1233             : {
    1234             : private:
    1235             :     double mnFirst;
    1236             :     double mnLast;
    1237             : 
    1238             : public:
    1239             :                         UnoNumericFieldControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1240             :     ::rtl::OUString     GetComponentServiceName();
    1241             : 
    1242           0 :     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
    1243             :     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
    1244           0 :     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
    1245           0 :     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
    1246             : 
    1247             :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
    1248             : 
    1249             :     // ::com::sun::star::lang::XTypeProvider
    1250             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
    1251             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
    1252             : 
    1253             :     // ::com::sun::star::awt::XTextListener
    1254             :     void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
    1255             : 
    1256             :     // ::com::sun::star::awt::XNumericField
    1257             :     void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException);
    1258             :     double SAL_CALL getValue(  ) throw(::com::sun::star::uno::RuntimeException);
    1259             :     void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException);
    1260             :     double SAL_CALL getMin(  ) throw(::com::sun::star::uno::RuntimeException);
    1261             :     void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException);
    1262             :     double SAL_CALL getMax(  ) throw(::com::sun::star::uno::RuntimeException);
    1263             :     void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException);
    1264             :     double SAL_CALL getFirst(  ) throw(::com::sun::star::uno::RuntimeException);
    1265             :     void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException);
    1266             :     double SAL_CALL getLast(  ) throw(::com::sun::star::uno::RuntimeException);
    1267             :     void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException);
    1268             :     double SAL_CALL getSpinSize(  ) throw(::com::sun::star::uno::RuntimeException);
    1269             :     void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException);
    1270             :     sal_Int16 SAL_CALL getDecimalDigits(  ) throw(::com::sun::star::uno::RuntimeException);
    1271             :     void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
    1272             :     sal_Bool SAL_CALL isStrictFormat(  ) throw(::com::sun::star::uno::RuntimeException);
    1273             : 
    1274             :     // ::com::sun::star::lang::XServiceInfo
    1275           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoNumericFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlNumericField )
    1276             : 
    1277             : };
    1278             : 
    1279             : //  ----------------------------------------------------
    1280             : //  class UnoControlCurrencyFieldModel
    1281             : //  ----------------------------------------------------
    1282           0 : class UnoControlCurrencyFieldModel : public UnoControlModel
    1283             : {
    1284             : protected:
    1285             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
    1286             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
    1287             : 
    1288             : public:
    1289             :                         UnoControlCurrencyFieldModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1290           0 :                         UnoControlCurrencyFieldModel( const UnoControlCurrencyFieldModel& rModel ) : UnoControlModel( rModel ) {;}
    1291             : 
    1292           0 :     UnoControlModel*    Clone() const { return new UnoControlCurrencyFieldModel( *this ); }
    1293             : 
    1294             :     // ::com::sun::star::io::XPersistObject
    1295             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
    1296             : 
    1297             :     // ::com::sun::star::beans::XMultiPropertySet
    1298             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
    1299             : 
    1300             :     // ::com::sun::star::lang::XServiceInfo
    1301           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlCurrencyFieldModel, UnoControlModel, szServiceName2_UnoControlCurrencyFieldModel )
    1302             : 
    1303             : };
    1304             : 
    1305             : //  ----------------------------------------------------
    1306             : //  class UnoCurrencyFieldControl
    1307             : //  ----------------------------------------------------
    1308           0 : class UnoCurrencyFieldControl : public UnoSpinFieldControl,
    1309             :                                 public ::com::sun::star::awt::XCurrencyField
    1310             : {
    1311             : private:
    1312             :     double mnFirst;
    1313             :     double mnLast;
    1314             : 
    1315             : public:
    1316             :                         UnoCurrencyFieldControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1317             :     ::rtl::OUString     GetComponentServiceName();
    1318             : 
    1319           0 :     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
    1320             :     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
    1321           0 :     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
    1322           0 :     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
    1323             : 
    1324             :     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
    1325             : 
    1326             :     // ::com::sun::star::lang::XTypeProvider
    1327             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
    1328             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
    1329             : 
    1330             :     // ::com::sun::star::awt::XTextListener
    1331             :     void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
    1332             : 
    1333             :     // ::com::sun::star::awt::XCurrencyField
    1334             :     void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException);
    1335             :     double SAL_CALL getValue(  ) throw(::com::sun::star::uno::RuntimeException);
    1336             :     void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException);
    1337             :     double SAL_CALL getMin(  ) throw(::com::sun::star::uno::RuntimeException);
    1338             :     void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException);
    1339             :     double SAL_CALL getMax(  ) throw(::com::sun::star::uno::RuntimeException);
    1340             :     void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException);
    1341             :     double SAL_CALL getFirst(  ) throw(::com::sun::star::uno::RuntimeException);
    1342             :     void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException);
    1343             :     double SAL_CALL getLast(  ) throw(::com::sun::star::uno::RuntimeException);
    1344             :     void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException);
    1345             :     double SAL_CALL getSpinSize(  ) throw(::com::sun::star::uno::RuntimeException);
    1346             :     void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException);
    1347             :     sal_Int16 SAL_CALL getDecimalDigits(  ) throw(::com::sun::star::uno::RuntimeException);
    1348             :     void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
    1349             :     sal_Bool SAL_CALL isStrictFormat(  ) throw(::com::sun::star::uno::RuntimeException);
    1350             : 
    1351             :     // ::com::sun::star::lang::XServiceInfo
    1352           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoCurrencyFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlCurrencyField )
    1353             : };
    1354             : 
    1355             : //  ----------------------------------------------------
    1356             : //  class UnoControlPatternFieldModel
    1357             : //  ----------------------------------------------------
    1358           0 : class UnoControlPatternFieldModel : public UnoControlModel
    1359             : {
    1360             : protected:
    1361             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
    1362             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
    1363             : 
    1364             : public:
    1365             :                         UnoControlPatternFieldModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1366           0 :                         UnoControlPatternFieldModel( const UnoControlPatternFieldModel& rModel ) : UnoControlModel( rModel ) {;}
    1367             : 
    1368           0 :     UnoControlModel*    Clone() const { return new UnoControlPatternFieldModel( *this ); }
    1369             : 
    1370             :     // ::com::sun::star::io::XPersistObject
    1371             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
    1372             : 
    1373             :     // ::com::sun::star::beans::XMultiPropertySet
    1374             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
    1375             : 
    1376             :     // ::com::sun::star::lang::XServiceInfo
    1377           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlPatternFieldModel, UnoControlModel, szServiceName2_UnoControlPatternFieldModel )
    1378             : 
    1379             : };
    1380             : 
    1381             : //  ----------------------------------------------------
    1382             : //  class UnoPatternFieldControl
    1383             : //  ----------------------------------------------------
    1384           0 : class UnoPatternFieldControl :  public UnoSpinFieldControl,
    1385             :                                 public ::com::sun::star::awt::XPatternField
    1386             : {
    1387             : protected:
    1388             :     void            ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
    1389             : 
    1390             : public:
    1391             :                         UnoPatternFieldControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1392             :     ::rtl::OUString     GetComponentServiceName();
    1393             : 
    1394           0 :     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
    1395             :     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
    1396           0 :     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
    1397           0 :     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
    1398             : 
    1399             :     // ::com::sun::star::lang::XTypeProvider
    1400             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
    1401             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
    1402             : 
    1403             :     // ::com::sun::star::awt::XPatternField
    1404             :     void SAL_CALL setMasks( const ::rtl::OUString& EditMask, const ::rtl::OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException);
    1405             :     void SAL_CALL getMasks( ::rtl::OUString& EditMask, ::rtl::OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException);
    1406             :     void SAL_CALL setString( const ::rtl::OUString& Str ) throw(::com::sun::star::uno::RuntimeException);
    1407             :     ::rtl::OUString SAL_CALL getString(  ) throw(::com::sun::star::uno::RuntimeException);
    1408             :     void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
    1409             :     sal_Bool SAL_CALL isStrictFormat(  ) throw(::com::sun::star::uno::RuntimeException);
    1410             : 
    1411             :     // ::com::sun::star::lang::XServiceInfo
    1412           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoPatternFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlPatternField )
    1413             : 
    1414             : };
    1415             : 
    1416             : //  ----------------------------------------------------
    1417             : //  class UnoControlProgressBarModel
    1418             : //  ----------------------------------------------------
    1419           0 : class UnoControlProgressBarModel :  public UnoControlModel
    1420             : {
    1421             : protected:
    1422             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
    1423             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
    1424             : 
    1425             : public:
    1426             :                         UnoControlProgressBarModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1427           0 :                         UnoControlProgressBarModel( const UnoControlProgressBarModel& rModel ) : UnoControlModel( rModel ) {;}
    1428             : 
    1429           0 :     UnoControlModel*    Clone() const { return new UnoControlProgressBarModel( *this ); }
    1430             : 
    1431             :     // ::com::sun::star::beans::XMultiPropertySet
    1432             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
    1433             : 
    1434             :     // ::com::sun::star::io::XPersistObject
    1435             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
    1436             : 
    1437             :     // XServiceInfo
    1438           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlProgressBarModel, UnoControlModel, szServiceName2_UnoControlProgressBarModel )
    1439             : };
    1440             : 
    1441             : //  ----------------------------------------------------
    1442             : //  class UnoProgressBarControl
    1443             : //  ----------------------------------------------------
    1444           0 : class UnoProgressBarControl :   public UnoControlBase,
    1445             :                                 public ::com::sun::star::awt::XProgressBar
    1446             : {
    1447             : public:
    1448             :                                 UnoProgressBarControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1449             :     ::rtl::OUString             GetComponentServiceName();
    1450             : 
    1451           0 :     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
    1452             :     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
    1453           0 :     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
    1454           0 :     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
    1455             : 
    1456             :     // ::com::sun::star::lang::XTypeProvider
    1457             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
    1458             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
    1459             : 
    1460             :     // ::com::sun::star::awt::XProgressBar
    1461             :     void SAL_CALL setForegroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
    1462             :     void SAL_CALL setBackgroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
    1463             :     void SAL_CALL setValue( sal_Int32 nValue ) throw(::com::sun::star::uno::RuntimeException);
    1464             :     void SAL_CALL setRange( sal_Int32 nMin, sal_Int32 nMax ) throw(::com::sun::star::uno::RuntimeException );
    1465             :     sal_Int32 SAL_CALL getValue() throw(::com::sun::star::uno::RuntimeException);
    1466             : 
    1467             :     // ::com::sun::star::lang::XServiceInfo
    1468           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoProgressBarControl, UnoControlBase, szServiceName2_UnoControlProgressBar )
    1469             : };
    1470             : 
    1471             : 
    1472             : //  ----------------------------------------------------
    1473             : //  class UnoControlFixedLineModel
    1474             : //  ----------------------------------------------------
    1475           0 : class UnoControlFixedLineModel : public UnoControlModel
    1476             : {
    1477             : protected:
    1478             :     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
    1479             :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
    1480             : 
    1481             : public:
    1482             :                         UnoControlFixedLineModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1483           0 :                         UnoControlFixedLineModel( const UnoControlFixedLineModel& rModel ) : UnoControlModel( rModel ) {;}
    1484             : 
    1485           0 :     UnoControlModel*    Clone() const { return new UnoControlFixedLineModel( *this ); }
    1486             : 
    1487             :     // ::com::sun::star::beans::XMultiPropertySet
    1488             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
    1489             : 
    1490             :     // ::com::sun::star::io::XPersistObject
    1491             :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
    1492             : 
    1493             :     // ::com::sun::star::lang::XServiceInfo
    1494           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoControlFixedLineModel, UnoControlModel, szServiceName2_UnoControlFixedLineModel )
    1495             : 
    1496             : };
    1497             : 
    1498             : //  ----------------------------------------------------
    1499             : //  class UnoFixedLineControl
    1500             : //  ----------------------------------------------------
    1501           0 : class UnoFixedLineControl : public UnoControlBase
    1502             : {
    1503             : public:
    1504             :                         UnoFixedLineControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
    1505             :     ::rtl::OUString     GetComponentServiceName();
    1506             : 
    1507             :     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
    1508             : 
    1509             :     // ::com::sun::star::lang::XServiceInfo
    1510           0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoFixedLineControl, UnoControlBase, szServiceName2_UnoControlFixedLine )
    1511             : 
    1512             : };
    1513             : 
    1514             : 
    1515             : 
    1516             : #endif // _TOOLKIT_HELPER_UNOCONTROLS_HXX_
    1517             : 
    1518             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10