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 _SVX_ACCESSIBILITY_ACCESSIBLE_GRAPHIC_SHAPE_HXX
21 #define _SVX_ACCESSIBILITY_ACCESSIBLE_GRAPHIC_SHAPE_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 <type>AccessibleShape</type> it supports the additional
32 <type>XAccessibleImage</type> 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 (void);
46 //===== XAccessibleImage ================================================
48 OUString SAL_CALL
getAccessibleImageDescription (void)
49 throw (::com::sun::star::uno::RuntimeException
);
51 sal_Int32 SAL_CALL
getAccessibleImageHeight (void)
52 throw (::com::sun::star::uno::RuntimeException
);
54 sal_Int32 SAL_CALL
getAccessibleImageWidth (void)
55 throw (::com::sun::star::uno::RuntimeException
);
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
);
71 //===== XServiceInfo ====================================================
73 /** Returns an identifier for the implementation of this object.
75 virtual OUString SAL_CALL
76 getImplementationName (void)
77 throw (::com::sun::star::uno::RuntimeException
);
79 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
80 getSupportedServiceNames (void)
81 throw (::com::sun::star::uno::RuntimeException
);
83 //===== XTypeProvider ===================================================
85 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
87 throw (::com::sun::star::uno::RuntimeException
);
90 /// Create a name string that contains the accessible name.
92 CreateAccessibleBaseName ()
93 throw (::com::sun::star::uno::RuntimeException
);
95 /// Create a description string that contains the accessible description.
97 CreateAccessibleDescription ()
98 throw (::com::sun::star::uno::RuntimeException
);
101 /** Don't use the default constructor. Use the public constructor that
102 takes the original shape and the parent as arguments instead.
104 SVX_DLLPRIVATE
AccessibleGraphicShape (void);
106 /// Don't use the constructor. Not yet implemented.
107 SVX_DLLPRIVATE
AccessibleGraphicShape (const AccessibleGraphicShape
&);
109 /// Don't use the assignment operator. Not yet implemented.
110 SVX_DLLPRIVATE AccessibleGraphicShape
& operator= (const AccessibleGraphicShape
&);
113 } // end of namespace accessibility
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */