LibreOffice Module sw (master)
1
sw
source
core
access
acchyperlink.hxx
Go to the documentation of this file.
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 INCLUDED_SW_SOURCE_CORE_ACCESS_ACCHYPERLINK_HXX
21
#define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCHYPERLINK_HXX
22
23
#include <com/sun/star/accessibility/XAccessibleHyperlink.hpp>
24
#include <rtl/ref.hxx>
25
#include <
cppuhelper/implbase.hxx
>
26
#include <
svl/listener.hxx
>
27
28
class
SwFormatINetFormat
;
29
class
SwAccessibleParagraph
;
30
class
SwTextAttr
;
31
32
class
SwAccessibleHyperlink
33
:
public
::cppu::WeakImplHelper<css::accessibility::XAccessibleHyperlink>
34
,
public
SvtListener
35
{
36
friend
class
SwAccessibleParagraph
;
37
friend
class
SwAccessibleHyperTextData
;
38
SwFormatINetFormat
*
m_pHyperlink
;
39
::rtl::Reference< SwAccessibleParagraph >
m_xParagraph
;
40
sal_Int32
m_nStartIndex
;
41
sal_Int32
m_nEndIndex
;
42
43
SwAccessibleHyperlink
(
const
SwTextAttr
&,
44
SwAccessibleParagraph
&,
45
sal_Int32 nStt, sal_Int32 nEnd );
46
virtual
~SwAccessibleHyperlink
()
override
;
47
48
const
SwFormatINetFormat
*
GetTextAttr
()
const
;
49
void
Invalidate
();
50
51
virtual
void
Notify
(
SfxHint
const
& rHint)
override
;
52
53
public
:
54
// XAccessibleAction
55
virtual
sal_Int32 SAL_CALL
getAccessibleActionCount
()
override
;
56
virtual
sal_Bool
SAL_CALL
doAccessibleAction
( sal_Int32 nIndex )
override
;
57
virtual
OUString SAL_CALL
getAccessibleActionDescription
(
58
sal_Int32 nIndex )
override
;
59
virtual
css::uno::Reference<
60
css::accessibility::XAccessibleKeyBinding > SAL_CALL
61
getAccessibleActionKeyBinding
( sal_Int32 nIndex )
override
;
62
63
// XAccessibleHyperlink
64
virtual
css::uno::Any SAL_CALL
getAccessibleActionAnchor
(
65
sal_Int32 nIndex )
override
;
66
virtual
css::uno::Any SAL_CALL
getAccessibleActionObject
(
67
sal_Int32 nIndex )
override
;
68
virtual
sal_Int32 SAL_CALL
getStartIndex
()
override
;
69
virtual
sal_Int32 SAL_CALL
getEndIndex
()
override
;
70
virtual
sal_Bool
SAL_CALL
isValid
( )
override
;
71
};
72
73
#endif
74
75
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SfxHint
SvtListener
SwAccessibleHyperTextData
Definition:
acchypertextdata.hxx:32
SwAccessibleHyperlink
Definition:
acchyperlink.hxx:35
SwAccessibleHyperlink::m_nEndIndex
sal_Int32 m_nEndIndex
Definition:
acchyperlink.hxx:41
SwAccessibleHyperlink::isValid
virtual sal_Bool SAL_CALL isValid() override
Definition:
acchyperlink.cxx:184
SwAccessibleHyperlink::~SwAccessibleHyperlink
virtual ~SwAccessibleHyperlink() override
Definition:
acchyperlink.cxx:48
SwAccessibleHyperlink::m_pHyperlink
SwFormatINetFormat * m_pHyperlink
Definition:
acchyperlink.hxx:38
SwAccessibleHyperlink::getAccessibleActionAnchor
virtual css::uno::Any SAL_CALL getAccessibleActionAnchor(sal_Int32 nIndex) override
Definition:
acchyperlink.cxx:143
SwAccessibleHyperlink::m_nStartIndex
sal_Int32 m_nStartIndex
Definition:
acchyperlink.hxx:40
SwAccessibleHyperlink::GetTextAttr
const SwFormatINetFormat * GetTextAttr() const
Definition:
acchyperlink.cxx:63
SwAccessibleHyperlink::doAccessibleAction
virtual sal_Bool SAL_CALL doAccessibleAction(sal_Int32 nIndex) override
Definition:
acchyperlink.cxx:76
SwAccessibleHyperlink::Invalidate
void Invalidate()
Definition:
acchyperlink.cxx:228
SwAccessibleHyperlink::getEndIndex
virtual sal_Int32 SAL_CALL getEndIndex() override
Definition:
acchyperlink.cxx:179
SwAccessibleHyperlink::getAccessibleActionKeyBinding
virtual css::uno::Reference< css::accessibility::XAccessibleKeyBinding > SAL_CALL getAccessibleActionKeyBinding(sal_Int32 nIndex) override
Definition:
acchyperlink.cxx:121
SwAccessibleHyperlink::getAccessibleActionObject
virtual css::uno::Any SAL_CALL getAccessibleActionObject(sal_Int32 nIndex) override
Definition:
acchyperlink.cxx:157
SwAccessibleHyperlink::getAccessibleActionDescription
virtual OUString SAL_CALL getAccessibleActionDescription(sal_Int32 nIndex) override
Definition:
acchyperlink.cxx:105
SwAccessibleHyperlink::Notify
virtual void Notify(SfxHint const &rHint) override
Definition:
acchyperlink.cxx:54
SwAccessibleHyperlink::getStartIndex
virtual sal_Int32 SAL_CALL getStartIndex() override
Definition:
acchyperlink.cxx:174
SwAccessibleHyperlink::m_xParagraph
::rtl::Reference< SwAccessibleParagraph > m_xParagraph
Definition:
acchyperlink.hxx:39
SwAccessibleHyperlink::SwAccessibleHyperlink
SwAccessibleHyperlink(const SwTextAttr &, SwAccessibleParagraph &, sal_Int32 nStt, sal_Int32 nEnd)
Definition:
acchyperlink.cxx:37
SwAccessibleHyperlink::getAccessibleActionCount
virtual sal_Int32 SAL_CALL getAccessibleActionCount() override
Definition:
acchyperlink.cxx:71
SwAccessibleParagraph
Definition:
accpara.hxx:64
SwFormatINetFormat
Definition:
fmtinfmt.hxx:38
SwTextAttr
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
Definition:
txatbase.hxx:44
rtl::Reference< SwAccessibleParagraph >
implbase.hxx
listener.hxx
sal_Bool
unsigned char sal_Bool
Generated on Sun Jul 30 2023 04:28:09 for LibreOffice Module sw (master) by
1.9.3