00001 /* 00002 * AT-SPI - Assistive Technology Service Provider Interface 00003 * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap) 00004 * 00005 * Copyright 2001 Sun Microsystems Inc. 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Library General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public 00018 * License along with this library; if not, write to the 00019 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00020 * Boston, MA 02111-1307, USA. 00021 */ 00022 00023 #ifndef _ACCESSIBILITY_ACCESSIBLE_IDL 00024 #define _ACCESSIBILITY_ACCESSIBLE_IDL 00025 00026 #include "Accessibility_Relation.idl" 00027 #include "Accessibility_State.idl" 00028 #include "Accessibility_Role.idl" 00029 00030 module Accessibility { 00031 00033 enum LOCALE_TYPE { 00034 LOCALE_TYPE_MESSAGES, 00035 LOCALE_TYPE_COLLATE, 00036 LOCALE_TYPE_CTYPE, 00037 LOCALE_TYPE_MONETARY, 00038 LOCALE_TYPE_NUMERIC, 00039 LOCALE_TYPE_TIME 00040 }; 00041 00043 typedef sequence<Relation> RelationSet; 00044 00063 typedef sequence<string> AttributeSet; 00064 00069 typedef sequence<Role> RoleSet; 00070 00075 struct BoundingBox { 00076 long x; 00077 long y; 00078 long width; 00082 long height; 00086 }; 00087 00088 00089 interface Application; 00118 interface Accessible : Bonobo::Unknown { 00119 00123 attribute string name; 00124 00128 attribute string description; 00129 00133 readonly attribute Accessibility::Accessible parent; 00134 00138 readonly attribute long childCount; 00139 00150 boolean isEqual (in Accessible obj); 00151 00157 Accessible getChildAtIndex (in long index); 00158 00163 long getIndexInParent (); 00164 00169 RelationSet getRelationSet (); 00170 00176 Role getRole (); 00177 00183 string getRoleName (); 00184 00191 string getLocalizedRoleName (); 00192 00197 StateSet getState (); 00198 00235 AttributeSet getAttributes (); 00236 00243 Application getApplication (); 00244 00257 Accessible getDocumentObject (); 00258 00259 }; 00260 }; 00261 00262 #endif 00263
1.4.3