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

Generated by: LCOV version 1.10