1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_text_AccessibleTextGraphicObjectView_idl__
24#define __com_sun_star_text_AccessibleTextGraphicObjectView_idl__
25
26#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__
27#include <com/sun/star/accessibility/XAccessibleContext.idl>
28#endif
29
30#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__
31#include <com/sun/star/accessibility/XAccessibleComponent.idl>
32#endif
33
34#ifndef __com_sun_star_accessibility_XAccessibleImage_idl__
35#include <com/sun/star/accessibility/XAccessibleImage.idl>
36#endif
37
38#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__
39#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl>
40#endif
41
42
43//=============================================================================
44
45module com {  module sun {  module star {  module text {
46
47//=============================================================================
48
49/** The accessible view of graphics.
50
51	 @since OpenOffice 1.1.2
52 */
53published service AccessibleTextGraphicObject
54{
55	/** This interface comprises the basic accessibility of text graphics.
56
57		<ul>
58			<li>The parent returned by
59                <method scope="::com::sun::star::accessibility"
60                >XAccessibleContext::getAccessibleParent</method> is the
61                accessible view of a paragraph if the graphic is bound as
62                character, and the accessible view of the document (or of a
63                page in the page preview) in any other case.
64			<li>There are no chidren returned by
65				<method scope="::com::sun::star::accessibility"
66                >XAccessibleContext::getAccessibleChild</method>.
67			<li>The role is <const scope="::com::sun::star::accessibility"
68                >AccessibleRole::GRAPHIC</const>
69			<li>The name is the one assigned to the graphic in the text
70				document. This means that it is not internationalized.
71			<li>The description is the one assigned to the graphic in the text
72				document. This means that it is not internationalized. If no
73				description has been set, the description equals the name.
74			<li>There are no relations.
75			<li>The following states might be contained in the state set
76				returned by <method scope="::com::sun::star::accessibility
77                ">XAccessibleContext::getAccessibleStateSet</type>:
78				<ul>
79					<li><const scope="::com::sun::star::accessibility"
80                        >AccessibleStateType::DEFUNC</const> (indicates that
81                        the document window has been closed or the graphic
82                        is not existing any longer)
83					<li><const scope="::com::sun::star::accessibility"
84                        >AccessibleStateType::EDITABLE</const>
85					<li><const scope="::com::sun::star::accessibility"
86                        >AccessibleStateType::ENABLED</const> (always
87                        contained)
88					<li><const scope="::com::sun::star::accessibility"
89                        >AccessibleStateType::OPAQUE</const>
90					<li><const scope="::com::sun::star::accessibility"
91                        >AccessibleStateType::SELECTABLE</const>
92					<li><const scope="::com::sun::star::accessibility"
93                        >AccessibleStateType::SELECTED</const>
94                    <li><const scope="::com::sun::star::accessibility"
95                        >AccessibleStateType::FOCUSABLE</const>
96					<li><const scope="::com::sun::star::accessibility"
97                        >AccessibleStateType::FOCUSED</const>
98					<li><const scope="::com::sun::star::accessibility"
99                        >AccessibleStateType::SHOWING</const>
100					<li><const scope="::com::sun::star::accessibility"
101                        >AccessibleStateType::VISIBLE</const>
102				</ul>
103			<li>The locale is the one the text document itself.
104		</ul>
105
106	 */
107	interface ::com::sun::star::accessibility::XAccessibleContext;
108
109	/** This interface describes the graphical representation of a
110	  	graphic.
111	 */
112	interface ::com::sun::star::accessibility::XAccessibleComponent;
113
114	/** This interface gives access to the image size and its description.
115	 */
116	interface ::com::sun::star::accessibility::XAccessibleImage;
117
118	/** This is the interface for listeners */
119	interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
120};
121
122//=============================================================================
123
124}; }; }; };
125
126#endif
127