| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/orca/ |
Upload File : |
z#Jc @ sl d Z d Z d Z d Z d Z d Z d d k Z d d k Z d d k Z d d k Z d d k
Z
d d k Z d d k Z d d k
Z
d d k l Z d d k l Z e i d
e i e i Be i B Z d d d YZ d
d d YZ d d d YZ d e f d YZ d e f d YZ d e f d YZ d d d YZ d d d YZ d S( s= Provides the default implementation for flat review for Orca.s $Id$s
$Revision$s $Date$s- Copyright (c) 2005-2008 Sun Microsystems Inc.t LGPLiN( t _( t C_s (\s+)t Charc B s e Z d Z d Z RS( s9 Represents a single char of an Accessibility_Text object.c C sC | | _ | | _ | | _ | | _ | | _ | | _ | | _ d S( s Creates a new char.
Arguments:
- word: the Word instance this belongs to
- index: the index of this char in the word
- string: the actual char
- x, y, width, height: the extents of this Char on the screen
N( t wordt stringt indext xt yt widtht height( t selfR R R R R R R
( ( s4 /usr/lib/python2.6/site-packages/orca/flat_review.pyt __init__3 s ( t __name__t
__module__t __doc__R ( ( ( s4 /usr/lib/python2.6/site-packages/orca/flat_review.pyR 0 s t Wordc B s e Z d Z d Z d Z RS( s Represents a single word of an Accessibility_Text object, or
the entire name of an Image or Component if the associated object
does not implement the Accessibility_Text interface. As a rule of
thumb, all words derived from an Accessibility_Text interface will
start with the word and will end with all chars up to the
beginning of the next word. That is, whitespace and punctuation
will usually be tacked on to the end of words.c C sd | | _ | | _ | | _ | | _ t | i d | _ | | _ | | _ | | _ | | _
d S( s Creates a new Word.
Arguments:
- zone: the Zone instance this belongs to
- index: the index of this word in the Zone
- string: the actual string
- x, y, width, height: the extents of this Char on the screens UTF-8N( t zoneR t startOffsetR t lent decodet lengthR R R R
( R R R R R R R R R
( ( s4 /usr/lib/python2.6/site-packages/orca/flat_review.pyR R s c C sS | d j o
t | i t o | i i i } g | _ d } x | | i j o | i | i | t i
\ } } } t | o | i d d i
d } n | i | | d d \ } } } }
| i i t | | | | | | |
| d 7} qD Wn
d | _ | i S| i d o | i d o
t | n | i | Sd S( sz Used for lazily determining the chars of a word. We do
this to reduce the total number of round trip calls to the app,
and to also spread the round trip calls out over the lifetime
of a flat review context.
Arguments:
- attr: a string indicating the attribute name to retrieve
Returns the value of the given attribute.
t charsi s UTF-8i t __N( t
isinstanceR t TextZonet
accessiblet queryTextR R t getTextAtOffsetR t pyatspit TEXT_BOUNDARY_CHARR R t encodet getRangeExtentst appendR t Nonet
startswitht endswitht AttributeErrort __dict__( R t attrt textt it charR t endOffsetR R R R
( ( s4 /usr/lib/python2.6/site-packages/orca/flat_review.pyt __getattr__j s4
( R
R R R R, ( ( ( s4 /usr/lib/python2.6/site-packages/orca/flat_review.pyR I s t Zonec B s5 e Z d Z d d Z d Z d Z d Z RS( s>