1*b1cdbd2cSJim Jagielski/************************************************************** 2*b1cdbd2cSJim Jagielski * 3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 4*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 5*b1cdbd2cSJim Jagielski * distributed with this work for additional information 6*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 9*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 10*b1cdbd2cSJim Jagielski * 11*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 12*b1cdbd2cSJim Jagielski * 13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 18*b1cdbd2cSJim Jagielski * under the License. 19*b1cdbd2cSJim Jagielski * 20*b1cdbd2cSJim Jagielski *************************************************************/ 21*b1cdbd2cSJim Jagielski 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski 24*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_drawing_AccessibleGraphicShape_idl__ 25*b1cdbd2cSJim Jagielski#define __com_sun_star_drawing_AccessibleGraphicShape_idl__ 26*b1cdbd2cSJim Jagielski 27*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_accessibility_XAccessible_idl__ 28*b1cdbd2cSJim Jagielski#include <com/sun/star/accessibility/XAccessible.idl> 29*b1cdbd2cSJim Jagielski#endif 30*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ 31*b1cdbd2cSJim Jagielski#include <com/sun/star/accessibility/XAccessibleContext.idl> 32*b1cdbd2cSJim Jagielski#endif 33*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ 34*b1cdbd2cSJim Jagielski#include <com/sun/star/accessibility/XAccessibleComponent.idl> 35*b1cdbd2cSJim Jagielski#endif 36*b1cdbd2cSJim Jagielski 37*b1cdbd2cSJim Jagielskimodule com { module sun { module star { module drawing { 38*b1cdbd2cSJim Jagielski 39*b1cdbd2cSJim Jagielski/** The <type>AccessibleDrawDocumentView</type> service is implemented by 40*b1cdbd2cSJim Jagielski views of Draw and Impress documents. 41*b1cdbd2cSJim Jagielski 42*b1cdbd2cSJim Jagielski <p>An object that implements the <type>AccessibleDrawDocumentView</type> 43*b1cdbd2cSJim Jagielski service provides information about the view of a Draw or Impress 44*b1cdbd2cSJim Jagielski document in one of the various view modes. With its children it gives 45*b1cdbd2cSJim Jagielski access to the current page and the shapes on that page.</p> 46*b1cdbd2cSJim Jagielski 47*b1cdbd2cSJim Jagielski <p>This service gives a simplified view on the underlying document. It 48*b1cdbd2cSJim Jagielski tries both to keep the structure of the accessibility representation 49*b1cdbd2cSJim Jagielski tree as simple as possible and provide as much relevant information as 50*b1cdbd2cSJim Jagielski possible. This has the following consequences: 51*b1cdbd2cSJim Jagielski <ol> 52*b1cdbd2cSJim Jagielski <li>Only the current draw page and only the visible shapes are 53*b1cdbd2cSJim Jagielski accessible. To switch to another page or to access shapes that lie 54*b1cdbd2cSJim Jagielski outside the currently visible area, the user has to issue these requests 55*b1cdbd2cSJim Jagielski manually or programmatically through the usual chanels, e.g. pressing 56*b1cdbd2cSJim Jagielski keys or selecting menu entries.</li> 57*b1cdbd2cSJim Jagielski <li>The hierarchy exposed through the 58*b1cdbd2cSJim Jagielski <type scope="::com::sun::star::accessibility">XAccessibleContext</type> 59*b1cdbd2cSJim Jagielski interface does not necessarily correspond directly to the underlying 60*b1cdbd2cSJim Jagielski draw page structure. Internal nodes in this hierarchy are introduced 61*b1cdbd2cSJim Jagielski by group shapes, 3D scenes, and OLE objects.</li> 62*b1cdbd2cSJim Jagielski <li>The view modes editing view, outline view, slides view, notes view, 63*b1cdbd2cSJim Jagielski handout view, and presentation view are not exposed explicitly. 64*b1cdbd2cSJim Jagielski However, if there happens to be a view mode change which results in a 65*b1cdbd2cSJim Jagielski rearrangement of the visible shapes, the user gets notified of this.</li> 66*b1cdbd2cSJim Jagielski </ol></p> 67*b1cdbd2cSJim Jagielski 68*b1cdbd2cSJim Jagielski @since OpenOffice 1.1.2 69*b1cdbd2cSJim Jagielski*/ 70*b1cdbd2cSJim Jagielskipublished service AccessibleDrawDocumentView 71*b1cdbd2cSJim Jagielski{ 72*b1cdbd2cSJim Jagielski /** Base interface for being accessible. It gives access to the 73*b1cdbd2cSJim Jagielski <type scope="::com::sun::star::accessibility">XAccessibleContext</type> 74*b1cdbd2cSJim Jagielski interface. 75*b1cdbd2cSJim Jagielski */ 76*b1cdbd2cSJim Jagielski interface ::com::sun::star::accessibility::XAccessible; 77*b1cdbd2cSJim Jagielski 78*b1cdbd2cSJim Jagielski /** Provide access to the view of a document. 79*b1cdbd2cSJim Jagielski 80*b1cdbd2cSJim Jagielski <p>You can access the following information: 81*b1cdbd2cSJim Jagielski <ul> 82*b1cdbd2cSJim Jagielski <li>Role: The object's role is <const 83*b1cdbd2cSJim Jagielski scope="com::sun::star::accessibility" 84*b1cdbd2cSJim Jagielski >AccessibleRole::DOCUMENT</const>.</li> 85*b1cdbd2cSJim Jagielski <li>Name: Its name is "AccessibleDrawDocumentView", 86*b1cdbd2cSJim Jagielski "AccessibleOutlineView", or "slide window".</li> 87*b1cdbd2cSJim Jagielski <li>Description: The description is "Draw Document", "Accessible 88*b1cdbd2cSJim Jagielski Draw Document Outline", or "slide window".</li> 89*b1cdbd2cSJim Jagielski <li>Children: The shapes of the current draw page that are currently 90*b1cdbd2cSJim Jagielski visible are direct and indirect children of (an object 91*b1cdbd2cSJim Jagielski implementing) 92*b1cdbd2cSJim Jagielski this service. Group shapes, 3D scenes, and OLE objects 93*b1cdbd2cSJim Jagielski introduce further levels into the hierarchy. If the visibility 94*b1cdbd2cSJim Jagielski of shapes changes--due to 95*b1cdbd2cSJim Jagielski scrolling, switching the current draw page, or changing the view 96*b1cdbd2cSJim Jagielski mode--the appropriate listeners are called and the user gets 97*b1cdbd2cSJim Jagielski informed of this.</li> 98*b1cdbd2cSJim Jagielski <li>Parent: The parent will usually be the window that contains the 99*b1cdbd2cSJim Jagielski draw document view. It has to be set via implementation dependend 100*b1cdbd2cSJim Jagielski ways.</li> 101*b1cdbd2cSJim Jagielski <li>Relations: Relations are set and modified from the outside.</li> 102*b1cdbd2cSJim Jagielski <li>States: <const scope="com::sun::star::accessibility" 103*b1cdbd2cSJim Jagielski >AccessibleStateType::DEFUNC</const> is set if a document view 104*b1cdbd2cSJim Jagielski becomes obsolete like when the window, which displays the view, 105*b1cdbd2cSJim Jagielski is closed. Otherwise the states 106*b1cdbd2cSJim Jagielski <const scope="com::sun::star::accessibility" 107*b1cdbd2cSJim Jagielski >AccessibleStateType::ENABLED</const>, 108*b1cdbd2cSJim Jagielski <const scope="com::sun::star::accessibility" 109*b1cdbd2cSJim Jagielski >AccessibleStateType::SHOWING</const>, 110*b1cdbd2cSJim Jagielski <const scope="com::sun::star::accessibility" 111*b1cdbd2cSJim Jagielski >AccessibleStateType::VISIBLE</const>, 112*b1cdbd2cSJim Jagielski <const scope="com::sun::star::accessibility" 113*b1cdbd2cSJim Jagielski >AccessibleStateType::FOCUSABLE</const>, and 114*b1cdbd2cSJim Jagielski <const scope="com::sun::star::accessibility" 115*b1cdbd2cSJim Jagielski >AccessibleStateType::SELECTABLE</const> 116*b1cdbd2cSJim Jagielski are always set.</li> 117*b1cdbd2cSJim Jagielski <li>Locale: Is obtained from the parent and returned unchanged.</li> 118*b1cdbd2cSJim Jagielski </ul></p> 119*b1cdbd2cSJim Jagielski */ 120*b1cdbd2cSJim Jagielski interface ::com::sun::star::accessibility::XAccessibleContext; 121*b1cdbd2cSJim Jagielski 122*b1cdbd2cSJim Jagielski /** Provide access to a draw document's graphical representation. 123*b1cdbd2cSJim Jagielski 124*b1cdbd2cSJim Jagielski <p>The main purpose of this interface is to provide a bounding box 125*b1cdbd2cSJim Jagielski of the currently visible area and to let the user find children 126*b1cdbd2cSJim Jagielski (i.e. shapes) that cover a given test point. The more interesting 127*b1cdbd2cSJim Jagielski part of the graphical representation of a draw page lies in its 128*b1cdbd2cSJim Jagielski children. See the <type>AccessibleShape</type> service for more 129*b1cdbd2cSJim Jagielski information about shapes.</p> 130*b1cdbd2cSJim Jagielski 131*b1cdbd2cSJim Jagielski @see AccessibleShape 132*b1cdbd2cSJim Jagielski */ 133*b1cdbd2cSJim Jagielski interface ::com::sun::star::accessibility::XAccessibleComponent; 134*b1cdbd2cSJim Jagielski}; 135*b1cdbd2cSJim Jagielski 136*b1cdbd2cSJim Jagielski}; }; }; }; 137*b1cdbd2cSJim Jagielski 138*b1cdbd2cSJim Jagielski#endif 139