LCOV - code coverage report
Current view: top level - sw/source/core/access - accfield.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * This file is part of the LibreOffice project.
       3             :  *
       4             :  * This Source Code Form is subject to the terms of the Mozilla Public
       5             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       6             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       7             :  *
       8             :  * This file incorporates work covered by the following license notice:
       9             :  *
      10             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      11             :  *   contributor license agreements. See the NOTICE file distributed
      12             :  *   with this work for additional information regarding copyright
      13             :  *   ownership. The ASF licenses this file to you under the Apache
      14             :  *   License, Version 2.0 (the "License"); you may not use this file
      15             :  *   except in compliance with the License. You may obtain a copy of
      16             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      17             :  */
      18             : #ifndef _ACCFIELD_HXX
      19             : #define _ACCFIELD_HXX
      20             : 
      21             : #include <com/sun/star/accessibility/XAccessible.hpp>
      22             : #include <com/sun/star/accessibility/XAccessibleContext.hpp>
      23             : #include <com/sun/star/accessibility/XAccessibleComponent.hpp>
      24             : #include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
      25             : #include <com/sun/star/accessibility/IllegalAccessibleComponentStateException.hpp>
      26             : #include <com/sun/star/lang/DisposedException.hpp>
      27             : #include <com/sun/star/lang/XServiceInfo.hpp>
      28             : #include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
      29             : #include <com/sun/star/accessibility/XAccessibleHyperlink.hpp>
      30             : #include <com/sun/star/accessibility/XAccessibleValue.hpp>
      31             : #include <com/sun/star/uno/RuntimeException.hpp>
      32             : #include <cppuhelper/implbase4.hxx>
      33             : #include <fmtinfmt.hxx>
      34             : 
      35             : class SwAccessibleParagraph;
      36             : class SwField;
      37           0 : class SwAccessibleField :
      38             :     public ::cppu::WeakImplHelper4<
      39             :                 ::com::sun::star::accessibility::XAccessible,
      40             :                 ::com::sun::star::accessibility::XAccessibleContext,
      41             :                 ::com::sun::star::accessibility::XAccessibleComponent,
      42             :                 ::com::sun::star::accessibility::XAccessibleEventBroadcaster
      43             :                 >
      44             : {
      45             :     friend class SwAccessibleParagraph;
      46             :     friend class SwAccessibleHyperTextData;
      47             : 
      48             : protected:
      49             :     ::rtl::Reference< SwAccessibleParagraph > m_xPara;
      50             :     SwField *m_pSwField;
      51             : 
      52             :     sal_uInt32 m_nClientId;   // client id in the AccessibleEventNotifier queue
      53             :     sal_Int16 m_nRole;      // immutable outside constructor
      54             : public:
      55             :     SwAccessibleField( SwField *pSwFld,SwAccessibleParagraph *p,sal_Int16);
      56             : 
      57             :     virtual void SAL_CALL addEventListener(
      58             :             const ::com::sun::star::uno::Reference<
      59             :                 ::com::sun::star::accessibility::XAccessibleEventListener >& xListener )
      60             :         throw (::com::sun::star::uno::RuntimeException);
      61             :     virtual void SAL_CALL removeEventListener(
      62             :             const ::com::sun::star::uno::Reference<
      63             :                 ::com::sun::star::accessibility::XAccessibleEventListener >& xListener )
      64             :         throw (::com::sun::star::uno::RuntimeException);
      65             : 
      66             :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
      67             :         const ::com::sun::star::uno::Type& aType )
      68             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      69             : 
      70             :     virtual void SAL_CALL acquire(  ) throw () SAL_OVERRIDE ;
      71             :     virtual void SAL_CALL release(  ) throw () SAL_OVERRIDE ;
      72             : 
      73             : public:
      74             :     //=====  XAccessible  =====================================================
      75             : 
      76             :     /// Return the XAccessibleContext.
      77             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext> SAL_CALL
      78             :         getAccessibleContext (void) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      79             : 
      80             :     //=====  XAccessibleContext  ==============================================
      81             : 
      82             :     /// Return the number of currently visible children.
      83             :     virtual sal_Int32 SAL_CALL getAccessibleChildCount (void)
      84             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      85             : 
      86             :     /// Return the specified child or NULL if index is invalid.
      87             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL
      88             :         getAccessibleChild (sal_Int32 nIndex)
      89             :         throw (::com::sun::star::uno::RuntimeException,
      90             :                 ::com::sun::star::lang::IndexOutOfBoundsException, std::exception) SAL_OVERRIDE;
      91             : 
      92             :     /// Return a reference to the parent.
      93             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL
      94             :         getAccessibleParent (void)
      95             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      96             : 
      97             :     /// Return this objects index among the parents children.
      98             :     virtual sal_Int32 SAL_CALL
      99             :         getAccessibleIndexInParent (void)
     100             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     101             : 
     102             :     /// Return this object's role.
     103             :     virtual sal_Int16 SAL_CALL
     104             :         getAccessibleRole (void)
     105             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     106             : 
     107             :     /// Return this object's description.
     108             :     virtual OUString SAL_CALL
     109             :         getAccessibleDescription (void)
     110             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     111             : 
     112             :     /// Return the object's current name.
     113             :     virtual OUString SAL_CALL
     114             :         getAccessibleName (void)
     115             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     116             : 
     117             :     /// Return NULL to indicate that an empty relation set.
     118             :     virtual ::com::sun::star::uno::Reference<
     119             :             ::com::sun::star::accessibility::XAccessibleRelationSet> SAL_CALL
     120             :         getAccessibleRelationSet (void)
     121             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     122             : 
     123             :     /// Return the set of current states.
     124             :     virtual ::com::sun::star::uno::Reference<
     125             :             ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL
     126             :         getAccessibleStateSet (void)
     127             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     128             : 
     129             :     /** Return the parents locale or throw exception if this object has no
     130             :         parent yet/anymore.
     131             :     */
     132             :     virtual ::com::sun::star::lang::Locale SAL_CALL
     133             :         getLocale (void)
     134             :         throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     135             : 
     136             :     //=====  XAccessibleComponent  ============================================
     137             :     virtual sal_Bool SAL_CALL containsPoint(
     138             :             const ::com::sun::star::awt::Point& aPoint )
     139             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     140             : 
     141             :     virtual ::com::sun::star::uno::Reference<
     142             :         ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(
     143             :                 const ::com::sun::star::awt::Point& aPoint )
     144             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     145             : 
     146             :     virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds()
     147             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     148             : 
     149             :     virtual ::com::sun::star::awt::Point SAL_CALL getLocation()
     150             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     151             : 
     152             :     virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen()
     153             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     154             : 
     155             :     virtual ::com::sun::star::awt::Size SAL_CALL getSize()
     156             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     157             : 
     158             :     virtual void SAL_CALL grabFocus()
     159             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     160             : 
     161             :     virtual sal_Int32 SAL_CALL getForeground()
     162             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     163             :     virtual sal_Int32 SAL_CALL getBackground()
     164             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     165             : 
     166             :     virtual ::com::sun::star::awt::Rectangle SAL_CALL
     167             :         getBoundsImpl(sal_Bool bRelative)
     168             :         throw (::com::sun::star::uno::RuntimeException) ;
     169             : 
     170             : };
     171             : 
     172             : #endif
     173             : 

Generated by: LCOV version 1.10