| 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 |
|
| 23 |
#include <svx/AccessibleShapeTreeInfo.hxx> |
| 24 |
|
| 25 |
namespace accessibility |
| 26 |
{ |
| 27 |
class AccessibleShape; |
| 28 |
} |
| 29 |
|
| 30 |
namespace chart |
| 31 |
{ |
| 32 |
|
| 33 |
class AccessibleChartShape : public AccessibleBase |
| 34 |
{ |
| 35 |
public: |
| 36 |
explicit AccessibleChartShape( const AccessibleElementInfo& rAccInfo ); |
| 37 |
virtual ~AccessibleChartShape() override; |
| 38 |
|
| 39 |
// ________ XAccessibleContext ________ |
| 40 |
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override; |
| 41 |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL |
| 42 |
getAccessibleChild( sal_Int64 i ) override; |
| 43 |
virtual sal_Int16 SAL_CALL getAccessibleRole() override; |
| 44 |
virtual OUString SAL_CALL getAccessibleDescription() override; |
| 45 |
virtual OUString SAL_CALL getAccessibleName() override; |
| 46 |
|
| 47 |
// OAccessible |
| 48 |
virtual css::awt::Rectangle implGetBounds() override; |
| 49 |
|
| 50 |
// ________ XAccessibleComponent ________ |
| 51 |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override; |
| 52 |
virtual sal_Int32 SAL_CALL getForeground() override; |
| 53 |
virtual sal_Int32 SAL_CALL getBackground() override; |
| 54 |
|
| 55 |
// ________ XAccessibleExtendedComponent ________ |
| 56 |
virtual OUString SAL_CALL getTitledBorderText() override; |
| 57 |
virtual OUString SAL_CALL getToolTipText() override; |
| 58 |
|
| 59 |
private: |
| 60 |
rtl::Reference<accessibility::AccessibleShape> m_pAccShape; |
| 61 |
::accessibility::AccessibleShapeTreeInfo m_aShapeTreeInfo; |
| 62 |
}; |
| 63 |
|
| 64 |
} // namespace chart |
| 65 |
|
| 66 |
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |