LCOV - code coverage report
Current view: top level - svtools/source/inc - unoiface.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 6 20 30.0 %
Date: 2015-06-13 12:38:46 Functions: 6 21 28.6 %
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_SVTOOLS_SOURCE_INC_UNOIFACE_HXX
      21             : #define INCLUDED_SVTOOLS_SOURCE_INC_UNOIFACE_HXX
      22             : 
      23             : #include <toolkit/awt/vclxwindow.hxx>
      24             : #include <toolkit/awt/vclxwindows.hxx>
      25             : #include <toolkit/helper/listenermultiplexer.hxx>
      26             : 
      27             : #include <cppuhelper/typeprovider.hxx>
      28             : 
      29             : #include <com/sun/star/awt/XTextArea.hpp>
      30             : #include <com/sun/star/awt/XTextComponent.hpp>
      31             : #include <com/sun/star/awt/XTextLayoutConstrains.hpp>
      32             : #include <svtools/svmedit.hxx>
      33             : #include <svtools/fmtfield.hxx>
      34             : 
      35             : 
      36             : #include <comphelper/uno3.hxx>
      37             : #include <cppuhelper/implbase2.hxx>
      38             : #include <cppuhelper/implbase3.hxx>
      39             : #include <com/sun/star/awt/XItemEventBroadcaster.hpp>
      40             : 
      41             : 
      42             : namespace com { namespace sun { namespace star { namespace util {
      43             :     class XNumberFormatsSupplier;
      44             : } } } }
      45             : 
      46             : class SvNumberFormatsSupplierObj;
      47             : 
      48             : 
      49             : //  class VCLXMultiLineEdit
      50             : 
      51             : class VCLXMultiLineEdit :   public ::com::sun::star::awt::XTextComponent,
      52             :                             public ::com::sun::star::awt::XTextArea,
      53             :                             public ::com::sun::star::awt::XTextLayoutConstrains,
      54             :                             public VCLXWindow
      55             : {
      56             : private:
      57             :     TextListenerMultiplexer maTextListeners;
      58             :     LineEnd                 meLineEndType;
      59             : 
      60             : protected:
      61             :     void                ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) SAL_OVERRIDE;
      62             : 
      63             : public:
      64             :                     VCLXMultiLineEdit();
      65             :                     virtual ~VCLXMultiLineEdit();
      66             : 
      67             :     // ::com::sun::star::uno::XInterface
      68             :     ::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;
      69        3877 :     void                                        SAL_CALL acquire() throw() SAL_OVERRIDE  { VCLXWindow::acquire(); }
      70        3877 :     void                                        SAL_CALL release() throw() SAL_OVERRIDE  { VCLXWindow::release(); }
      71             : 
      72             :     // ::com::sun::star::lang::XTypeProvider
      73             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      74             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      75             : 
      76             :     // ::com::sun::star::awt::XTextComponent
      77             :     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;
      78             :     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;
      79             :     void SAL_CALL setText( const OUString& aText ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      80             :     void SAL_CALL insertText( const ::com::sun::star::awt::Selection& Sel, const OUString& Text ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      81             :     OUString SAL_CALL getText(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      82             :     OUString SAL_CALL getSelectedText(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      83             :     void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      84             :     ::com::sun::star::awt::Selection SAL_CALL getSelection(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      85             :     sal_Bool SAL_CALL isEditable(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      86             :     void SAL_CALL setEditable( sal_Bool bEditable ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      87             :     void SAL_CALL setMaxTextLen( sal_Int16 nLen ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      88             :     sal_Int16 SAL_CALL getMaxTextLen(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      89             : 
      90             :     //XTextArea
      91             :     OUString SAL_CALL getTextLines(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      92             : 
      93             :     // ::com::sun::star::awt::XLayoutConstrains
      94             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      95             :     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      96             :     ::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;
      97             : 
      98             :     // ::com::sun::star::awt::XTextLayoutConstrains
      99             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     100             :     void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     101             : 
     102             :     // ::com::sun::star::awt::XVclWindowPeer
     103             :     void SAL_CALL setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     104             :     ::com::sun::star::uno::Any SAL_CALL getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     105             : 
     106             :     // ::com::sun::star::awt::XWindow
     107             :     void SAL_CALL setFocus(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     108             : 
     109             :     static void     ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
     110           0 :     virtual void    GetPropertyIds( std::list< sal_uInt16 > &aIds ) SAL_OVERRIDE { return ImplGetPropertyIds( aIds ); }
     111             : };
     112             : 
     113             : 
     114             : 
     115             : //  class VCLXFileControl
     116             : 
     117             : class VCLXFileControl : ::com::sun::star::awt::XTextComponent, public ::com::sun::star::awt::XTextLayoutConstrains, public VCLXWindow
     118             : {
     119             : protected:
     120             :     DECL_LINK(ModifyHdl, void *);
     121             :     TextListenerMultiplexer maTextListeners;
     122             : 
     123             : public:
     124             :                     VCLXFileControl();
     125             :                     virtual ~VCLXFileControl();
     126             : 
     127             :     virtual void SetWindow( const VclPtr< vcl::Window > &pWindow ) SAL_OVERRIDE;
     128             : 
     129             :     // ::com::sun::star::uno::XInterface
     130             :     ::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;
     131           0 :     void                                        SAL_CALL acquire() throw() SAL_OVERRIDE  { VCLXWindow::acquire(); }
     132           0 :     void                                        SAL_CALL release() throw() SAL_OVERRIDE  { VCLXWindow::release(); }
     133             : 
     134             :     // ::com::sun::star::lang::XTypeProvider
     135             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     136             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     137             : 
     138             :     // ::com::sun::star::awt::XTextComponent
     139             :     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;
     140             :     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;
     141             :     void SAL_CALL setText( const OUString& aText ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     142             :     void SAL_CALL insertText( const ::com::sun::star::awt::Selection& Sel, const OUString& Text ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     143             :     OUString SAL_CALL getText(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     144             :     OUString SAL_CALL getSelectedText(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     145             :     void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     146             :     ::com::sun::star::awt::Selection SAL_CALL getSelection(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     147             :     sal_Bool SAL_CALL isEditable(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     148             :     void SAL_CALL setEditable( sal_Bool bEditable ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     149             :     void SAL_CALL setMaxTextLen( sal_Int16 nLen ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     150             :     sal_Int16 SAL_CALL getMaxTextLen(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     151             : 
     152             :     // ::com::sun::star::awt::XLayoutConstrains
     153             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     154             :     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     155             :     ::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;
     156             : 
     157             :     // ::com::sun::star::awt::XTextLayoutConstrains
     158             :     ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     159             :     void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     160             : 
     161             :     void SAL_CALL setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     162             : 
     163             :     static void     ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
     164           0 :     virtual void    GetPropertyIds( std::list< sal_uInt16 > &aIds ) SAL_OVERRIDE { return ImplGetPropertyIds( aIds ); }
     165             : };
     166             : 
     167             : 
     168             : //  class SVTXFormattedField
     169             : 
     170             : 
     171             : class SVTXFormattedField : public VCLXSpinField
     172             : {
     173             : protected:
     174             :     SvNumberFormatsSupplierObj* m_pCurrentSupplier;
     175             :     bool                    bIsStandardSupplier;
     176             : 
     177             :     sal_Int32                   nKeyToSetDelayed;
     178             : 
     179             : public:
     180             :     SVTXFormattedField();
     181             :     virtual ~SVTXFormattedField();
     182             : 
     183             :     // ::com::sun::star::awt::XVclWindowPeer
     184             :     void SAL_CALL setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     185             :     ::com::sun::star::uno::Any SAL_CALL getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     186             : 
     187             : protected:
     188             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier >  getFormatsSupplier() const;
     189             :     void    setFormatsSupplier(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & xSupplier);
     190             :     sal_Int32   getFormatKey() const;
     191             :     void    setFormatKey(sal_Int32 nKey);
     192             : 
     193             :     void    SetValue(const ::com::sun::star::uno::Any& rValue);
     194             :     ::com::sun::star::uno::Any  GetValue();
     195             : 
     196             :     void    SetTreatAsNumber(bool bSet);
     197             :     bool    GetTreatAsNumber();
     198             : 
     199             :     void    SetDefaultValue(const ::com::sun::star::uno::Any& rValue);
     200             :     ::com::sun::star::uno::Any  GetDefaultValue();
     201             : 
     202             :     void    SetMinValue(const ::com::sun::star::uno::Any& rValue);
     203             :     ::com::sun::star::uno::Any  GetMinValue();
     204             : 
     205             :     void    SetMaxValue(const ::com::sun::star::uno::Any& rValue);
     206             :     ::com::sun::star::uno::Any  GetMaxValue();
     207             : 
     208             :     void    NotifyTextListeners();
     209             :     ::com::sun::star::uno::Any  convertEffectiveValue(const ::com::sun::star::uno::Any& rValue);
     210             : 
     211             :     virtual void    SetWindow( const VclPtr< vcl::Window > &_pWindow) SAL_OVERRIDE;
     212             : 
     213             :     static void     ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
     214           0 :     virtual void    GetPropertyIds( std::list< sal_uInt16 > &aIds ) SAL_OVERRIDE { return ImplGetPropertyIds( aIds ); }
     215             : };
     216             : 
     217             : 
     218             : 
     219             : 
     220             : //  class SVTXRoadmap
     221             : 
     222             : 
     223             : namespace svt
     224             : {
     225             :     class ORoadmap;
     226             : }
     227             : 
     228           0 : struct RMItemData
     229             : {
     230             :     bool            b_Enabled;
     231             :     sal_Int32           n_ID;
     232             :     OUString     Label;
     233             : };
     234             : 
     235             : typedef ::cppu::ImplInheritanceHelper3  <   VCLXGraphicControl
     236             :                                         ,   ::com::sun::star::container::XContainerListener
     237             :                                         ,   ::com::sun::star::beans::XPropertyChangeListener
     238             :                                         ,   ::com::sun::star::awt::XItemEventBroadcaster
     239             :                                         >   SVTXRoadmap_Base;
     240             : class SVTXRoadmap : public SVTXRoadmap_Base
     241             : 
     242             : 
     243             : {
     244             : private:
     245             :     ItemListenerMultiplexer     maItemListeners;
     246             : 
     247             :     RMItemData CurRMItemData;
     248             :     static RMItemData GetRMItemData( const ::com::sun::star::container::ContainerEvent& _rEvent );
     249             : 
     250             : protected:
     251             :     virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) SAL_OVERRIDE;
     252             : 
     253             :     virtual ~SVTXRoadmap();
     254             : 
     255             : public:
     256             :     SVTXRoadmap();
     257             : 
     258           0 :     void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE { VCLXWindow::disposing( Source ); }
     259             : 
     260             :     // ::com::sun::star::awt::XVclWindowPeer
     261             :     void SAL_CALL setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     262             : 
     263             :     ::com::sun::star::uno::Any SAL_CALL getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     264             : 
     265             :     // XContainerListener
     266             :     void SAL_CALL elementInserted( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     267             :     void SAL_CALL elementRemoved( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     268             :     void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     269             : 
     270             :     // XItemEventBroadcaster
     271             :     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;
     272             :     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;
     273             : 
     274             :     // XPropertyChangeListener
     275             :     virtual void SAL_CALL propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     276             : 
     277             : protected:
     278             : 
     279             :     // VCLXGraphicControl overridables
     280             :     virtual void    ImplSetNewImage() SAL_OVERRIDE;
     281             : 
     282             :     static void     ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
     283           0 :     virtual void    GetPropertyIds( std::list< sal_uInt16 > &aIds ) SAL_OVERRIDE { return ImplGetPropertyIds( aIds ); }
     284             : };
     285             : 
     286             : 
     287             : 
     288             : 
     289             : //  class SVTXNumericField
     290             : 
     291             : class SVTXNumericField : public ::com::sun::star::awt::XNumericField, public SVTXFormattedField
     292             : {
     293             : public:
     294             :                     SVTXNumericField();
     295             :                     virtual ~SVTXNumericField();
     296             : 
     297             :     // ::com::sun::star::uno::XInterface
     298             :     ::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;
     299       20320 :     void                                        SAL_CALL acquire() throw() SAL_OVERRIDE  { SVTXFormattedField::acquire(); }
     300       20320 :     void                                        SAL_CALL release() throw() SAL_OVERRIDE  { SVTXFormattedField::release(); }
     301             : 
     302             :     // ::com::sun::star::lang::XTypeProvider
     303             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     304             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     305             : 
     306             :     // ::com::sun::star::awt::XNumericField
     307             :     void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     308             :     double SAL_CALL getValue(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     309             :     void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     310             :     double SAL_CALL getMin(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     311             :     void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     312             :     double SAL_CALL getMax(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     313             :     void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     314             :     double SAL_CALL getFirst(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     315             :     void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     316             :     double SAL_CALL getLast(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     317             :     void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     318             :     double SAL_CALL getSpinSize(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     319             :     void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     320             :     sal_Int16 SAL_CALL getDecimalDigits(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     321             :     void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     322             :     sal_Bool SAL_CALL isStrictFormat(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     323             : 
     324             :     static void     ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
     325           0 :     virtual void    GetPropertyIds( std::list< sal_uInt16 > &aIds ) SAL_OVERRIDE { return ImplGetPropertyIds( aIds ); }
     326             : };
     327             : 
     328             : 
     329             : //  class VCLXCurrencyField
     330             : 
     331             : class SVTXCurrencyField : public ::com::sun::star::awt::XCurrencyField, public SVTXFormattedField
     332             : {
     333             : public:
     334             :                     SVTXCurrencyField();
     335             :                     virtual ~SVTXCurrencyField();
     336             : 
     337             :     // ::com::sun::star::uno::XInterface
     338             :     ::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;
     339       26414 :     void                                        SAL_CALL acquire() throw() SAL_OVERRIDE  { SVTXFormattedField::acquire(); }
     340       26414 :     void                                        SAL_CALL release() throw() SAL_OVERRIDE  { SVTXFormattedField::release(); }
     341             : 
     342             :     // ::com::sun::star::lang::XTypeProvider
     343             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     344             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     345             : 
     346             :     // ::com::sun::star::awt::XVclWindowPeer
     347             :     void SAL_CALL setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     348             :     ::com::sun::star::uno::Any SAL_CALL getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     349             : 
     350             :     // ::com::sun::star::awt::XCurrencyField
     351             :     void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     352             :     double SAL_CALL getValue(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     353             :     void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     354             :     double SAL_CALL getMin(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     355             :     void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     356             :     double SAL_CALL getMax(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     357             :     void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     358             :     double SAL_CALL getFirst(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     359             :     void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     360             :     double SAL_CALL getLast(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     361             :     void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     362             :     double SAL_CALL getSpinSize(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     363             :     void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     364             :     sal_Int16 SAL_CALL getDecimalDigits(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     365             :     void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     366             :     sal_Bool SAL_CALL isStrictFormat(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     367             : 
     368             :     static void     ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
     369           0 :     virtual void    GetPropertyIds( std::list< sal_uInt16 > &aIds ) SAL_OVERRIDE { return ImplGetPropertyIds( aIds ); }
     370             : };
     371             : 
     372             : 
     373             : //  class VCLXProgressBar
     374             : 
     375             : class VCLXProgressBar : public ::com::sun::star::awt::XProgressBar,
     376             :                         public VCLXWindow
     377             : {
     378             : private:
     379             :     sal_Int32   m_nValue;
     380             :     sal_Int32   m_nValueMin;
     381             :     sal_Int32   m_nValueMax;
     382             : 
     383             : protected:
     384             :     void            ImplUpdateValue();
     385             : 
     386             : public:
     387             :                     VCLXProgressBar();
     388             :                     virtual ~VCLXProgressBar();
     389             : 
     390             :     // ::com::sun::star::uno::XInterface
     391             :     ::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;
     392           0 :     void                                        SAL_CALL acquire() throw() SAL_OVERRIDE  { VCLXWindow::acquire(); }
     393           0 :     void                                        SAL_CALL release() throw() SAL_OVERRIDE  { VCLXWindow::release(); }
     394             : 
     395             :     // ::com::sun::star::lang::XTypeProvider
     396             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     397             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     398             : 
     399             :     // ::com::sun::star::awt::XProgressBar
     400             :     void SAL_CALL setForegroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     401             :     void SAL_CALL setBackgroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     402             :     void SAL_CALL setValue( sal_Int32 nValue ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     403             :     void SAL_CALL setRange( sal_Int32 nMin, sal_Int32 nMax ) throw(::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     404             :     sal_Int32 SAL_CALL getValue() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     405             : 
     406             :     // ::com::sun::star::awt::VclWindowPeer
     407             :     void SAL_CALL setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     408             :     ::com::sun::star::uno::Any SAL_CALL getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     409             : 
     410             :     static void     ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
     411           0 :     virtual void    GetPropertyIds( std::list< sal_uInt16 > &aIds ) SAL_OVERRIDE { return ImplGetPropertyIds( aIds ); }
     412             : };
     413             : 
     414             : 
     415             : //  class SVTXDateField
     416             : 
     417             : class SVTXDateField : public VCLXDateField
     418             : {
     419             : public:
     420             :                     SVTXDateField();
     421             :                     virtual ~SVTXDateField();
     422             : 
     423             :     // ::com::sun::star::awt::VclWindowPeer
     424             :     void SAL_CALL setProperty( const OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     425             : 
     426             :     static void     ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
     427           0 :     virtual void    GetPropertyIds( std::list< sal_uInt16 > &aIds ) SAL_OVERRIDE { return ImplGetPropertyIds( aIds ); }
     428             : };
     429             : 
     430             : #endif // INCLUDED_SVTOOLS_SOURCE_INC_UNOIFACE_HXX
     431             : 
     432             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11