Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / accessibility / XAccessibleImage.idl
blobaa85f7352d22dd35d3efb7a387423a52093861c3
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XAccessibleImage.idl,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_accessibility_XAccessibleImage_idl__
32 #define __com_sun_star_accessibility_XAccessibleImage_idl__
34 #ifndef __com_sun_star_uno_XInterface_idl__
35 #include <com/sun/star/uno/XInterface.idl>
36 #endif
38 module com { module sun { module star { module accessibility {
40 /** Implement this interface to represent images and icons.
42 <p>This interface is used for a representation of images like icons of
43 buttons. The corresponding interface of the Java Accessibility API is
44 AccessibleIcon. This interface lets you retrieve an image's size and
45 description.</p>
47 @since OOo 1.1.2
49 published interface XAccessibleImage : ::com::sun::star::uno::XInterface
51 /** Returns the localized description of the image.
53 <p>It depends on the usage of an image whether the description
54 should express the image's function (e.g. for icons) or the actual
55 content of the image (e.g. for image maps or non-iconic images
56 embedded into a document.)</p>
58 @return
59 Returns a localized string that describes the images's function
60 or content.
62 string getAccessibleImageDescription ();
64 /** Returns the height of the image.
66 <p>The height is returned in units specified by the parents
67 coordinate system.</p>
69 @return
70 Returns the image's height with respect to the parent's
71 coordinate system.
73 long getAccessibleImageHeight ();
75 /** Returns the width of the image.
77 <p>The width is returned in units specified by the parents
78 coordinate system.</p>
80 @return
81 Returns the image's width with respect to the parent's
82 coordinate system.
84 long getAccessibleImageWidth ();
87 }; }; }; };
89 #endif