LibreOffice Module svx (master) 1
AccessibleGraphicShape.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
20#ifndef INCLUDED_SVX_ACCESSIBLEGRAPHICSHAPE_HXX
21#define INCLUDED_SVX_ACCESSIBLEGRAPHICSHAPE_HXX
22
23#include <com/sun/star/accessibility/XAccessibleImage.hpp>
24#include <com/sun/star/uno/Any.hxx>
25#include <com/sun/star/uno/Sequence.hxx>
26#include <com/sun/star/uno/Type.hxx>
27#include <rtl/ustring.hxx>
28#include <sal/types.h>
30#include <svx/svxdllapi.h>
31
32namespace accessibility {
33
34class AccessibleShapeInfo;
35class AccessibleShapeTreeInfo;
36
43 : public AccessibleShape,
44 public css::accessibility::XAccessibleImage
45{
46public:
47 //===== internal ========================================================
49 const AccessibleShapeInfo& rShapeInfo,
50 const AccessibleShapeTreeInfo& rShapeTreeInfo);
51
52 virtual ~AccessibleGraphicShape() override;
53
54 //===== XAccessibleImage ================================================
55
56 OUString SAL_CALL getAccessibleImageDescription() override;
57
58 sal_Int32 SAL_CALL getAccessibleImageHeight() override;
59
60 sal_Int32 SAL_CALL getAccessibleImageWidth() override;
61
62 //===== XInterface ======================================================
63
64 virtual css::uno::Any SAL_CALL
65 queryInterface (const css::uno::Type & rType) override;
66
67 virtual void SAL_CALL
68 acquire()
69 noexcept override;
70
71 virtual void SAL_CALL
72 release()
73 noexcept override;
74
75 //===== XServiceInfo ====================================================
76
79 virtual OUString SAL_CALL
80 getImplementationName() override;
81
82 virtual css::uno::Sequence< OUString> SAL_CALL
83 getSupportedServiceNames() override;
84
85 //===== XTypeProvider ===================================================
86
87 virtual css::uno::Sequence< css::uno::Type> SAL_CALL
88 getTypes() override;
89
90protected:
92 virtual OUString
93 CreateAccessibleBaseName () override;
94
95private:
97
98 AccessibleGraphicShape& operator= (const AccessibleGraphicShape&) = delete;
99};
100
101} // end of namespace accessibility
102
103#endif
104
105/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
@descr This class makes graphic shapes accessible.
AccessibleGraphicShape(const AccessibleGraphicShape &)=delete
@descr This class is a container for the information specific for a single shape that is passed to th...
This class bundles all information that is passed down the tree of accessible shapes so that each sha...
This base class provides a base implementation for all shapes.
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28