LCOV - code coverage report
Current view: top level - libreoffice/svx/source/table - accessiblecell.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 Functions: 0 1 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 _SVX_ACCESSIBILITY_ACCESSIBLE_CELL_HXX
      21             : #define _SVX_ACCESSIBILITY_ACCESSIBLE_CELL_HXX
      22             : 
      23             : #include <com/sun/star/accessibility/XAccessible.hpp>
      24             : #include <com/sun/star/accessibility/XAccessibleExtendedComponent.hpp>
      25             : #include <com/sun/star/accessibility/AccessibleRole.hpp>
      26             : #include <com/sun/star/drawing/XShape.hpp>
      27             : 
      28             : #include <rtl/ref.hxx>
      29             : 
      30             : #include <editeng/AccessibleContextBase.hxx>
      31             : #include <editeng/AccessibleComponentBase.hxx>
      32             : #include <svx/IAccessibleViewForwarderListener.hxx>
      33             : #include <svx/AccessibleTextHelper.hxx>
      34             : #include <svx/AccessibleShapeTreeInfo.hxx>
      35             : 
      36             : #include <cppuhelper/implbase1.hxx>
      37             : 
      38             : #include "cell.hxx"
      39             : 
      40             : #include <boost/noncopyable.hpp>
      41             : 
      42             : 
      43             : namespace accessibility
      44             : {
      45             : 
      46             : class AccessibleShapeTreeInfo;
      47             : 
      48             : typedef ::cppu::ImplInheritanceHelper1< AccessibleContextBase, ::com::sun::star::accessibility::XAccessibleExtendedComponent > AccessibleCellBase;
      49             : 
      50             : class AccessibleCell : boost::noncopyable, public AccessibleCellBase, public AccessibleComponentBase, public IAccessibleViewForwarderListener
      51             : {
      52             : public:
      53             :     AccessibleCell( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible>& rxParent, const sdr::table::CellRef& rCell, sal_Int32 nIndex, const AccessibleShapeTreeInfo& rShapeTreeInfo);
      54             :     virtual ~AccessibleCell (void);
      55             : 
      56             :     virtual void Init (void);
      57             : 
      58             :     virtual bool operator== (const AccessibleCell& rAccessibleCell);
      59             : 
      60             :     virtual sal_Bool SetState (sal_Int16 aState);
      61             :     virtual sal_Bool ResetState (sal_Int16 aState);
      62             : 
      63             :     // XInterface
      64             :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException);
      65             :     virtual void SAL_CALL acquire(  ) throw ();
      66             :     virtual void SAL_CALL release(  ) throw ();
      67             : 
      68             :     // XAccessibleContext
      69             :     virtual sal_Int32 SAL_CALL getAccessibleChildCount(void) throw(::com::sun::star::uno::RuntimeException);
      70             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL getAccessibleChild(sal_Int32 nIndex) throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
      71             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL getAccessibleStateSet(void) throw(::com::sun::star::uno::RuntimeException);
      72             :     virtual sal_Int32 SAL_CALL getAccessibleIndexInParent(void) throw(::com::sun::star::uno::RuntimeException);
      73             :     virtual ::rtl::OUString SAL_CALL getAccessibleName (void) throw (::com::sun::star::uno::RuntimeException);
      74             : 
      75             :     // XAccessibleComponent
      76             :     virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint) throw (::com::sun::star::uno::RuntimeException);
      77             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const ::com::sun::star::awt::Point& aPoint) throw(::com::sun::star::uno::RuntimeException);
      78             :     virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds(void) throw(::com::sun::star::uno::RuntimeException);
      79             :     virtual ::com::sun::star::awt::Point SAL_CALL getLocation(void) throw(::com::sun::star::uno::RuntimeException);
      80             :     virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen(void) throw(::com::sun::star::uno::RuntimeException);
      81             :     virtual ::com::sun::star::awt::Size SAL_CALL getSize(void) throw(::com::sun::star::uno::RuntimeException);
      82             :     virtual void SAL_CALL addFocusListener ( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFocusListener >& xListener) throw (::com::sun::star::uno::RuntimeException);
      83             :     virtual void SAL_CALL removeFocusListener (const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFocusListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
      84             :     virtual void SAL_CALL grabFocus (void) throw (::com::sun::star::uno::RuntimeException);
      85             :     virtual sal_Int32 SAL_CALL getForeground(void) throw(::com::sun::star::uno::RuntimeException);
      86             :     virtual sal_Int32 SAL_CALL getBackground(void) throw(::com::sun::star::uno::RuntimeException);
      87             : 
      88             :     // XAccessibleExtendedComponent
      89             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont > SAL_CALL getFont (void) throw (::com::sun::star::uno::RuntimeException);
      90             :     virtual ::rtl::OUString SAL_CALL getTitledBorderText (void) throw (::com::sun::star::uno::RuntimeException);
      91             :     virtual ::rtl::OUString SAL_CALL getToolTipText (void) throw (::com::sun::star::uno::RuntimeException);
      92             : 
      93             :     // XAccessibleEventBroadcaster
      94             :     virtual void SAL_CALL addAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& rxListener) throw(::com::sun::star::uno::RuntimeException);
      95             :     virtual void SAL_CALL removeAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& rxListener) throw(::com::sun::star::uno::RuntimeException);
      96             : 
      97             :     // XServiceInfo
      98             :     virtual ::rtl::OUString SAL_CALL getImplementationName (void) throw(::com::sun::star::uno::RuntimeException);
      99             :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames (void) throw(::com::sun::star::uno::RuntimeException);
     100             : 
     101             :     // IAccessibleViewForwarderListener
     102             :     virtual void ViewForwarderChanged (ChangeType aChangeType, const IAccessibleViewForwarder* pViewForwarder);
     103             : 
     104             :     // Misc
     105             : 
     106             :     /** set the index _nIndex at the accessible cell param  _nIndex The new index in parent.
     107             :     */
     108           0 :     inline void setIndexInParent(sal_Int32 _nIndex) { mnIndexInParent = _nIndex; }
     109             : 
     110             : protected:
     111             :     /// Bundle of information passed to all shapes in a document tree.
     112             :     AccessibleShapeTreeInfo maShapeTreeInfo;
     113             : 
     114             :     /// the index in parent.
     115             :     sal_Int32 mnIndexInParent;
     116             : 
     117             :     /// The accessible text engine.  May be NULL if it can not be created.
     118             :     AccessibleTextHelper* mpText;
     119             : 
     120             :     sdr::table::CellRef mxCell;
     121             : 
     122             :     /// This method is called from the component helper base class while disposing.
     123             :     virtual void SAL_CALL disposing (void);
     124             : 
     125             : private:
     126             :     explicit AccessibleCell(void);  // not implemented
     127             :     explicit AccessibleCell(const AccessibleCell&); // not implemented
     128             :     AccessibleCell& operator=(const AccessibleCell&); // not implemented
     129             : };
     130             : 
     131             : } // end of namespace accessibility
     132             : 
     133             : #endif
     134             : 
     135             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10