LCOV - code coverage report
Current view: top level - accessibility/inc/accessibility/extended - AccessibleGridControlHeaderCell.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 2 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             : #ifndef INCLUDED_ACCESSIBILITY_INC_ACCESSIBILITY_EXTENDED_ACCESSIBLEGRIDCONTROLHEADERCELL_HXX
      20             : #define INCLUDED_ACCESSIBILITY_INC_ACCESSIBILITY_EXTENDED_ACCESSIBLEGRIDCONTROLHEADERCELL_HXX
      21             : 
      22             : #include "accessibility/extended/AccessibleGridControlTableCell.hxx"
      23             : 
      24             : namespace accessibility
      25             : {
      26           0 :     class AccessibleGridControlHeaderCell : public AccessibleGridControlCell, public ::com::sun::star::accessibility::XAccessible
      27             :     {
      28             :         sal_Int32   m_nColumnRowId;
      29             :     public:
      30             :         AccessibleGridControlHeaderCell(sal_Int32 _nColumnRowId,
      31             :                         const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxParent,
      32             :                         ::svt::table::IAccessibleTable& _rTable,
      33             :                         ::svt::table::AccessibleTableControlObjType  _eObjType);
      34             :         /** @return  The count of visible children. */
      35             :         virtual sal_Int32 SAL_CALL getAccessibleChildCount() throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      36             : 
      37             :         /** @return  The XAccessible interface of the specified child. */
      38             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL
      39             :             getAccessibleChild( sal_Int32 nChildIndex ) throw ( ::com::sun::star::lang::IndexOutOfBoundsException,::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      40             : 
      41             :         /** @return  The index of this object among the parent's children. */
      42             :         virtual sal_Int32 SAL_CALL getAccessibleIndexInParent() throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      43             : 
      44             :         /** Grabs the focus to the GridControl. */
      45             :         virtual void SAL_CALL grabFocus() throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      46             : 
      47             :         // XInterface
      48             : 
      49             :         /** Queries for a new interface. */
      50             :         ::com::sun::star::uno::Any SAL_CALL queryInterface(
      51             :                 const ::com::sun::star::uno::Type& rType )
      52             :             throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      53             : 
      54             :         /** Aquires the object (calls acquire() on base class). */
      55             :         virtual void SAL_CALL acquire() throw () SAL_OVERRIDE;
      56             : 
      57             :         /** Releases the object (calls release() on base class). */
      58             :         virtual void SAL_CALL release() throw () SAL_OVERRIDE;
      59             :         // XAccessible
      60             : 
      61             :         /** @return  The XAccessibleContext interface of this object. */
      62             :         virtual ::com::sun::star::uno::Reference<
      63             :             ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL
      64             :         getAccessibleContext()
      65             :             throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      66             : 
      67             :         inline bool isRowBarCell() const
      68             :         {
      69             :             return getType() == ::svt::table::TCTYPE_ROWHEADERCELL;
      70             :         }
      71             : 
      72             :         /** @return
      73             :                 The name of this class.
      74             :         */
      75             :         virtual OUString SAL_CALL getImplementationName() throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      76             : 
      77             :         /** Creates a new AccessibleStateSetHelper and fills it with states of the
      78             :             current object.
      79             :             @return
      80             :                 A filled AccessibleStateSetHelper.
      81             :         */
      82             :         ::utl::AccessibleStateSetHelper* implCreateStateSetHelper() SAL_OVERRIDE;
      83             : 
      84             :     protected:
      85             :         virtual Rectangle implGetBoundingBox() SAL_OVERRIDE;
      86             : 
      87             :         virtual Rectangle implGetBoundingBoxOnScreen() SAL_OVERRIDE;
      88             :     };
      89             : }
      90             : 
      91             : #endif // INCLUDED_ACCESSIBILITY_INC_ACCESSIBILITY_EXTENDED_ACCESSIBLEGRIDCONTROLHEADERCELL_HXX
      92             : 
      93             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11