fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / controller / accessibility / AccessibleChartShape.hxx
blob07c1c990ab044e47e072669eed05d8fa55c56908
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/implbase1.hxx>
26 #include <svx/AccessibleShapeTreeInfo.hxx>
28 namespace accessibility
30 class AccessibleShape;
33 namespace chart
36 namespace impl
38 typedef ::cppu::ImplInheritanceHelper1<
39 AccessibleBase,
40 ::com::sun::star::accessibility::XAccessibleExtendedComponent > AccessibleChartShape_Base;
43 class AccessibleChartShape :
44 public impl::AccessibleChartShape_Base
46 public:
47 AccessibleChartShape( const AccessibleElementInfo& rAccInfo,
48 bool bMayHaveChildren, bool bAlwaysTransparent = false );
49 virtual ~AccessibleChartShape();
51 // ________ XServiceInfo ________
52 virtual OUString SAL_CALL getImplementationName()
53 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
55 // ________ XAccessibleContext ________
56 virtual sal_Int32 SAL_CALL getAccessibleChildCount()
57 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
58 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL
59 getAccessibleChild( sal_Int32 i )
60 throw (::com::sun::star::lang::IndexOutOfBoundsException,
61 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
62 virtual sal_Int16 SAL_CALL getAccessibleRole()
63 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
64 virtual OUString SAL_CALL getAccessibleDescription()
65 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
66 virtual OUString SAL_CALL getAccessibleName()
67 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
69 // ________ XAccessibleComponent ________
70 virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
71 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
72 virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
73 virtual ::com::sun::star::awt::Point SAL_CALL getLocation() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
74 virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
75 virtual ::com::sun::star::awt::Size SAL_CALL getSize() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
76 virtual void SAL_CALL grabFocus() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
77 virtual sal_Int32 SAL_CALL getForeground() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
78 virtual sal_Int32 SAL_CALL getBackground() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
80 // ________ XAccessibleExtendedComponent ________
81 virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont > SAL_CALL getFont()
82 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
83 virtual OUString SAL_CALL getTitledBorderText()
84 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
85 virtual OUString SAL_CALL getToolTipText()
86 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
88 private:
89 ::accessibility::AccessibleShape* m_pAccShape;
90 ::accessibility::AccessibleShapeTreeInfo m_aShapeTreeInfo;
93 } // namespace chart
95 #endif
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */