xref: /trunk/main/offapi/com/sun/star/text/AccessiblePageView.idl (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir#ifndef __com_sun_star_text_AccessibleEndnoteView_idl__
28*cdf0e10cSrcweir#define __com_sun_star_text_AccessibleEndnoteView_idl__
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__
31*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleContext.idl>
32*cdf0e10cSrcweir#endif
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__
35*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleComponent.idl>
36*cdf0e10cSrcweir#endif
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__
39*cdf0e10cSrcweir#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl>
40*cdf0e10cSrcweir#endif
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir
43*cdf0e10cSrcweir//=============================================================================
44*cdf0e10cSrcweir
45*cdf0e10cSrcweirmodule com {  module sun {  module star {  module text {
46*cdf0e10cSrcweir
47*cdf0e10cSrcweir//=============================================================================
48*cdf0e10cSrcweir
49*cdf0e10cSrcweir/** The accessible view of pagees.
50*cdf0e10cSrcweir
51*cdf0e10cSrcweir
52*cdf0e10cSrcweir     @since OOo 1.1.2
53*cdf0e10cSrcweir */
54*cdf0e10cSrcweirpublished service AccessiblePageView
55*cdf0e10cSrcweir{
56*cdf0e10cSrcweir    /** This interface gives access to any page that is visible in the
57*cdf0e10cSrcweir        page preview of a text document.
58*cdf0e10cSrcweir
59*cdf0e10cSrcweir        <ul>
60*cdf0e10cSrcweir            <li>The parent returned by
61*cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
62*cdf0e10cSrcweir                >XAccessibleContext::getAccessibleParent</method> is the
63*cdf0e10cSrcweir                accessible page preview of a text document.  That is, the
64*cdf0e10cSrcweir                object returned by
65*cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
66*cdf0e10cSrcweir                >XAccessible::getAccessibleContext</method> supports
67*cdf0e10cSrcweir                <type scope="::com::sun::star::text"
68*cdf0e10cSrcweir                >AccessibleTextDocumentPageView</type>.
69*cdf0e10cSrcweir            <li>The children returned by
70*cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
71*cdf0e10cSrcweir                >XAccessibleContext::getAccessibleChild</method> all
72*cdf0e10cSrcweir                support the interface XAccessible. Calling
73*cdf0e10cSrcweir                <method scope="::com::sun::star::accessibility"
74*cdf0e10cSrcweir                >XAccessible::getAccessibleContext</method> for these
75*cdf0e10cSrcweir                children returns an object that supports one of the
76*cdf0e10cSrcweir                following services.
77*cdf0e10cSrcweir                <ul>
78*cdf0e10cSrcweir                    <li><type scope="::com::sun::star::text"
79*cdf0e10cSrcweir                        >AccessibleHeaderFooterView</type>:
80*cdf0e10cSrcweir                        A child of this kind is returned for every header
81*cdf0e10cSrcweir                        and footer that is conatined in the page.
82*cdf0e10cSrcweir                    <li><type scope="::com::sun::star::text"
83*cdf0e10cSrcweir                        >AccessibleFootnoteView</type>:
84*cdf0e10cSrcweir                        A child of this kind is returned for every footnote
85*cdf0e10cSrcweir                        that is conatined in the page.
86*cdf0e10cSrcweir                    <li><type scope="::com::sun::star::text"
87*cdf0e10cSrcweir                        >AccessibleEndnoteView</type>:
88*cdf0e10cSrcweir                        A child of this kind is returned for every endnote
89*cdf0e10cSrcweir                        that is conatined in the page.
90*cdf0e10cSrcweir                    <li><type scope="::com::sun::star::text"
91*cdf0e10cSrcweir                        >AccessibleParagraphView</type>:
92*cdf0e10cSrcweir                        A child of this kind is returned for every paragraph
93*cdf0e10cSrcweir                        fragment that is contained in the page.
94*cdf0e10cSrcweir                        A paragraph fragment is the part of a paragraph that
95*cdf0e10cSrcweir                        is displayed on a certain page.
96*cdf0e10cSrcweir                    <li><type scope="::com::sun::star::table"
97*cdf0e10cSrcweir                        >AccessibleTableView</type>:
98*cdf0e10cSrcweir                        A child of this kind is returned for every table
99*cdf0e10cSrcweir                        fragment that is contained in the page.
100*cdf0e10cSrcweir                        A table fragment is the part of a table that is
101*cdf0e10cSrcweir                        displayed on a certain page.
102*cdf0e10cSrcweir                    <li><type scope="::com::sun::star::text"
103*cdf0e10cSrcweir                        >AccessibleTextFrameView</type>:
104*cdf0e10cSrcweir                        A child of this kind is returned for every text
105*cdf0e10cSrcweir                        frame that is conrtained in the page. These objects
106*cdf0e10cSrcweir                        are children of the <type>AccessiblePageView</type>
107*cdf0e10cSrcweir                        regardless whether they are bound to the page, a
108*cdf0e10cSrcweir                        paragarph, a frame, or a character. The only
109*cdf0e10cSrcweir                        exception are text frames that are bound as
110*cdf0e10cSrcweir                        character.  They are childen of the paragraph they
111*cdf0e10cSrcweir                        are contained in.
112*cdf0e10cSrcweir                    <li><type scope="::com::sun::star::text"
113*cdf0e10cSrcweir                        >AccessibleTextGraphicObject</type>:
114*cdf0e10cSrcweir                        A child of this kind is returned for every graphic that
115*cdf0e10cSrcweir                        is contained in the page. These objects are
116*cdf0e10cSrcweir                        children of the <type>AccessiblePageView</type>
117*cdf0e10cSrcweir                        regardless whether they are bound to a page, paragraph,
118*cdf0e10cSrcweir                        a frame or a character. The only exception
119*cdf0e10cSrcweir                        are text frames that are bound as character. They are
120*cdf0e10cSrcweir                        childen of the paragraph they are contained in.
121*cdf0e10cSrcweir                    <li><type scope="::com::sun::star::text"
122*cdf0e10cSrcweir                        >AccessibleTextEmbeddedObject</type>:
123*cdf0e10cSrcweir                        A child of this kind is returned for every embedded
124*cdf0e10cSrcweir                        object that is conatained in the page.
125*cdf0e10cSrcweir                        These objects are children of the
126*cdf0e10cSrcweir                        <type>AccessibleTextDocumentView</type> regardless
127*cdf0e10cSrcweir                        whether they are bound to a page, a paragarph, a frame,
128*cdf0e10cSrcweir                        or a character.  They are childen of the paragraph they
129*cdf0e10cSrcweir                        are contained in.
130*cdf0e10cSrcweir                    <li><type scope="::com::sun::star::drawing"
131*cdf0e10cSrcweir                        >AccessibleShape</type>:
132*cdf0e10cSrcweir                        A child of this kind (or one of its derived
133*cdf0e10cSrcweir                        interfaces) is returned for every shape that is
134*cdf0e10cSrcweir                        contained in the page. These objects are children of
135*cdf0e10cSrcweir                        the <type>AccessibleTextDocumentView</type>
136*cdf0e10cSrcweir                        regardless whether they are bound to a page, a
137*cdf0e10cSrcweir                        paragraph, a frame or a character.
138*cdf0e10cSrcweir                </ul>
139*cdf0e10cSrcweir                <p>The following rules apply to the children order:
140*cdf0e10cSrcweir                <ul>
141*cdf0e10cSrcweir                    <li>The logical order of paragraph and table fragments is
142*cdf0e10cSrcweir                        never changed.
143*cdf0e10cSrcweir                    <li>Headers appear immediately before the first paragraph or
144*cdf0e10cSrcweir                        table fragment of the header's page.
145*cdf0e10cSrcweir                    <li>Footnotes appear immediately after the last paragraph or
146*cdf0e10cSrcweir                        table fragment of the footnote's page. The logical order
147*cdf0e10cSrcweir                        of footnotes isn't changed.
148*cdf0e10cSrcweir                    <li>Endnotes appear immediately after the last footnote of
149*cdf0e10cSrcweir                        the endnote's page or after the last paragraph or
150*cdf0e10cSrcweir                        table fragment of this page if there are no footnotes.
151*cdf0e10cSrcweir                        The logical order of endnotes isn't changed.
152*cdf0e10cSrcweir                    <li>Footers appear immediately after the last endnote,
153*cdf0e10cSrcweir                        footnote, paragraph or table fragment of the footer's
154*cdf0e10cSrcweir                        page.
155*cdf0e10cSrcweir                    <li>Text frames, graphics, embedded objects and shapes that
156*cdf0e10cSrcweir                        are painted in the background appear before any other
157*cdf0e10cSrcweir                        children. Their order reflects the z order.
158*cdf0e10cSrcweir                    <li>Text frames, graphics, embedded objects and shapes
159*cdf0e10cSrcweir                        that are painted in the foreground appear behind any
160*cdf0e10cSrcweir                        other children. Their order reflects the z order,
161*cdf0e10cSrcweir                        with the exception of controls that appear really last,
162*cdf0e10cSrcweir                        but also keep the z order.
163*cdf0e10cSrcweir                </ul>
164*cdf0e10cSrcweir            <li>The role is <const scope="::com::sun::star::accessibility"
165*cdf0e10cSrcweir                >AccessibleRole::PANEL</const>
166*cdf0e10cSrcweir            <li>The name is "page" (or the equivalent term
167*cdf0e10cSrcweir                in application's language) with a number appended.
168*cdf0e10cSrcweir            <li>The description is "page" (or the equivalent term
169*cdf0e10cSrcweir                in application's language) with the page number or
170*cdf0e10cSrcweir                character appended in the format that is specified in the
171*cdf0e10cSrcweir                page style.
172*cdf0e10cSrcweir            <li>There are no relations.</li>
173*cdf0e10cSrcweir            <li>The following states might be contained in the state set
174*cdf0e10cSrcweir                returned by <method scope="::com::sun::star::accessibility"
175*cdf0e10cSrcweir                >XAccessibleContext::getAccessibleStateSet</method>:
176*cdf0e10cSrcweir                <ul>
177*cdf0e10cSrcweir                    <li><const scope="::com::sun::star::accessibility"
178*cdf0e10cSrcweir                        >AccessibleStateType::DEFUNC</const> (indicates that
179*cdf0e10cSrcweir                        the document window has been closed or the endnote
180*cdf0e10cSrcweir                        is not existing any longer)</li>
181*cdf0e10cSrcweir                    <li><const scope="::com::sun::star::accessibility"
182*cdf0e10cSrcweir                        >AccessibleStateType::ENABLED</const> (always
183*cdf0e10cSrcweir                        contained)</li>
184*cdf0e10cSrcweir                    <li><const scope="::com::sun::star::accessibility"
185*cdf0e10cSrcweir                        >AccessibleStateType::OPAQUE</const>
186*cdf0e10cSrcweir                    <li><const scope="::com::sun::star::accessibility"
187*cdf0e10cSrcweir                        >AccessibleStateType::FOCUSABLE</const>
188*cdf0e10cSrcweir                    <li><const scope="::com::sun::star::accessibility"
189*cdf0e10cSrcweir                        >AccessibleStateType::FOCUSED</const>
190*cdf0e10cSrcweir                    <li><const scope="::com::sun::star::accessibility"
191*cdf0e10cSrcweir                        >AccessibleStateType::SHOWING</const>
192*cdf0e10cSrcweir                    <li><const scope="::com::sun::star::accessibility"
193*cdf0e10cSrcweir                        >AccessibleStateType::VISIBLE</const>
194*cdf0e10cSrcweir                </ul>
195*cdf0e10cSrcweir            <li>The locale is the application's locale.
196*cdf0e10cSrcweir        </ul>
197*cdf0e10cSrcweir
198*cdf0e10cSrcweir     */
199*cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleContext;
200*cdf0e10cSrcweir
201*cdf0e10cSrcweir    /** This interface describes the graphical representation of a
202*cdf0e10cSrcweir        endnote.
203*cdf0e10cSrcweir     */
204*cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleComponent;
205*cdf0e10cSrcweir
206*cdf0e10cSrcweir    /** This is the interface for listeners */
207*cdf0e10cSrcweir    interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
208*cdf0e10cSrcweir};
209*cdf0e10cSrcweir
210*cdf0e10cSrcweir//=============================================================================
211*cdf0e10cSrcweir
212*cdf0e10cSrcweir}; }; }; };
213*cdf0e10cSrcweir
214*cdf0e10cSrcweir#endif
215