LibreOffice Module chart2 (master) 1
AccessibleChartElement.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 <AccessibleBase.hxx>
22#include <com/sun/star/accessibility/XAccessibleExtendedComponent.hpp>
23
24namespace com::sun::star::accessibility { class XAccessible; }
25namespace com::sun::star::accessibility { class XAccessibleContext; }
26namespace com::sun::star::awt { class XFont; }
27
28namespace chart
29{
30
45namespace impl
46{
47typedef ::cppu::ImplInheritanceHelper<
49 css::accessibility::XAccessibleExtendedComponent
51}
52
55{
56public:
58 bool bMayHaveChildren );
59 virtual ~AccessibleChartElement() override;
60
61 // ________ AccessibleBase ________
62 virtual bool ImplUpdateChildren() override;
63 virtual css::uno::Reference< css::accessibility::XAccessible >
64 ImplGetAccessibleChildById( sal_Int64 i ) const override;
65 virtual sal_Int64 ImplGetAccessibleChildCount() const override;
66
67 // ________ XAccessibleContext ________
68 virtual OUString SAL_CALL getAccessibleName() override;
69 virtual OUString SAL_CALL getAccessibleDescription() override;
70
71 // ________ XAccessibleExtendedComponent ________
72 virtual css::uno::Reference< css::awt::XFont > SAL_CALL getFont() override;
73 virtual OUString SAL_CALL getTitledBorderText() override;
74 virtual OUString SAL_CALL getToolTipText() override;
75
76 // the following interface is implemented in AccessibleBase, however it is
77 // also a (non-virtual) base class of XAccessibleExtendedComponent Thus
78 // these methods have to be overridden and forward to AccessibleBase
79
80 // ________ XAccessibleComponent ________
81 virtual sal_Bool SAL_CALL containsPoint( const css::awt::Point& aPoint ) override;
82 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override;
83 virtual css::awt::Rectangle SAL_CALL getBounds() override;
84 virtual css::awt::Point SAL_CALL getLocation() override;
85 virtual css::awt::Point SAL_CALL getLocationOnScreen() override;
86 virtual css::awt::Size SAL_CALL getSize() override;
87 virtual void SAL_CALL grabFocus() override;
88 virtual sal_Int32 SAL_CALL getForeground() override;
89 virtual sal_Int32 SAL_CALL getBackground() override;
90
91 // ________ XServiceInfo ________
92 virtual OUString SAL_CALL getImplementationName() override;
93
94private:
96 css::uno::Reference< css::accessibility::XAccessibleContext >
98
99 void InitTextEdit();
100};
101
102} // namespace chart
103
104/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class for all Chart Accessibility objects.
virtual sal_Int32 SAL_CALL getForeground() override
virtual sal_Int32 SAL_CALL getBackground() override
virtual css::awt::Rectangle SAL_CALL getBounds() override
virtual css::uno::Reference< css::awt::XFont > SAL_CALL getFont() override
virtual sal_Int64 ImplGetAccessibleChildCount() const override
virtual css::awt::Point SAL_CALL getLocation() override
virtual OUString SAL_CALL getAccessibleDescription() override
virtual OUString SAL_CALL getImplementationName() override
AccessibleChartElement(const AccessibleElementInfo &rAccInfo, bool bMayHaveChildren)
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual OUString SAL_CALL getTitledBorderText() override
virtual void SAL_CALL grabFocus() override
virtual OUString SAL_CALL getAccessibleName() override
virtual css::awt::Point SAL_CALL getLocationOnScreen() override
css::uno::Reference< css::accessibility::XAccessibleContext > m_xTextHelper
virtual css::awt::Size SAL_CALL getSize() override
virtual OUString SAL_CALL getToolTipText() override
virtual sal_Bool SAL_CALL containsPoint(const css::awt::Point &aPoint) override
virtual bool ImplUpdateChildren() override
virtual css::uno::Reference< css::accessibility::XAccessible > ImplGetAccessibleChildById(sal_Int64 i) const override
::cppu::ImplInheritanceHelper< AccessibleBase, css::accessibility::XAccessibleExtendedComponent > AccessibleChartElement_Base
int i
unsigned char sal_Bool