LibreOffice Module sw (master)  1
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;
30 class SwTextAttr;
31 
33  : public ::cppu::WeakImplHelper<css::accessibility::XAccessibleHyperlink>
34  , public SvtListener
35 {
36  friend class SwAccessibleParagraph;
40  sal_Int32 const m_nStartIndex;
41  sal_Int32 const m_nEndIndex;
42 
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: */
unsigned char sal_Bool