LCOV - code coverage report
Current view: top level - toolkit/source/controls/grid - gridcontrol.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 3 33.3 %
Date: 2012-08-25 Functions: 2 6 33.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 10 10.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef TOOLKIT_GRID_CONTROL_HXX
      30                 :            : #define TOOLKIT_GRID_CONTROL_HXX
      31                 :            : 
      32                 :            : #include <com/sun/star/awt/grid/XGridControl.hpp>
      33                 :            : 
      34                 :            : #include <toolkit/controls/unocontrolbase.hxx>
      35                 :            : #include <toolkit/controls/unocontrolmodel.hxx>
      36                 :            : #include <toolkit/helper/servicenames.hxx>
      37                 :            : #include <cppuhelper/implbase1.hxx>
      38                 :            : #include <comphelper/sequence.hxx>
      39                 :            : #include <toolkit/helper/listenermultiplexer.hxx>
      40                 :            : 
      41                 :            : #include <boost/scoped_ptr.hpp>
      42                 :            : 
      43                 :            : namespace toolkit
      44                 :            : {
      45                 :            : 
      46                 :            : class GridEventForwarder;
      47                 :            : 
      48                 :            : // ===================================================================
      49                 :            : // = UnoGridModel
      50                 :            : // ===================================================================
      51         [ -  + ]:          4 : class UnoGridModel : public UnoControlModel
      52                 :            : {
      53                 :            : protected:
      54                 :            :     ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
      55                 :            :     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
      56                 :            : 
      57                 :            : public:
      58                 :            :     UnoGridModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
      59                 :            :     UnoGridModel( const UnoGridModel& rModel );
      60                 :            : 
      61                 :            :     UnoControlModel* Clone() const;
      62                 :            : 
      63                 :            :     // ::com::sun::star::lang::XComponent
      64                 :            :     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
      65                 :            : 
      66                 :            :     // ::com::sun::star::beans::XMultiPropertySet
      67                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
      68                 :            : 
      69                 :            :     // ::com::sun::star::io::XPersistObject
      70                 :            :     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
      71                 :            : 
      72                 :            :     // OPropertySetHelper
      73                 :            :     void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
      74                 :            : 
      75                 :            :     // XServiceInfo
      76 [ #  # ][ #  # ]:          0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoGridModel, UnoControlModel, szServiceName_GridControlModel )
      77                 :            : };
      78                 :            : 
      79                 :            : 
      80                 :            : // ===================================================================
      81                 :            : // = UnoGridControl
      82                 :            : // ===================================================================
      83                 :            : typedef ::cppu::ImplInheritanceHelper1  <   UnoControlBase
      84                 :            :                                         ,   ::com::sun::star::awt::grid::XGridControl
      85                 :            :                                         >   UnoGridControl_Base;
      86                 :            : class UnoGridControl : public UnoGridControl_Base
      87                 :            : {
      88                 :            : public:
      89                 :            :     UnoGridControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
      90                 :            :     ::rtl::OUString             GetComponentServiceName();
      91                 :            : 
      92                 :            :     // ::com::sun::star::lang::XComponent
      93                 :            :     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
      94                 :            : 
      95                 :            :     // ::com::sun::star::awt::XControl
      96                 :            :     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);
      97                 :            :     sal_Bool SAL_CALL setModel( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& rxModel ) throw(::com::sun::star::uno::RuntimeException);
      98                 :            : 
      99                 :            :     // ::com::sun::star::awt::grid::XGridControl
     100                 :            :     virtual ::sal_Int32 SAL_CALL getColumnAtPoint(::sal_Int32 x, ::sal_Int32 y) throw (::com::sun::star::uno::RuntimeException);
     101                 :            :     virtual ::sal_Int32 SAL_CALL getRowAtPoint(::sal_Int32 x, ::sal_Int32 y) throw (::com::sun::star::uno::RuntimeException);
     102                 :            :     virtual ::sal_Int32 SAL_CALL getCurrentColumn(  ) throw (::com::sun::star::uno::RuntimeException);
     103                 :            :     virtual ::sal_Int32 SAL_CALL getCurrentRow(  ) throw (::com::sun::star::uno::RuntimeException);
     104                 :            : 
     105                 :            :     // ::com::sun::star::awt::grid::XGridSelection
     106                 :            :     virtual void SAL_CALL selectRow( ::sal_Int32 i_rowIndex ) throw (::com::sun::star::uno::RuntimeException);
     107                 :            :     virtual void SAL_CALL selectAllRows() throw (::com::sun::star::uno::RuntimeException);
     108                 :            :     virtual void SAL_CALL deselectRow( ::sal_Int32 i_rowIndex ) throw (::com::sun::star::uno::RuntimeException);
     109                 :            :     virtual void SAL_CALL deselectAllRows() throw (::com::sun::star::uno::RuntimeException);
     110                 :            :     virtual ::com::sun::star::uno::Sequence< ::sal_Int32 > SAL_CALL getSelection() throw (::com::sun::star::uno::RuntimeException);
     111                 :            :     virtual ::sal_Bool SAL_CALL isSelectionEmpty() throw (::com::sun::star::uno::RuntimeException);
     112                 :            :     virtual ::sal_Bool SAL_CALL isSelectedIndex(::sal_Int32 index) throw (::com::sun::star::uno::RuntimeException);
     113                 :            :     virtual void SAL_CALL addSelectionListener(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::grid::XGridSelectionListener > & listener) throw (::com::sun::star::uno::RuntimeException);
     114                 :            :     virtual void SAL_CALL removeSelectionListener(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::grid::XGridSelectionListener > & listener) throw (::com::sun::star::uno::RuntimeException);
     115                 :            : 
     116                 :            :     // ::com::sun::star::lang::XServiceInfo
     117 [ #  # ][ #  # ]:          0 :     DECLIMPL_SERVICEINFO_DERIVED( UnoGridControl, UnoControlBase, szServiceName_GridControl )
     118                 :            : 
     119                 :            :     using UnoControl::getPeer;
     120                 :            : 
     121                 :            : protected:
     122                 :            :     ~UnoGridControl();
     123                 :            : 
     124                 :            : private:
     125                 :            :     SelectionListenerMultiplexer                m_aSelectionListeners;
     126                 :            :     ::boost::scoped_ptr< GridEventForwarder >   m_pEventForwarder;
     127                 :            : };
     128                 :            : 
     129                 :            : } // toolkit
     130                 :            : 
     131                 :            : #endif // _TOOLKIT_TREE_CONTROL_HXX
     132                 :            : 
     133                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10