tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / chart2 / source / controller / accessibility / AccessibleChartShape.hxx
blob3f8975921e68410fab4ed3cbfed5f93c720eb642
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 #pragma once
21 #include <AccessibleBase.hxx>
23 #include <com/sun/star/accessibility/XAccessibleExtendedComponent.hpp>
24 #include <cppuhelper/implbase.hxx>
25 #include <svx/AccessibleShapeTreeInfo.hxx>
27 namespace accessibility
29 class AccessibleShape;
32 namespace chart
35 namespace impl
37 typedef ::cppu::ImplInheritanceHelper<
38 AccessibleBase,
39 css::accessibility::XAccessibleExtendedComponent > AccessibleChartShape_Base;
42 class AccessibleChartShape :
43 public impl::AccessibleChartShape_Base
45 public:
46 explicit AccessibleChartShape( const AccessibleElementInfo& rAccInfo );
47 virtual ~AccessibleChartShape() override;
49 // ________ XServiceInfo ________
50 virtual OUString SAL_CALL getImplementationName() override;
52 // ________ XAccessibleContext ________
53 virtual sal_Int64 SAL_CALL getAccessibleChildCount() override;
54 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
55 getAccessibleChild( sal_Int64 i ) override;
56 virtual sal_Int16 SAL_CALL getAccessibleRole() override;
57 virtual OUString SAL_CALL getAccessibleDescription() override;
58 virtual OUString SAL_CALL getAccessibleName() override;
60 // ________ XAccessibleComponent ________
61 virtual sal_Bool SAL_CALL containsPoint( const css::awt::Point& aPoint ) override;
62 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override;
63 virtual css::awt::Rectangle SAL_CALL getBounds() override;
64 virtual css::awt::Point SAL_CALL getLocation() override;
65 virtual css::awt::Point SAL_CALL getLocationOnScreen() override;
66 virtual css::awt::Size SAL_CALL getSize() override;
67 virtual void SAL_CALL grabFocus() override;
68 virtual sal_Int32 SAL_CALL getForeground() override;
69 virtual sal_Int32 SAL_CALL getBackground() override;
71 // ________ XAccessibleExtendedComponent ________
72 virtual OUString SAL_CALL getTitledBorderText() override;
73 virtual OUString SAL_CALL getToolTipText() override;
75 private:
76 rtl::Reference<accessibility::AccessibleShape> m_pAccShape;
77 ::accessibility::AccessibleShapeTreeInfo m_aShapeTreeInfo;
80 } // namespace chart
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */