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

Generated by: LCOV version 1.10