Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / chart2 / source / controller / accessibility / AccessibleChartShape.hxx
blobd113c03f8d39dbcd0ca8c57c3dd19332a02890d4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_ACCESSIBILITY_ACCESSIBLECHARTSHAPE_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_ACCESSIBILITY_ACCESSIBLECHARTSHAPE_HXX
22 #include <AccessibleBase.hxx>
24 #include <com/sun/star/accessibility/XAccessibleExtendedComponent.hpp>
25 #include <cppuhelper/implbase.hxx>
26 #include <svx/AccessibleShapeTreeInfo.hxx>
28 namespace accessibility
30 class AccessibleShape;
33 namespace chart
36 namespace impl
38 typedef ::cppu::ImplInheritanceHelper<
39 AccessibleBase,
40 css::accessibility::XAccessibleExtendedComponent > AccessibleChartShape_Base;
43 class AccessibleChartShape :
44 public impl::AccessibleChartShape_Base
46 public:
47 explicit AccessibleChartShape( const AccessibleElementInfo& rAccInfo );
48 virtual ~AccessibleChartShape() override;
50 // ________ XServiceInfo ________
51 virtual OUString SAL_CALL getImplementationName() override;
53 // ________ XAccessibleContext ________
54 virtual sal_Int32 SAL_CALL getAccessibleChildCount() override;
55 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
56 getAccessibleChild( sal_Int32 i ) override;
57 virtual sal_Int16 SAL_CALL getAccessibleRole() override;
58 virtual OUString SAL_CALL getAccessibleDescription() override;
59 virtual OUString SAL_CALL getAccessibleName() override;
61 // ________ XAccessibleComponent ________
62 virtual sal_Bool SAL_CALL containsPoint( const css::awt::Point& aPoint ) override;
63 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override;
64 virtual css::awt::Rectangle SAL_CALL getBounds() override;
65 virtual css::awt::Point SAL_CALL getLocation() override;
66 virtual css::awt::Point SAL_CALL getLocationOnScreen() override;
67 virtual css::awt::Size SAL_CALL getSize() override;
68 virtual void SAL_CALL grabFocus() override;
69 virtual sal_Int32 SAL_CALL getForeground() override;
70 virtual sal_Int32 SAL_CALL getBackground() override;
72 // ________ XAccessibleExtendedComponent ________
73 virtual css::uno::Reference< css::awt::XFont > SAL_CALL getFont() override;
74 virtual OUString SAL_CALL getTitledBorderText() override;
75 virtual OUString SAL_CALL getToolTipText() override;
77 private:
78 rtl::Reference<accessibility::AccessibleShape> m_pAccShape;
79 ::accessibility::AccessibleShapeTreeInfo m_aShapeTreeInfo;
82 } // namespace chart
84 #endif
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */