LCOV - code coverage report
Current view: top level - toolkit/inc/toolkit/controls - tkscrollbar.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 10 10 100.0 %
Date: 2012-08-25 Functions: 13 14 92.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 6 16 37.5 %

           Branch data     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                 :            : #ifndef TOOLKIT_TOOLKIT_CONTROLS_TKSCROLLBAR_HXX
      20                 :            : #define TOOLKIT_TOOLKIT_CONTROLS_TKSCROLLBAR_HXX
      21                 :            : 
      22                 :            : #include <toolkit/controls/unocontrolmodel.hxx>
      23                 :            : #include <toolkit/helper/servicenames.hxx>
      24                 :            : #include <toolkit/controls/unocontrolbase.hxx>
      25                 :            : #include <toolkit/helper/macros.hxx>
      26                 :            : #include <com/sun/star/awt/XScrollBar.hpp>
      27                 :            : #include <com/sun/star/awt/XAdjustmentListener.hpp>
      28                 :            : #include <com/sun/star/awt/AdjustmentType.hpp>
      29                 :            : 
      30                 :            : //........................................................................
      31                 :            : namespace toolkit
      32                 :            : {
      33                 :            : //........................................................................
      34                 :            : 
      35                 :            :     //====================================================================
      36                 :            :     //= UnoControlScrollBarModel
      37                 :            :     //====================================================================
      38         [ -  + ]:         48 :     class UnoControlScrollBarModel : public UnoControlModel
      39                 :            :     {
      40                 :            :     protected:
      41                 :            :         ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
      42                 :            :         ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
      43                 :            : 
      44                 :            :     public:
      45                 :            :                             UnoControlScrollBarModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
      46                 :          4 :                             UnoControlScrollBarModel( const UnoControlScrollBarModel& rModel ) : UnoControlModel( rModel ) {;}
      47                 :            : 
      48         [ +  - ]:          4 :         UnoControlModel*    Clone() const { return new UnoControlScrollBarModel( *this ); }
      49                 :            : 
      50                 :            :         // ::com::sun::star::beans::XMultiPropertySet
      51                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
      52                 :            : 
      53                 :            :         // ::com::sun::star::io::XPersistObject
      54                 :            :         ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
      55                 :            : 
      56                 :            :         // XServiceInfo
      57 [ +  - ][ +  - ]:         22 :         DECLIMPL_SERVICEINFO_DERIVED( UnoControlScrollBarModel, UnoControlModel, szServiceName2_UnoControlScrollBarModel )
      58                 :            :     };
      59                 :            : 
      60                 :            :     //====================================================================
      61                 :            :     //= UnoControlScrollBarModel
      62                 :            :     //====================================================================
      63 [ +  - ][ -  + ]:          4 :     class UnoScrollBarControl : public UnoControlBase,
      64                 :            :                                 public ::com::sun::star::awt::XAdjustmentListener,
      65                 :            :                                 public ::com::sun::star::awt::XScrollBar
      66                 :            :     {
      67                 :            :     private:
      68                 :            :         AdjustmentListenerMultiplexer maAdjustmentListeners;
      69                 :            : 
      70                 :            :     public:
      71                 :            :                                     UnoScrollBarControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
      72                 :            :         ::rtl::OUString             GetComponentServiceName();
      73                 :            : 
      74                 :         60 :         ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
      75                 :            :         ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
      76                 :        264 :         void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
      77                 :        264 :         void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
      78                 :            :         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);
      79                 :          4 :         void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
      80                 :            :         void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
      81                 :            : 
      82                 :            :         // ::com::sun::star::lang::XTypeProvider
      83                 :            :         ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
      84                 :            :         ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
      85                 :            : 
      86                 :            :         // ::com::sun::star::awt::XAdjustmentListener
      87                 :            :         void SAL_CALL adjustmentValueChanged( const ::com::sun::star::awt::AdjustmentEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
      88                 :            : 
      89                 :            :         // ::com::sun::star::awt::XScrollBar
      90                 :            :         void SAL_CALL addAdjustmentListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XAdjustmentListener >& l ) throw(::com::sun::star::uno::RuntimeException);
      91                 :            :         void SAL_CALL removeAdjustmentListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XAdjustmentListener >& l ) throw(::com::sun::star::uno::RuntimeException);
      92                 :            :         void SAL_CALL setValue( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
      93                 :            :         void SAL_CALL setValues( sal_Int32 nValue, sal_Int32 nVisible, sal_Int32 nMax ) throw(::com::sun::star::uno::RuntimeException);
      94                 :            :         sal_Int32 SAL_CALL getValue(  ) throw(::com::sun::star::uno::RuntimeException);
      95                 :            :         void SAL_CALL setMaximum( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
      96                 :            :         sal_Int32 SAL_CALL getMaximum(  ) throw(::com::sun::star::uno::RuntimeException);
      97                 :            :         void SAL_CALL setLineIncrement( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
      98                 :            :         sal_Int32 SAL_CALL getLineIncrement(  ) throw(::com::sun::star::uno::RuntimeException);
      99                 :            :         void SAL_CALL setBlockIncrement( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
     100                 :            :         sal_Int32 SAL_CALL getBlockIncrement(  ) throw(::com::sun::star::uno::RuntimeException);
     101                 :            :         void SAL_CALL setVisibleSize( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
     102                 :            :         sal_Int32 SAL_CALL getVisibleSize(  ) throw(::com::sun::star::uno::RuntimeException);
     103                 :            :         void SAL_CALL setOrientation( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
     104                 :            :         sal_Int32 SAL_CALL getOrientation(  ) throw(::com::sun::star::uno::RuntimeException);
     105                 :            : 
     106                 :            :         // ::com::sun::star::lang::XServiceInfo
     107 [ #  # ][ #  # ]:          2 :         DECLIMPL_SERVICEINFO_DERIVED( UnoScrollBarControl, UnoControlBase, szServiceName2_UnoControlScrollBar )
     108                 :            :     };
     109                 :            : 
     110                 :            : 
     111                 :            : 
     112                 :            : //........................................................................
     113                 :            : } // namespacetoolkit
     114                 :            : //........................................................................
     115                 :            : 
     116                 :            : #endif // TOOLKIT_TOOLKIT_CONTROLS_TKSCROLLBAR_HXX
     117                 :            : 
     118                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10