dbaccess: Fix --without-java build
[LibreOffice.git] / include / svx / AccessibleGraphicShape.hxx
bloba81aa130bb528a23a621384a7126e927aacf7218
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 .
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;
37 /** @descr
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
46 public:
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;
67 virtual void SAL_CALL
68 acquire()
69 noexcept override;
71 virtual void SAL_CALL
72 release()
73 noexcept 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
88 getTypes() override;
90 protected:
91 /// Create a name string that contains the accessible name.
92 virtual OUString
93 CreateAccessibleBaseName () override;
95 private:
96 AccessibleGraphicShape (const AccessibleGraphicShape&) = delete;
98 AccessibleGraphicShape& operator= (const AccessibleGraphicShape&) = delete;
101 } // end of namespace accessibility
103 #endif
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */