| 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/scripts/toolkits/Gecko/ |
Upload File : |
y#Jc @ sk d Z d Z d Z d Z d Z d Z d d k Z d d k i Z d d k i
Z
d e i f d YZ d S(
s3 Custom structural navigation for the Gecko toolkit.s $Id$s
$Revision$s $Date$s- Copyright (c) 2005-2008 Sun Microsystems Inc.t LGPLiNt GeckoStructuralNavigationc B s e Z d Z d Z d Z d Z d Z d Z d Z d Z d Z
d Z d
Z d Z
d
d Z RS( c C s t i i | | | | d S( s% Gecko specific Structural Navigation.N( t structural_navigationt StructuralNavigationt __init__( t selft scriptt enabledTypest enabled( ( sU /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyR ) s c C s | i i \ } } | S( s~ Returns the current object -- normally, the locusOfFocus. But
in the case of Gecko, that doesn't always work.
( t _scriptt getCaretContext( R t objt offset( ( sU /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt getCurrentObject7 s c C s | i i | | S( s. Finds the object prior to this one, where the tree we're
dealing with is a DOM and 'prior' means the previous object
in a linear presentation sense.
Arguments:
-obj: the object where to start.
-stopAncestor: the ancestor at which the search should stop
( R t findPreviousObject( R R t stopAncestor( ( sU /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt _findPreviousObject? s
c C s | i i | | S( s) Finds the object after to this one, where the tree we're
dealing with is a DOM and 'next' means the next object
in a linear presentation sense.
Arguments:
-obj: the object where to start.
-stopAncestor: the ancestor at which the search should stop
( R t findNextObject( R R R ( ( sU /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt _findNextObjectK s
c C s | i i | S( s Returns the last object in ancestor.
Arguments:
- ancestor: the accessible object whose last (child) object
is sought.
( R t
getLastObject( R t ancestor( ( sU /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt _findLastObjectW s c C s
| i i S( sc Returns the document or other object in which the object of
interest is contained.
( R t getDocumentFrame( R ( ( sU /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt _getDocumenta s c C s | i i | S( s5 Returns True of the object is inside of the document.( R t inDocumentContent( R R ( ( sU /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt
_isInDocumenth s c C st | i i | d \ } } | i t i j o9 | i i t i o | i i | | \ } } n | | f S( sY Returns the [obj, characterOffset] where the caret should be
positioned.
i ( R t findFirstCaretContextt getRolet pyatspit ROLE_LINKt getStatet containst STATE_FOCUSABLEt findNextCaretInOrder( R R R ( ( sU /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt _getCaretPositionm s
c C s | i i | | d S( s2 Sets the caret at the specified offset within obj.N( R t setCaretPosition( R R t characterOffset( ( sU /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt _setCaretPosition| s c C s | i i | S( sm Returns true if the given object is an obj that doesn't
have any meaning associated with it.
( R t isUselessObject( R R ( ( sU /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt _isUselessObject s c C s | i i | | d S( s2 Presents the first line of the object to the user.N( R t presentLine( R R R ( ( sU /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt _presentLine s c C sq | i t i j o"