LibreOffice Module chart2 (master) 1
AccessibleTextHelper.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#pragma once
20
21#include <memory>
23#include <com/sun/star/lang/XInitialization.hpp>
24#include <com/sun/star/accessibility/XAccessibleContext.hpp>
25
26// forward declaration of helper class from svx
27namespace accessibility
28{
29class AccessibleTextHelper;
30}
31
32namespace chart
33{
34
35class DrawViewWrapper;
36
37namespace impl
38{
40 css::lang::XInitialization,
41 css::accessibility::XAccessibleContext >
43}
44
47{
48public:
49 explicit AccessibleTextHelper( DrawViewWrapper * pDrawViewWrapper );
50 virtual ~AccessibleTextHelper() override;
51
52 // ____ XInitialization ____
65 virtual void SAL_CALL initialize(
66 const css::uno::Sequence< css::uno::Any >& aArguments ) override;
67
68 // ____ XAccessibleContext ____
69 virtual sal_Int64 SAL_CALL getAccessibleChildCount() override;
70 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(
71 sal_Int64 i ) override;
72 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override;
73 virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override;
74 virtual ::sal_Int16 SAL_CALL getAccessibleRole() override;
75 virtual OUString SAL_CALL getAccessibleDescription() override;
76 virtual OUString SAL_CALL getAccessibleName() override;
77 virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override;
78 virtual sal_Int64 SAL_CALL getAccessibleStateSet() override;
79 virtual css::lang::Locale SAL_CALL getLocale() override;
80
81private:
82 std::unique_ptr<::accessibility::AccessibleTextHelper> m_pTextHelper;
84};
85
86} // namespace chart
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AccessibleTextHelper(DrawViewWrapper *pDrawViewWrapper)
virtual ~AccessibleTextHelper() override
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual OUString SAL_CALL getAccessibleName() override
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
virtual css::lang::Locale SAL_CALL getLocale() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
virtual OUString SAL_CALL getAccessibleDescription() override
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
std::unique_ptr<::accessibility::AccessibleTextHelper > m_pTextHelper
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
Must be called at least once for this helper class to work.
virtual ::sal_Int16 SAL_CALL getAccessibleRole() override
Sequence< PropertyValue > aArguments
comphelper::WeakComponentImplHelper< css::lang::XInitialization, css::accessibility::XAccessibleContext > AccessibleTextHelper_Base
int i