LCOV - code coverage report
Current view: top level - libreoffice/sw/source/core/access - acchyperlink.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 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 _ACCHYPERLINK_HXX
      20             : #define _ACCHYPERLINK_HXX
      21             : #include <com/sun/star/accessibility/XAccessibleHyperlink.hpp>
      22             : #include <rtl/ref.hxx>
      23             : #include <cppuhelper/implbase1.hxx>
      24             : #include <fmtinfmt.hxx>
      25             : 
      26             : class SwAccessibleParagraph;
      27             : class SwTxtAttr;
      28             : 
      29           0 : class SwAccessibleHyperlink :
      30             :         public ::cppu::WeakImplHelper1<
      31             :         ::com::sun::star::accessibility::XAccessibleHyperlink >
      32             : {
      33             :     friend class SwAccessibleParagraph;
      34             :     friend class SwAccessibleHyperTextData;
      35             :     sal_uInt16 nHintPos;
      36             :     ::rtl::Reference< SwAccessibleParagraph > xPara;
      37             :     sal_Int32 nStartIdx;
      38             :     sal_Int32 nEndIdx;
      39             : 
      40             :     SwAccessibleHyperlink( sal_uInt16 nHintPos,
      41             :                            SwAccessibleParagraph *p,
      42             :                               sal_Int32 nStt, sal_Int32 nEnd    );
      43             : 
      44             :     const SwTxtAttr *GetTxtAttr() const;
      45             :     void Invalidate();
      46             : 
      47             : public:
      48             : 
      49             :     // XAccessibleAction
      50             :     virtual sal_Int32 SAL_CALL getAccessibleActionCount()
      51             :         throw (::com::sun::star::uno::RuntimeException);
      52             :     virtual sal_Bool SAL_CALL doAccessibleAction( sal_Int32 nIndex )
      53             :         throw (::com::sun::star::lang::IndexOutOfBoundsException,
      54             :                 ::com::sun::star::uno::RuntimeException);
      55             :     virtual ::rtl::OUString SAL_CALL getAccessibleActionDescription(
      56             :                 sal_Int32 nIndex )
      57             :         throw (::com::sun::star::lang::IndexOutOfBoundsException,
      58             :                 ::com::sun::star::uno::RuntimeException);
      59             :     virtual ::com::sun::star::uno::Reference<
      60             :             ::com::sun::star::accessibility::XAccessibleKeyBinding > SAL_CALL
      61             :                getAccessibleActionKeyBinding( sal_Int32 nIndex )
      62             :         throw (::com::sun::star::lang::IndexOutOfBoundsException,
      63             :                 ::com::sun::star::uno::RuntimeException);
      64             : 
      65             :     // XAccessibleHyperlink
      66             :     virtual ::com::sun::star::uno::Any SAL_CALL getAccessibleActionAnchor(
      67             :                 sal_Int32 nIndex )
      68             :         throw (::com::sun::star::lang::IndexOutOfBoundsException,
      69             :                 ::com::sun::star::uno::RuntimeException);
      70             :     virtual ::com::sun::star::uno::Any SAL_CALL getAccessibleActionObject(
      71             :             sal_Int32 nIndex )
      72             :         throw (::com::sun::star::lang::IndexOutOfBoundsException,
      73             :                 ::com::sun::star::uno::RuntimeException);
      74             :     virtual sal_Int32 SAL_CALL getStartIndex()
      75             :         throw (::com::sun::star::uno::RuntimeException);
      76             :     virtual sal_Int32 SAL_CALL getEndIndex()
      77             :         throw (::com::sun::star::uno::RuntimeException);
      78             :     virtual sal_Bool SAL_CALL isValid(  )
      79             :         throw (::com::sun::star::uno::RuntimeException);
      80             : };
      81             : 
      82             : #endif
      83             : 
      84             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10