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_SW_SOURCE_CORE_ACCESS_ACCNOTEXTHYPERLINK_HXX
20 : #define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCNOTEXTHYPERLINK_HXX
21 :
22 : #include <com/sun/star/accessibility/XAccessibleHyperlink.hpp>
23 : #include <com/sun/star/uno/RuntimeException.hpp>
24 : #include <cppuhelper/implbase1.hxx>
25 : #include <fmtinfmt.hxx>
26 : #include <frame.hxx>
27 : #include <layfrm.hxx>
28 :
29 : #include "accnotextframe.hxx"
30 :
31 0 : class SwAccessibleNoTextHyperlink :
32 : public ::cppu::WeakImplHelper1<
33 : ::com::sun::star::accessibility::XAccessibleHyperlink >
34 : {
35 : friend class SwAccessibleNoTextFrame;
36 :
37 : ::rtl::Reference< SwAccessibleNoTextFrame > xFrame;
38 : const SwFrm *mpFrm;
39 : sal_uInt16 mnIndex;
40 :
41 0 : SwFrmFmt *GetFmt()
42 : {
43 0 : return ((SwLayoutFrm*)mpFrm)->GetFmt();
44 : }
45 : public:
46 :
47 : SwAccessibleNoTextHyperlink( SwAccessibleNoTextFrame *p, const SwFrm* aFrm, sal_uInt16 nIndex = 0xFFFF );
48 :
49 : // XAccessibleAction
50 : virtual sal_Int32 SAL_CALL getAccessibleActionCount()
51 : throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
52 : virtual sal_Bool SAL_CALL doAccessibleAction( sal_Int32 nIndex )
53 : throw (::com::sun::star::lang::IndexOutOfBoundsException,
54 : ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
55 : virtual ::rtl::OUString SAL_CALL getAccessibleActionDescription(
56 : sal_Int32 nIndex )
57 : throw (::com::sun::star::lang::IndexOutOfBoundsException,
58 : ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
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, std::exception) SAL_OVERRIDE;
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, std::exception) SAL_OVERRIDE;
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, std::exception) SAL_OVERRIDE;
74 : virtual sal_Int32 SAL_CALL getStartIndex()
75 : throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
76 : virtual sal_Int32 SAL_CALL getEndIndex()
77 : throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
78 : virtual sal_Bool SAL_CALL isValid( )
79 : throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
80 : };
81 :
82 : #endif
83 :
84 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|