LibreOffice Module sw (master) 1
acctextframe.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#pragma once
21
22#include "accframebase.hxx"
23
24#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
25
26class SwFlyFrame;
27
29 public css::accessibility::XAccessibleSelection
30{
31private:
32 // #i73249#
33 OUString msTitle;
34 OUString msDesc;
35
36protected:
37 virtual ~SwAccessibleTextFrame() override;
38 virtual void Notify(const SfxHint&) override;
39
40public:
41 SwAccessibleTextFrame(std::shared_ptr<SwAccessibleMap> const& pInitMap,
42 const SwFlyFrame& rFlyFrame);
43
44 virtual css::uno::Any SAL_CALL queryInterface(
45 css::uno::Type const & rType ) override;
46 virtual void SAL_CALL acquire() noexcept override;
47 virtual void SAL_CALL release() noexcept override;
48 // XAccessibleSelection
49 virtual void SAL_CALL selectAccessibleChild(
50 sal_Int64 nChildIndex ) override;
51
52 virtual sal_Bool SAL_CALL isAccessibleChildSelected(
53 sal_Int64 nChildIndex ) override;
54
55 virtual void SAL_CALL clearAccessibleSelection( ) override;
56
57 virtual void SAL_CALL selectAllAccessibleChildren( ) override;
58
59 virtual sal_Int64 SAL_CALL getSelectedAccessibleChildCount( ) override;
60
61 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild(
62 sal_Int64 nSelectedChildIndex ) override;
63
64 virtual void SAL_CALL deselectAccessibleChild(
65 sal_Int64 nSelectedChildIndex ) override;
66
67 // XAccessibleContext
68
69 // #i73249# - Return the object's current name.
70 virtual OUString SAL_CALL
71 getAccessibleName() override;
73 virtual OUString SAL_CALL
74 getAccessibleDescription() override;
75
76 // XServiceInfo
77
80 virtual OUString SAL_CALL
81 getImplementationName() override;
82
85 virtual sal_Bool SAL_CALL
86 supportsService (const OUString& sServiceName) override;
87
91 virtual css::uno::Sequence< OUString> SAL_CALL
92 getSupportedServiceNames() override;
93
94 // XTypeProvider
95 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
96
97 // XAccessibleContext::getAccessibleRelationSet
98
99 // text frame may have accessible relations to their
100 // predecessor/successor frames
101
102private:
103 // helper methods for getAccessibleRelationSet:
104 SwFlyFrame* getFlyFrame() const;
105
106 css::accessibility::AccessibleRelation makeRelation(
107 sal_Int16 nType, const SwFlyFrame* pFrame );
108
109public:
110 virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet> SAL_CALL getAccessibleRelationSet() override;
111};
112
113/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr OUStringLiteral sServiceName
Definition: accdoc.cxx:54
virtual ~SwAccessibleTextFrame() override
virtual OUString SAL_CALL getAccessibleName() override
virtual void SAL_CALL clearAccessibleSelection() override
virtual OUString SAL_CALL getImplementationName() override
Returns an identifier for the implementation of this object.
SwAccessibleTextFrame(std::shared_ptr< SwAccessibleMap > const &pInitMap, const SwFlyFrame &rFlyFrame)
virtual void SAL_CALL selectAllAccessibleChildren() override
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
Return whether the specified service is supported by this class.
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Returns a list of all supported services.
virtual sal_Bool SAL_CALL isAccessibleChildSelected(sal_Int64 nChildIndex) override
virtual sal_Int64 SAL_CALL getSelectedAccessibleChildCount() override
virtual void SAL_CALL release() noexcept override
virtual void SAL_CALL selectAccessibleChild(sal_Int64 nChildIndex) override
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild(sal_Int64 nSelectedChildIndex) override
virtual OUString SAL_CALL getAccessibleDescription() override
Return this object's description.
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) override
virtual void SAL_CALL deselectAccessibleChild(sal_Int64 nSelectedChildIndex) override
virtual void Notify(const SfxHint &) override
css::accessibility::AccessibleRelation makeRelation(sal_Int16 nType, const SwFlyFrame *pFrame)
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL acquire() noexcept override
SwFlyFrame * getFlyFrame() const
general base class for all free-flowing frames
Definition: flyfrm.hxx:79
unsigned char sal_Bool
signed char sal_Int8