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

Generated by: LCOV version 1.10