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 <svx/AccessibleShape.hxx>
24 #include <com/sun/star/accessibility/XAccessibleImage.hpp>
25 #include <svx/svxdllapi.h>
27 namespace accessibility
{
30 This class makes graphic shapes accessible. With respect to its
31 base class AccessibleShape it supports the additional
32 XAccessibleImage interface.
34 class SVX_DLLPUBLIC AccessibleGraphicShape
35 : public AccessibleShape
,
36 public ::com::sun::star::accessibility::XAccessibleImage
39 //===== internal ========================================================
40 AccessibleGraphicShape (
41 const AccessibleShapeInfo
& rShapeInfo
,
42 const AccessibleShapeTreeInfo
& rShapeTreeInfo
);
44 virtual ~AccessibleGraphicShape();
46 //===== XAccessibleImage ================================================
48 OUString SAL_CALL
getAccessibleImageDescription()
49 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
51 sal_Int32 SAL_CALL
getAccessibleImageHeight()
52 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
54 sal_Int32 SAL_CALL
getAccessibleImageWidth()
55 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
57 //===== XInterface ======================================================
59 virtual com::sun::star::uno::Any SAL_CALL
60 queryInterface (const com::sun::star::uno::Type
& rType
)
61 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
65 throw () SAL_OVERRIDE
;
69 throw () SAL_OVERRIDE
;
71 //===== XServiceInfo ====================================================
73 /** Returns an identifier for the implementation of this object.
75 virtual OUString SAL_CALL
76 getImplementationName()
77 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
79 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
80 getSupportedServiceNames()
81 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
83 //===== XTypeProvider ===================================================
85 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
87 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
88 /// Return this object's role.
89 virtual sal_Int16 SAL_CALL
getAccessibleRole() throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
91 /// Create a name string that contains the accessible name.
93 CreateAccessibleBaseName ()
94 throw (::com::sun::star::uno::RuntimeException
) SAL_OVERRIDE
;
96 /// Create a description string that contains the accessible description.
98 CreateAccessibleDescription ()
99 throw (::com::sun::star::uno::RuntimeException
) SAL_OVERRIDE
;
102 AccessibleGraphicShape (const AccessibleGraphicShape
&) SAL_DELETED_FUNCTION
;
104 AccessibleGraphicShape
& operator= (const AccessibleGraphicShape
&) SAL_DELETED_FUNCTION
;
107 } // end of namespace accessibility
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */