1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
20 #ifndef INCLUDED_SVX_ACCESSIBLEGRAPHICSHAPE_HXX
21 #define INCLUDED_SVX_ACCESSIBLEGRAPHICSHAPE_HXX
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>
29 #include <svx/AccessibleShape.hxx>
30 #include <svx/svxdllapi.h>
32 namespace accessibility
{
34 class AccessibleShapeInfo
;
35 class AccessibleShapeTreeInfo
;
38 This class makes graphic shapes accessible. With respect to its
39 base class AccessibleShape it supports the additional
40 XAccessibleImage interface.
42 class SVX_DLLPUBLIC AccessibleGraphicShape
43 : public AccessibleShape
,
44 public css::accessibility::XAccessibleImage
47 //===== internal ========================================================
48 AccessibleGraphicShape (
49 const AccessibleShapeInfo
& rShapeInfo
,
50 const AccessibleShapeTreeInfo
& rShapeTreeInfo
);
52 virtual ~AccessibleGraphicShape() override
;
54 //===== XAccessibleImage ================================================
56 OUString SAL_CALL
getAccessibleImageDescription() override
;
58 sal_Int32 SAL_CALL
getAccessibleImageHeight() override
;
60 sal_Int32 SAL_CALL
getAccessibleImageWidth() override
;
62 //===== XInterface ======================================================
64 virtual css::uno::Any SAL_CALL
65 queryInterface (const css::uno::Type
& rType
) override
;
75 //===== XServiceInfo ====================================================
77 /** Returns an identifier for the implementation of this object.
79 virtual OUString SAL_CALL
80 getImplementationName() override
;
82 virtual css::uno::Sequence
< OUString
> SAL_CALL
83 getSupportedServiceNames() override
;
85 //===== XTypeProvider ===================================================
87 virtual css::uno::Sequence
< css::uno::Type
> SAL_CALL
91 /// Create a name string that contains the accessible name.
93 CreateAccessibleBaseName () override
;
96 AccessibleGraphicShape (const AccessibleGraphicShape
&) = delete;
98 AccessibleGraphicShape
& operator= (const AccessibleGraphicShape
&) = delete;
101 } // end of namespace accessibility
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */