403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/orca/structural_navigation.pyc
z#Jc@sdZdZdZdZdZdZddkZddkZddkZddk	Z	ddk
Z
ddkZddkZddk
Z
ddkZddklZdd	klZd
fdYZdfd
YZdfdYZdS(sImplements structural navigation.  Right now this is only
being implemented by Gecko; however it can be used in any
script providing access to document content.s$Id$s
$Revision$s$Date$s-Copyright (c) 2005-2009 Sun Microsystems Inc.tLGPLiN(t_(tngettextt
MatchCriteriacBs5eZdZgdgdgdddeed
ZRS(sContains the criteria which will be used to generate a collection
    matchRule.  We don't want to create the rule until we need it and
    are ready to use it. In addition, the creation of an AT-SPI match
    rule requires you specify quite a few things (see the __init__),
    most of which are irrelevant to the search at hand.  This class
    makes it possible for the StructuralNavigationObject creator to just
    specify the few criteria that actually matter.
    tc
Cs||_|p|i|_||_|p|i|_||_|p|i|_||_|	p|i|_	|
|_
||_ti
|_x|D]}|ii|qWdS(sCreates a new match criteria object.

        Arguments:
        - collection: the collection interface for the document in
          which the accessible objects can be found.
        - states: a list of pyatspi states of interest
        - matchStates: whether an object must have all of the states
          in the states list, any of the states in the list, or none
          of the states in the list.  Must be one of the collection
          interface MatchTypes if provided.
        - objAttrs: a list of object attributes (not text attributes)
        - matchObjAttrs: whether an object must have all of the
          attributes in the objAttrs list, any of the attributes in
          the list, or none of the attributes in the list.  Must be
          one of the collection interface MatchTypes if provided.
        - interfaces: (We aren't using this.  According to the at-spi
          idl, it is a string.)
        - matchInterfaces: The collection MatchType for matching by
          interface.
        - invert: If true the match rule will find objects that don't
          match. We always use False.
        - applyPredicate: whether or not a predicate should be applied
          as an additional check to see if an item is indeed a match.
          This is necessary, for instance, when one of the things we
          care about is a text attribute, something the collection
          interface doesn't include in its criteria.
        N(t
collectiont	MATCH_ANYtmatchStatestobjAttrst
matchObjAttrstrolest
matchRolest
interfacest	MATCH_ALLtmatchInterfacestinverttapplyPredicatetpyatspitStateSettstatestadd(
tselfRRRRR	R
RRRRRtstate((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt__init__<s)						N(t__name__t
__module__t__doc__tNonetFalseR(((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR2stStructuralNavigationObjectcBsVeZdZdZdZdZdZdZdZdZ	dZ
RS(	stRepresents a document object which has identifiable characteristics
    which can be used for the purpose of navigation to and among instances
    of that object. These characteristics may be something as simple as a
    role and/or a state of interest. Or they may be something more complex
    such as character counts, text attributes, and other object attributes.
    cCse||_||_||_||_||_||_h|_ti|_	g|_
|idS(sGCreates a new structural navigation object.

        Arguments:
        - structuralNavigation: the StructuralNavigation class associated
          with this object.
        - objType: the type (e.g. BLOCKQUOTE) associated with this object.
        - bindings: a dictionary of all of the possible bindings for this
          object.  In the case of all but the "atLevel" bindings, each
          binding takes the form of [keysymstring, modifiers, description].
          The goPreviousAtLevel and goNextAtLevel bindings are each a list
          of bindings in that form.
        - predicate: the predicate to use to determine if a given accessible
          matches this structural navigation object. Used when a search via
          collection is not possible or practical.
        - criteria: a method which returns a MatchCriteria object which
          can in turn be used to locate the next/previous matching accessible
          via collection.
        - presentation: the method which should be called after performing
          the search for the structural navigation object.
        N(tstructuralNavigationtobjTypetbindingst	predicatetcriteriatpresenttinputEventHandlerstkeybindingstKeyBindingstkeyBindingst	functionst_setUpHandlersAndBindings(RRRR R!R"tpresentation((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRs								cCs|iid}|o{|\}}}d|i}ti|i||i|<|iit	i
|ti||i||i
i|in|iid}|o{|\}}}d|i}ti|i||i|<|iit	i
|ti||i||i
i|in|iidpg}xt|D]\}}	|d}
|i|
}d|i|
f}|	\}}}ti|||i|<|iit	i
|ti||i||i
i|qNW|iidpg}xt|D]\}}	|d}
|i|
}d	|i|
f}|	\}}}ti|||i|<|iit	i
|ti||i||i
i|qWh}
|iid
|
d<|iid|
d
<|iid|
d<|iid|
d<|iid|
d<|iid|
d<x|
D]}|
i|}	|	pqEn|i|}d|i|f}|	\}}}ti|||i|<|iit	i
|ti||i||i
i|qEWdS(s<Adds the inputEventHandlers and keyBindings for this object.tpreviouss%sGoPrevioustnexts%sGoNexttpreviousAtLevelis%sGoPreviousLevel%dHandlertnextAtLevels%sGoNextLevel%dHandlertlefttLefttrighttRighttuptUptdowntDowntfirsttFirsttlasttLasts%sGo%sN(R tgetRtinput_eventtInputEventHandlert
goPreviousR$R'RR%t
KeyBindingtsettingstdefaultModifierMaskR(tappendtgoNextt	enumeratetgoPreviousAtLevelFactorytgoNextAtLevelFactorytgoDirectionFactory(RR+tkeysymstringt	modifierstdescriptionthandlerNameR,R-titbindingtlevelthandlerR.t
directionst	direction((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR)s
	
	

	

		c	Cs|\}}}ti||}ti|ti||}||i|<||ii|<|ii	||iii	||i
i||ii
i|dS(sAdds a custom inputEventHandler and keybinding to the object's
        handlers and bindings.  Right now this is unused, but here in
        case a creator of a StructuralNavigationObject had some other
        desired functionality in mind.

        Arguments:
        - binding: [keysymstring, modifiers, description]
        - handlerName: a string uniquely identifying the handler
        - function: the function associated with the binding
        N(R<R=R%R?R@RAR$RR(RBR'R(	RRMRKtfunctionRHRIRJROt
keyBinding((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pytaddHandlerAndBindings	
cCs|ii|tdS(sGo to the previous object.N(RtgoObjectR(Rtscriptt
inputEvent((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR>3scCs|ii|tdS(sGo to the next object.N(RRUtTrue(RRVRW((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRC7scsfd}|S(s[Generates a goPrevious method for the specified level. Right
        now, this is just for headings, but it may have applicability
        for other objects such as list items (i.e. for level-based
        navigation in an outline or other multi-tiered list.

        Arguments:
        - level: the desired level of the object as an int.
        csiitddS(Ntarg(RRUR(RVRW(RRN(s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pytgoPreviousAtLevelEs((RRNRZ((RRNs>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRE;s
csfd}|S(sXGenerates a goNext method for the specified level. Right
        now, this is just for headings, but it may have applicability
        for other objects such as list items (i.e. for level-based
        navigation in an outline or other multi-tiered list.

        Arguments:
        - level: the desired level of the object as an int.

        csiitddS(NRY(RRURX(RVRW(RRN(s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt
goNextAtLevelTs((RRNR[((RRNs>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRFIscs\fd}d}itijo|Sitijodjo|SdS(sGenerates the methods for navigation in a particular direction
        (i.e. left, right, up, down, first, last).  Right now, this is
        primarily for table cells, but it may have applicability for other
        objects.  For example, when navigating in an outline, one might
        want the ability to navigate to the next item at a given level,
        but then work his/her way up/down in the hierarchy.

        Arguments:
        - direction: the direction in which to navigate as a string.
        c	sfiiii}ii|}djo|d|ddg}ndjo|d|ddg}ndjo|dd|dg}ndjo|dd|dg}nydjoddg}n\ddg}ii|}|o6|i}|id}|id}||g}nii|||dS(	NR0iiR2R4R6R8i(	Rt
getCellForObjtgetCurrentObjecttgetCellCoordinatestgetTableForCellt
queryTabletnRowstnColumnstgoCell(	RVRWtthisCelltcurrentCoordinatestdesiredCoordinatesttabletiTabletlastRowtlastCol(RQR(s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRcds8	






cSs2tio|iintitddS(sGo to the last liveRegion.sLive region support is offN(R@tinferLiveRegionstliveMngrtgoLastLiveRegiontspeechtspeakR(RVRW((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRms
R:N(RtStructuralNavigationt
TABLE_CELLtLIVE_REGION(RRQRcRm((RRQs>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRGXs 	

(RRRRR)RTR>RCRERFRG(((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRzs	$	p					Rpc	BseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZeiZeieieieieieiei ei!ei"g	Z#ei$eiei%ei&ei'ei"ei(ei)gZ*e+dZ,dZ-dZ.dZ/dZ0dZ1dZ2dddZ4dZ5ddZ6ddZ7dddZ8ddd Z9d!Z:d"Z;d#Z<d$Z=d%Z>d&Z?d'Z@d(ZAd)ZBd*ZCd+ZDd,ZEd-ZFd.ZGd/ZHd0ZId1ZJd2ZKd3ZLd4ZMd5ZNd6ZOd7ZPd8ZQd9ZRd:ZSd;ZTdd<ZUdd=ZVdd>ZWd?ZXdd@ZYddAZZddBZ[dCZ\ddDZ]ddEZ^ddFZ_dGZ`ddHZaddIZbddJZcdKZdddLZeddMZfddNZgdOZhddPZiddQZjddRZkdSZlddTZmddUZnddVZodWZpddXZqddYZrddZZsd[Ztd\Zudd]Zvdd^Zwdd_Zxd`ZyddaZzddbZ{ddcZ|ddZ}ddeZ~ddfZddgZdhZddiZddjZddkZdlZddmZddnZdoZddpZddqZddrZdsZddtZdduZddvZdwZddxZddyZddzZd{Zdd|Zdd}Zd~ZdZddZddZddZdZddZddZddZRS(s1This class implements the structural navigation functionality which
    is available to scripts. Scripts interested in implementing structural
    navigation need to override getEnabledStructuralNavigationTypes() and
    return a list of StructuralNavigation object types which should be
    enabled.
    tanchort
blockquotetbuttontcheckBoxtchunktcomboBoxtentryt	formFieldtheadingtlandmarktlisttlistItemt
liveRegiont	paragraphtradioButtonRgt	tableCellt
unvisitedLinktvisitedLinkcCs||_||_h|_x$|D]}|i||i|<q"Wg|_h|_|i|i|_ddg|_	dS(s4Creates an instance of the StructuralNavigation class.

        Arguments:
        - script: the script which which this instance is associated.
        - enabledTypes: a list of StructuralNavigation object types
          which the script is interested in supporting.
        - enabled: Whether structural navigation should start out
          enabled.  For instance, in Gecko by default we do what it
          enabled; in soffice, we would want to start out with it
          disabled and have the user enable it via a keystroke when
          desired.
        iN(
t_scripttenabledtenabledObjectst!structuralNavigationObjectCreatorR(R$tsetupInputEventHandlerstgetKeyBindingsR't
lastTableCell(RRVtenabledTypesRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRs					
c
Csmtd|}td|}td|}ytd|}Wn
d}nXt||||||S(sThis convenience method creates a StructuralNavigationObject
        with the specified name and associated characterists. (See the
        "Objects" section of code near the end of this class. Creators
        of StructuralNavigationObject's can still do things the old
        fashioned way should they so choose, by creating the instance
        and then adding it via addObject().

        Arguments:
        - name: the name/objType associated with this object.
        sself._%sBindings()sself._%sPredicatesself._%sPresentationsself._%sCriteriaN(tevalRR(RtnameR R!R*R"((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRs
cCs||i|<dS(sAdds structuralNavigationObject to the dictionary of enabled
        objects.

        Arguments:
        - objType: the name/object type of the StructuralNavigationObject.
        - structuralNavigationObject: the StructuralNavigationObject to
          add.
        N(R(RRtstructuralNavigationObject((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt	addObject1s
cCs{t|ipdSti|itd|id<x=|iiD],}|ii|i|i	i
|i	qGWdS(s.Defines InputEventHandler fields for a script.Ns#Toggles structural navigation keys.t!toggleStructuralNavigationHandler(tlenRR<R=ttoggleStructuralNavigationRR$tvaluestupdateR(textend(RR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR=s	
cCsti}t|ip|S|itidtiti|i	dxA|ii
D]0}|ii}x|D]}|i|qvWq]W|S(sDefines the structural navigation key bindings for a script.

        Returns: an instance of keybindings.KeyBindings.
        tzR(R%R&RRRR?R@RAtORCA_MODIFIER_MASKR$RR'(RR'RR t
keybinding((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRTs cCsd|i|_|iotd}n
td}titi|ti|ti|dS(s#Toggles structural navigation keys.sStructural navigation keys on.sStructural navigation keys off.N(	RRtdebugtprintlntLEVEL_CONFIGURATIONRnRotbrailletdisplayMessage(RRVRWtstring((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRss


cCs^|i|}y|i}WntitddSX|\}}|\}	}
|	|}|
|}|i|}
|i|}|}x|o|i|	|
}|p|
djotitdd}
n9|
|i	djo$titd|i	d}
n|	djotitdd}	q|	|i
djo$titd|i
d}	qq|ii||pt
io|i|op|djo|
d8}
n|djo|
d7}
n|djo|	d8}	q|djo|	d7}	qqPqW|	|
g|_|o&|||
|g}|i||ndS(	s_The method used for navigation among cells in a table.

        Arguments:
        - structuralNavigationObject: the StructuralNavigationObject which
          represents the table cell.
        - thisCell: the pyatspi accessible TABLE_CELL we're currently in
        - currentCoordinates: the [row, column] of thisCell.  Note, we
          cannot just get the coordinates because in table cells which
          span multiple rows and/or columns, the value returned by 
          table.getRowAtIndex() is the first row the cell spans. Likewise,
          the value returned by table.getColumnAtIndex() is the left-most
          column.  Therefore, we keep track of the row and column from
          our perspective to ensure we stay in the correct row and column.
        - desiredCoordinates: the [row, column] where we think we'd like to
          be.
        sNot in a table.isBeginning of row.isEnd of row.sTop of column.sBottom of column.N(R_R`RnRoRRt_getRowHeaderst_getColumnHeaderstgetAccessibleAtRbRaRtisSameObjectR@tskipBlankCellst_isBlankCellRR#(RRRdReRfRgRht
currentRowt
currentColt
desiredRowt
desiredColtrowDifftcolDifft
oldRowHeaderst
oldColHeaderstcellRY((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRcsX









cCs!|p
|i}y|i}WndtgSX|itiotiti	dtgSt}t
i}|i|i
|i|i|i|ig}d}	|i}
|io|
|jo|p|
|ijoy<|i}|i}|io|i||}	nWntiti	qYX|o |ii||o
d}	qYn|	oy|i|	ii|	i|	i|	i|	i |	i!|	i"|	i#|	i$	}
|	i%o
|i&}nd}|p%|i'||
|||\}}n"|i(||
|||\}}t)}|i*|
Wqvt+j
otiti	qvtiti	|i*|
qvXn|pT|i&}|p"|i,||||\}}q|i-||||\}}n|o5|pt.i/t0dq
t.i/t0dn|i1||dS(sThe method used for navigation among StructuralNavigationObjects
        which are not table cells.

        Arguments:
        - structuralNavigationObject: the StructuralNavigationObject which
          represents the object of interest.
        - next: If True, we're interested in the next accessible object
          which matches structuralNavigationObject.  If False, we're 
          interested in the previous accessible object which matches.
        - obj: the current object (typically the locusOfFocus).
        - arg: optional arguments which may need to be passed along to
          the predicate, presentation method, etc. For instance, in the
          case of navigating amongst headings at a given level, the level
          is needed and passed in as arg.
        sWrapping to bottom.sWrapping to top.N(2R]tgetStateRRtcontainsRt
STATE_DEFUNCTRtprintExceptiontLEVEL_SEVERER@twrappedStructuralNavigationtBUTTONt	CHECK_BOXt	COMBO_BOXtENTRYt
FORM_FIELDtRADIO_BUTTONRtcollectionEnabledtCHUNKt_getDocumenttqueryCollectionR"RRtcreateMatchRuleRtrawRRR	R
RRRRRR!t_findPrevByMatchRulet_findNextByMatchRuleRXt
freeMatchRuletNotImplementedErrort_findPrevByPredicatet_findNextByPredicateRnRoRR#(RRR,tobjRYRtsuccesstwraptformObjectsR"RtdocumentRtruleR!twrappedtpred((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRUs		


	

			cCstiS(s}Returns the current object.  Normally, the locusOfFocus. But
        in the case of Gecko, that doesn't always work.
        (t
orca_statetlocusOfFocus(R((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR]scCsX|p
|i}|i}|ii||o|i||}ng}|i}|ititi	gjo|i
|n&x"|o|i
||i}qWdt}	}
|i
|||i|itdt}xh|	p`t|djo|
p|oPqI|o|i|}|i||}
|i|
||i|idt}t}
t|djo'|p||do|d}	q|i
|||i|itdt}qIqt|djog|d|jp|oA||do/|i
|d||i|itdt}qI|d}	qqW|	|
gS(sFinds the previous object using the given match rule as a
        pattern to match or not match.

        Arguments:
        -collection: the accessible collection interface
        -matchRule: the collections match rule to use
        -wrap: if True and the bottom of the document is reached, move
         to the top and keep looking.
        -currentObj: the object from which the search should begin
        -predicate: an optional predicate to further test if the item
         found via collection is indeed a match.

        Returns: [obj, wrapped] where wrapped is a boolean reflecting
        whether wrapping took place.
        iiN(R]RRRt_findNextObjecttparenttgetRoleRt	ROLE_LISTt
ROLE_TABLERBRRtgetMatchesTotSORT_ORDER_CANONICALtTREE_INORDERRXRt_findLastObjectt_findPreviousObjecttgetMatchesFrom(RRt	matchRuleRt
currentObjR!Rt	ancestorsRtmatchRtresultstlastObjt
secondLastObj((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRsx	

			
cCs&|p
|i}g}|ii\}}|i}x"|o|i||i}q:Wdt}	}
x|	p|i|||i|i	dt
}t|djo>|d|jo-|d}|p
||o
|}	qql|o'|
ot
}
|g}|i}qlPqlW|	|
gS(s|Finds the next object using the given match rule as a pattern
        to match or not match.

        Arguments:
        -collection:  the accessible collection interface
        -matchRule: the collections match rule to use
        -wrap: if True and the bottom of the document is reached, move
         to the top and keep looking.
        -currentObj: the object from which the search should begin
        -predicate: an optional predicate to further test if the item
         found via collection is indeed a match.

        Returns: [obj, wrapped] where wrapped is a boolean reflecting
        whether wrapping took place.
        iiN(
R]RtgetCaretContextRRBRRRRRRXRR(RRRRRR!RtoffsetRRRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRs8	

	$
	cCs|p
|i}|i}|ii||o|i||}ng}titig}|i}x"|o|i	||i}qoW|i
||}|dj}	d}
|	o|i|}nx|o|
o||ijo,|ii
|i
jo|i
|j}||jp|o9||o,|	o|ii||oPq|}
q|i
||}|o(|o!|	o|i|}t}	qqW|
|	gS(s}Finds the caret offset at the beginning of the previous object
        using the given predicate as a pattern to match.

        Arguments:
        -pred: a python callable that takes an accessible argument and
               returns true/false based on some match criteria
        -wrap: if True and the top of the document is reached, move
               to the bottom and keep looking.
        -currentObj: the object from which the search should begin
        -arg:  an additional value to be passed to the predicate

        Returns: [obj, wrapped] where wrapped is a boolean reflecting
        whether wrapping took place.
        N(R]RRRRRRRRRBRRRRRX(RRRRRYRRt
nestableRolesRRRtisNested((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRs<	
!
cCsI|p
|i}g}|i}x"|o|i||i}q%W|i}|i||}|dj}d}	|o|i|\}}
nx|o|	o||jo<|||o,|o|ii||oPq:|}	q|i||}|o.|o'|o|i|\}}
t	}qqW|	|gS(sFinds the caret offset at the beginning of the next object
        using the given predicate as a pattern to match or not match.

        Arguments:
        -pred: a python callable that takes an accessible argument and
               returns true/false based on some match criteria
        -wrap: if True and the bottom of the document is reached, move
               to the top and keep looking.
        -currentObj: the object from which the search should begin
        -arg:  an additional value to be passed to the predicate

        Returns: [obj, wrapped] where wrapped is a boolean reflecting
        whether wrapping took place.
        N(
R]RRBRRRt_getCaretPositionRRRX(RRRRRYRRRRRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRUs0	

cCs}d}|id}|djo0|i|}|io||id}qyn'|ii|i|p
|i}n|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
        iiN(RtgetIndexInParentRt
childCountRR(RRtstopAncestortprevObjtindex((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRs



cCsd}|o|io|d}nx|o|i|jox|op|id}d|jo|iijno|i|}q(|ii|i|p
|i}q(Pq(W|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
        iiN(RRRRRR(RRRtnextObjR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRs$
cCs`|p|io|S||id}x0|o(|i||}|o
|}q,Pq,W|S(sReturns the last object in ancestor.

        Arguments:
        - ancestor: the accessible object whose last (child) object
          is sought.
        i(RR(Rtancestort	lastChildR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRs

cCsb|i}|}xI|oA|itijo+y|iWnnX|}|i}qW|S(scReturns the document or other object in which the object of
        interest is contained.
        (R]RRt
ROLE_FRAMEt	queryTextR(RRtlastTextObj((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRscCsP|i}x=|o5|io+|ii|i|otS|i}qWtS(sReturns True if the accessible object obj is inside of
        the document.

        Arguments:
        -obj: the accessible object of interest.
        (RRRRRXR(RRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt
_isInDocumentscCstS(sReturns True if the accessible object obj is an object
        that doesn't have any meaning associated with it. Individual
        scripts should override this method as needed.  Gecko does.

        Arguments:
        - obj: the accessible object of interest.
        (R(RR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_isUselessObjects	cCs<|ii}y|iWndSX|ii|SdS(sReturns a string which contains the table caption, or
        None if a caption could not be found.

        Arguments:
        - obj: the accessible table whose caption we want.
        N(R`tcaptionRRRtgetDisplayedText(RRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_getTableCaptionsc	Csd}|i|}|otdd}n|i}|i}|i}tdd||}tdd||}||d|S(s+Returns a string which describes the table.RsNon-uniformt sTable with %d rowsTable with %d rowss	%d columns
%d columns(t_isNonUniformTableRR`RaRbR(	RRtnonUniformStringt
nonUniformRgRaRbt	rowStringt	colString((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_getTableDescription#s		

c

Csxy|i}Wnn[XxWt|iD]F}|i|\}}}}}}	|djp
|djotSq*WtS(sReturns True if the obj is a non-uniform table (i.e. a table
        where at least one cell spans multiple rows and/or columns).

        Arguments:
        - obj: the table to examine
        i(R`txrangeRtgetRowColumnExtentsAtIndexRXR(
RRRgRLtisCelltrowtcolt
rowExtentst
colExtentst
isSelected((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR@s!	cCsX|oM|itijo7|i}|ii|tig|ig}n|S(sLooks for a table cell in the ancestry of obj, if obj is not a
        table cell.

        Arguments:
        - obj: the accessible object of interest.
        (RRtROLE_TABLE_CELLRRtgetAncestor(RRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR\Us	cCsX|oM|itijo7|i}|ii|tig|ig}n|S(sLooks for a table in the ancestry of obj, if obj is not a table.

        Arguments:
        - obj: the accessible object of interest.
        (RRRRRR(RRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR_ds	cCs|ii|}|o(t|io||ijotSxU|D]M}|ii|}|ot|ip|itijotSqHWt	S(sReturns True if the table cell is empty or consists of whitespace.

        Arguments:
        - obj: the accessible table cell to examime
        (
RRRtstripRRRRt	ROLE_LINKRX(RRttexttchild((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRrs*	cCsjd}|o!|io|ii|}n9x5|D]-}|ii|}|ii||}q5W|S(sLooks at the table cell and tries to get its text.

        Arguments:
        - obj: the accessible table cell to examime
        R(RRRtappendString(RRRRt	childText((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_getCellTextscCs|p|odS|\}}}}|p|pdS|ob|i|oQ|i|}x?|D]3}||jo |i|}	ti|	qhqhWn|ob|i|oQ|i|}
x?|
D]3}||jo |i|}	ti|	qqWndS(sSpeaks the headers of the accessible table cell, cell.

        Arguments:
        - cell: the accessible table cell whose headers we wish to
          present.
        - oldCellInfo: [rowDiff, colDiff, oldRowHeaders, oldColHeaders]
        N(t_isInHeaderRowRRRnRot_isInHeaderColumnR(RRtoldCellInfoRRRRt
rowHeaderstheaderRt
colHeaders((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_presentCellHeaderss&	

cCs|p|itijodS|i|\}}|ii}|i||}|i||}d}|djo/|djo"tdh|d6|d6}nC|djotd|}n"|djotd|}n|S(	sReturns a string reflecting the number of rows and/or columns
        spanned by a table cell when multiple rows and/or columns are
        spanned.

        Arguments:
        - obj: the accessible table cell whose cell span we want.
        NRis0Cell spans %(rows)d rows and %(columns)d columnstrowstcolumnssCell spans %d columnssCell spans %d rows(	RRRR^RR`tgetRowExtentAttgetColumnExtentAtR(RRRRRgtrowspantcolspant
spanString((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_getCellSpanInfos 		


c
Cs|i|}|i|}y|i}Wnn}X|i\}}|i||}|ii||o||gS|ii|}|i|}|i	|}	||	gSddgS(sReturns the [row, col] of a ROLE_TABLE_CELL or [-1, -1]
        if the coordinates cannot be found.

        Arguments:
        - obj: the accessible table cell whose coordinates we want.
        i(
R\R_R`RRRRtgetCellIndext
getRowAtIndextgetColumnAtIndex(
RRRRgRiRjt
lastKnownCellRtthisRowtthisCol((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR^s	
cCsg}|p|Sy|ii}WnnX|i|\}}|i|}|o|i|n|i||}xut|||D]`}xWtd|D]F}	|i||	}
|i|
o|
|jo|i|
qqWqW|S(sReturns a list of table cells that serve as a row header for
        the specified TABLE_CELL.

        Arguments:
        - obj: the accessible table cell whose header(s) we want.
        i(	RR`R^tgetRowHeaderRBRtrangeRt	_isHeader(RRRRgRRRRtrtcR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRs(	cCsg}|p|Sy|ii}WnnX|i|\}}|i|}|o|i|n|i||}xut|||D]`}xWtd|D]F}	|i|	|}
|i|
o|
|jo|i|
qqWqW|S(sReturns a list of table cells that serve as a column header for
        the specified TABLE_CELL.

        Arguments:
        - obj: the accessible table cell whose header(s) we want.
        i(	RR`R^tgetColumnHeaderRBRR&RR'(RRt
columnHeadersRgRRRRR)R(R((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR1s(	cCs|o|itijou|ii}|ii|}|i|}xBt|i	D]-}|i
||}|i|ptSq]Wnt
S(sReturns True if all of the cells in the same row as this cell are
        headers.

        Arguments:
        - obj: the accessible table cell whose row is to be examined.
        (RRRRR`RRR RRbRR'RRX(RRRgRRRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR`s
cCs|o|itijou|ii}|ii|}|i|}xBt|i	D]-}|i
||}|i|ptSq]Wnt
S(sReturns True if all of the cells in the same column as this cell
        are headers.

        Arguments:
        - obj: the accessible table cell whose column is to be examined.
        (RRRRR`RRR!RRaRR'RRX(RRRgRRRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRss
cCsn|ptS|ititigjotS|i}|o'x$|D]}|djotSqJWndS(s}Returns True if the table cell is a header.

        Arguments:
        - obj: the accessible table cell to examine.
        stag:THN(RRRtROLE_TABLE_COLUMN_HEADERtROLE_TABLE_ROW_HEADERRXt
getAttributes(RRt
attributest	attribute((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR's
cCsd}|djo|S|itijoa|i}|djo|Sx@|D]4}|idot|idd}PqSqSWn|S(sDetermines the heading level of the given object.  A value
        of 0 means there is no heading level.

        Arguments:
        - obj: the accessible whose heading level we want.
        islevel:t:iN(RRRtROLE_HEADINGR.t
startswithtinttsplit(RRRNR/R0((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_getHeadingLevels


cCs
|dgS(s@Returns the [obj, characterOffset] where the caret should be
        positioned. For most scripts, the object should not change and
        the offset should be 0.  That's not always the case with Gecko.

        Arguments:
        - obj: the accessible object in which the caret should be
          positioned.
        i((RR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRs
cCsy|i}|i|WnWtj
o5y|iiWqwtitiqwXntitinXti	d|dtdS(sSets the caret at the specified offset within obj.

        Arguments:
        - obj: the accessible object in which the caret should be
          positioned.
        - characterOffset: the offset at which to position the caret.
        tnotifyPresentationManagerN(RtsetCaretOffsetRtqueryComponentt	grabFocusRRRtorcatsetLocusOfFocusRR(RRtcharacterOffsetR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_setCaretPositions	cCs$|ii||ii|dS(sPresents the first line of the object to the user.

        Arguments:
        - obj: the accessible object to be presented.
        - offset: the character offset within obj.
        N(Rt
updateBrailletsayLine(RRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_presentLinescCsr|ii||ii}|itijo|ti}nd}|ii	i
|}ti||dS(sPresents the entire object to the user.

        Arguments:
        - obj: the accessible object to be presented.
        - offset: the character offset within obj.
        N(
RR?tvoicesRRR
R@tHYPERLINK_VOICERtspeechGeneratortgenerateSpeechRnRo(RRRRBtvoicet
utterances((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_presentObjectscCsNh}td}dti|g|d<td}dti|g|d<|S(suReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst anchors.
        sGoes to previous anchor.RR+sGoes to next anchor.R,(RR@tNO_MODIFIER_MASK(RR tprevDesctnextDesc((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_anchorBindingsscCs=tig}tig}|i}t|d|d|d|S(s(Returns the MatchCriteria to be used for locating anchors
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        RRR
(RR
tSTATE_FOCUSABLEt
MATCH_NONER(RRRYtroleRt
stateMatch((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_anchorCriteria6s
		cCsJt}|o9|itijo#|i}|iti}n|S(s"The predicate to be used for verifying that the object
        obj is an anchor.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRR
RRRM(RRRYtisMatchR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_anchorPredicateHs

cCsW|o9|i|\}}|i|||i||ntitddS(s
Presents the anchor or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo more anchors.N(RR>RHRnRoR(RRRYR=((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_anchorPresentationXs
	cCsNh}td}dti|g|d<td}dti|g|d<|S(swReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating among blockquotes.
        sGoes to previous blockquote.tqR+sGoes to next blockquote.R,(RR@tSHIFT_MODIFIER_MASKRI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_blockquoteBindingssscCsdg}t|d|S(s,Returns the MatchCriteria to be used for locating blockquotes
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        stag:BLOCKQUOTER(R(RRRYtattrs((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_blockquoteCriterias
	cCsJ|ptS|i}|o'x$|D]}|djotSq&WntS(s%The predicate to be used for verifying that the object
        obj is a blockquote.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        stag:BLOCKQUOTE(RR.RX(RRRYR/R0((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_blockquotePredicates


cCsW|o9|i|\}}|i|||i||ntitddS(sPresents the blockquote or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo more blockquotes.N(RR>RARnRoR(RRRYR=((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_blockquotePresentations
	cCsNh}td}dti|g|d<td}dti|g|d<|S(suReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst buttons.
        sGoes to previous button.RR+sGoes to next button.R,(RR@RI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_buttonBindingsscCsCtig}titig}|i}t|d|d|d|S(s(Returns the MatchCriteria to be used for locating buttons
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        RRR
(RtROLE_PUSH_BUTTONRMtSTATE_SENSITIVER
R(RRRYRORRP((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_buttonCriterias
		cCs\t}|oK|itijo5|i}|itio|iti}n|S(s!The predicate to be used for verifying that the object
        obj is a button.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRR]RRRMR^(RRRYRRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_buttonPredicates
cCs2|o|iintitddS(s
Presents the button or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo more buttons.N(R9R:RnRoR(RRRY((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_buttonPresentations	cCsNh}td}dti|g|d<td}dti|g|d<|S(syReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst check boxes.
        sGoes to previous check box.RR+sGoes to next check box.R,(RR@RI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_checkBoxBindingsscCsCtig}titig}|i}t|d|d|d|S(s,Returns the MatchCriteria to be used for locating check boxes
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        RRR
(RtROLE_CHECK_BOXRMR^R
R(RRRYRORRP((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_checkBoxCriteria&s
		cCs\t}|oK|itijo5|i}|itio|iti}n|S(s$The predicate to be used for verifying that the object
        obj is a check box.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRRcRRRMR^(RRRYRRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_checkBoxPredicate8s
cCs2|o|iintitddS(s
Presents the check box or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo more check boxes.N(R9R:RnRoR(RRRY((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_checkBoxPresentationJs	cCsNh}td}dti|g|d<td}dti|g|d<|S(sReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst chunks/large objects.
        sGoes to previous large object.toR+sGoes to next large object.R,(RR@RVRI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_chunkBindingscscCs.|i}|i}t|d|d|dtS(s6Returns the MatchCriteria to be used for locating chunks/
        large objects by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        R
RR(tOBJECT_ROLESRRRX(RRRYROt	roleMatch((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_chunkCriteriazs
			cCst}|on|i|ijoXy|i}|i}Wn
d}nX|tijo|i|o
t}q{n|S(s The predicate to be used for verifying that the object
        obj is a chunk.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        i(	RRRiRtcharacterCountR@tlargeObjectTextLengthRRX(RRRYRRRRl((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_chunkPredicates


cCsW|o9|i|\}}|i|||i|dntitddS(s	Presents the chunk or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        isNo more large objects.N(RR>RHRnRoR(RRRYtnewObjR=((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_chunkPresentations
	cCsNh}td}dti|g|d<td}dti|g|d<|S(syReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst combo boxes.
        sGoes to previous combo box.RR+sGoes to next combo box.R,(RR@RI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_comboBoxBindingsscCsCtig}titig}|i}t|d|d|d|S(s,Returns the MatchCriteria to be used for locating combo boxes
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        RRR
(RtROLE_COMBO_BOXRMR^R
R(RRRYRORRP((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_comboBoxCriterias
		cCs\t}|oK|itijo5|i}|itio|iti}n|S(s$The predicate to be used for verifying that the object
        obj is a combo box.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRRrRRRMR^(RRRYRRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_comboBoxPredicates
cCs2|o|iintitddS(s
Presents the combo box or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo more combo boxes.N(R9R:RnRoR(RRRY((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_comboBoxPresentations	cCsNh}td}dti|g|d<td}dti|g|d<|S(suReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst entries.
        sGoes to previous entry.RR+sGoes to next entry.R,(RR@RI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_entryBindings	sc
Csdtititig}|i}tititig}|i}t	|d|d|d|d|S(s(Returns the MatchCriteria to be used for locating entries
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        RRR
R(
Rt
ROLE_ENTRYtROLE_PASSWORD_TEXTt	ROLE_TEXTRRMR^tSTATE_EDITABLER
R(RRRYRORjRRP((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_entryCriteria!	s
			cCs~t}|om|itititigjoH|i}|itio#|iti	o|iti
}n|S(s!The predicate to be used for verifying that the object
        obj is an entry.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRRwRxRyRRRMR^Rz(RRRYRRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_entryPredicate9	s
cCs2|o|iintitddS(s	Presents the entry or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo more entries.N(R9R:RnRoR(RRRY((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_entryPresentationN	s	cCsNh}td}dti|g|d<td}dti|g|d<|S(syReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst form fields.
        sGoes to previous form field.tTabR+sGoes to next form field.R,(RR@tORCA_SHIFT_MODIFIER_MASKR(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_formFieldBindingsg	s
c
CsO|i}|i}titig}|i}t|d|d|d|d|S(s,Returns the MatchCriteria to be used for locating form fields
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        RRR
R(t
FORM_ROLESRRRMR^R
R(RRRYRORjRRP((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_formFieldCriteria{	s
				cCs\t}|oK|i|ijo5|i}|itio|iti}n|S(s%The predicate to be used for verifying that the object
        obj is a form field.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRRRRRMR^(RRRYRRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_formFieldPredicate	s
cCs|ol|ititigjo|iiq|i|\}}|i|||i||nt	i
tddS(sPresents the form field or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo more form fields.N(RRRRrR9R:RR>RHRnRoR(RRRYR=((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_formFieldPresentation	s		c	Csh}td}dti|g|d<td}dti|g|d<g}g}|i\}}xyt||dD]d}td|}|it|ti|gtd|}|it|ti|gq|W||d	<||d
<|S(svReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst headings.
        sGoes to previous heading.thR+sGoes to next heading.R,is%Goes to previous heading at level %d.s!Goes to next heading at level %d.R-R.(RR@RVRIt_headingLevelsR&RBtstr(	RR RJRKtprevAtLevelBindingstnextAtLevelBindingstminLeveltmaxLevelRL((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_headingBindings	s*


cCs
ddgS(sReturns the [minimum heading level, maximum heading level]
        which should be navigable via structural navigation.
        ii((R((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyR	scCsDtig}g}|o|id|nt|d|d|S(s)Returns the MatchCriteria to be used for locating headings
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        slevel:%dR
R(RR2RBR(RRRYRORX((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_headingCriteria	s
	cCsQt}|o@|itijo*|o||i|j}qMt}n|S(s"The predicate to be used for verifying that the object
        obj is a heading.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRR2R6RX(RRRYRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_headingPredicate
s

cCsy|o9|i|\}}|i|||i||n6|ptitdntitd|dS(sPresents the heading or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo more headings.sNo more headings at level %d.N(RR>RHRnRoR(RRRYR=((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_headingPresentation
s	cCsNh}td}dti|g|d<td}dti|g|d<|S(swReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst landmarks.
        sGoes to previous landmark.tmR+sGoes to next landmark.R,(RR@RVRI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_landmarkBindings;
scCs;g}x"tiD]}|id|qWt|d|S(s*Returns the MatchCriteria to be used for locating landmarks
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        s
xml-roles:R(R@t
ariaLandmarksRBR(RRRYRXR|((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_landmarkCriteriaQ
s

c	Cs|djotStg}|iD]}||iddq&~}yBddk}|i|di|iti	ot
StSWntj
otSXdS(s#The predicate to be used for verifying that the object
        obj is a landmark.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        R1iiNs	xml-roles(RRtdictR.R5tsetstSettintersectionR@RRXtKeyError(RRRYt_[1]tattrRXR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_landmarkPredicatek
s

9cCsW|o9|i|\}}|i|||i||ntitddS(sPresents the landmark or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo landmark found.N(RR>RHRnRoR(RRRYR=((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_landmarkPresentation
s
	cCsNh}td}dti|g|d<td}dti|g|d<|S(sReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst (un)ordered lists.
        sGoes to previous list.tlR+sGoes to next list.R,(RR@RVRI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt
_listBindings
scCs=tig}tig}|i}t|d|d|d|S(s2Returns the MatchCriteria to be used for locating (un)ordered
        lists by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        RRR
(RRRMRNR(RRRYRORRP((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt
_listCriteria
s
		cCsDt}|o3|itijo|iiti}n|S(s,The predicate to be used for verifying that the object
        obj is an (un)ordered list.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRRRRRM(RRRYRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_listPredicate
s
c	Cs|od}x2|D]*}|itijo|d7}qqWtdd||}ti|d}|i}x.|itijo|d7}|i}qwW|otitd|n|i	|\}}|i
|||i||ntitddS(sPresents the (un)ordered list or indicates that one was not
        found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        iisList with %d itemsList with %d itemssNesting level %dsNo more lists.N(RRtROLE_LIST_ITEMRRnRoRRRRR>RA(	RRRYtnItemsRt
itemStringtnestingLevelRR=((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_listPresentation
s,


	
cCsNh}td}dti|g|d<td}dti|g|d<|S(sReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst items in an (un)ordered list.
        sGoes to previous list item.RLR+sGoes to next list item.R,(RR@RVRI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_listItemBindingsscCs=tig}tig}|i}t|d|d|d|S(s=Returns the MatchCriteria to be used for locating items in an
        (un)ordered list by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        RRR
(RRRMRNR(RRRYRORRP((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_listItemCriterias
		cCsDt}|o3|itijo|iiti}n|S(s7The predicate to be used for verifying that the object
        obj is an item in an (un)ordered list.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRRRRRM(RRRYRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_listItemPredicate,s
cCsW|o9|i|\}}|i|||i||ntitddS(s!Presents the (un)ordered list item or indicates that one was not
        found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo more list items.N(RR>RARnRoR(RRRYR=((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_listItemPresentation=s

cCsph}td}dti|g|d<td}dti|g|d<td}dti|g|d<|S(	szReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst live regions.
        sGoes to previous live region.R(R+sGoes to next live region.R,sGoes to last live region.tyR9(RR@RVRI(RR RJRKtdesc((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_liveRegionBindings]scCsIt}|iii}|iii|p
||jo
t}n|S(s&The predicate to be used for verifying that the object
        obj is a live region.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRltgetLiveNoneObjectstmatchLiveRegionRX(RRRYRRtregobjs((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_liveRegionPredicaters

#
cCs|oi|itijo
d}n|i|\}}|i|||i|||ii|nti	t
ddS(sPresents the live region or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        isNo more live regions.N(RRRRR>RHRtoutlineAccessibleRnRoR(RRRYR=((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_liveRegionPresentations	
cCsNh}td}dti|g|d<td}dti|g|d<|S(sxReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst paragraphs.
        sGoes to previous paragraph.tpR+sGoes to next paragraph.R,(RR@RVRI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_paragraphBindingsscCs"tig}t|d|dtS(s+Returns the MatchCriteria to be used for locating paragraphs
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        R
R(RtROLE_PARAGRAPHRRX(RRRYRO((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_paragraphCriterias
cCsTt}|oC|itijo-y|i}|idj}WqPqPXn|S(s$The predicate to be used for verifying that the object
        obj is a paragraph.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        i(RRRRRRl(RRRYRRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_paragraphPredicates
cCsW|o9|i|\}}|i|||i|dntitddS(s
Presents the paragraph or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        isNo more paragraphs.N(RR>RHRnRoR(RRRYRoR=((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_paragraphPresentations
	cCsNh}td}dti|g|d<td}dti|g|d<|S(s{Returns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst radio buttons.
        sGoes to previous radio button.RR+sGoes to next radio button.R,(RR@RI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_radioButtonBindingsscCsCtig}titig}|i}t|d|d|d|S(s.Returns the MatchCriteria to be used for locating radio buttons
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        RRR
(RtROLE_RADIO_BUTTONRMR^R
R(RRRYRORRP((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_radioButtonCriteria	s
		cCs\t}|oK|itijo5|i}|itio|iti}n|S(s'The predicate to be used for verifying that the object
        obj is a radio button.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRRRRRMR^(RRRYRRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_radioButtonPredicates
cCs2|o|iintitddS(sPresents the radio button or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo more radio buttons.N(R9R:RnRoR(RRRY((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_radioButtonPresentation-s	cCsNh}td}dti|g|d<td}dti|g|d<|S(stReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst tables.
        sGoes to previous table.ttR+sGoes to next table.R,(RR@RVRI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_tableBindingsFscCs"tig}t|d|dtS(s'Returns the MatchCriteria to be used for locating tables
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        R
R(RRRRX(RRRYRO((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_tableCriteriaVs
cCsP|oE|io;|itijo%y|iidjSWqLqLXntS(s The predicate to be used for verifying that the object
        obj is a table.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        i(RRRRR`RaR(RRRY((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_tablePredicatecs
'cCs|o|i|}|oti|nti|i||iidd}ddg|_|i|\}}|i|||i	||ntit
ddS(s	Presents the table or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        isNo more tables.N(RRnRoRR`RRRR>RHR(RRRYRRR=((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_tablePresentationus	cCsh}td}dti|g|d<td}dti|g|d<td}dti|g|d	<td
}dti|g|d<td
}dti|g|d<td}dti|g|d<|S(sReturns a dictionary of [keysymstring, modifiers, description]
        lists for navigating spatially amongst table cells.
        sGoes left one cell.R0R/sGoes right one cell.R2R1sGoes up one cell.R4R3sGoes down one cell.R6R5s"Goes to the first cell in a table.tHomeR7s!Goes to the last cell in a table.tEndR9(RR@tSHIFT_ALT_MODIFIER_MASK(RR R((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_tableCellBindingsscCstig}t|d|S(s,Returns the MatchCriteria to be used for locating table cells
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        R
(RRR(RRRYRO((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_tableCellCriterias
cCs|o|itijS(s%The predicate to be used for verifying that the object
        obj is a table cell.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRR(RRRY((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_tableCellPredicates
c	Cs!|pdStio|i||n|i|\}}|i|||ii||i|}|p|i|dnt	i
tdtioF|i
|\}}t	i
tdh|dd6|dd6n|i|}|otiot	i
|ndS(sPresents the table cell or indicates that one was not found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        NitblanksRow %(row)d, column %(column)d.iRtcolumn(R@tspeakCellHeadersRRR>RR?RRHRnRoRtspeakCellCoordinatesR^Rt
speakCellSpan(	RRRYRR=RRRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_tableCellPresentations$	

"cCsNh}td}dti|g|d<td}dti|g|d<|S(s}Returns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst unvisited links.
        s Goes to previous unvisited link.tuR+sGoes to next unvisited link.R,(RR@RVRI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_unvisitedLinkBindingsscCs=tig}tig}|i}t|d|d|d|S(s0Returns the MatchCriteria to be used for locating unvisited links
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        RRR
(RR
t
STATE_VISITEDRNR(RRRYRORRP((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_unvisitedLinkCriteria
s
		cCsDt}|o3|itijo|iiti}n|S(s*The predicate to be used for verifying that the object
        obj is an unvisited link.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRR
RRR(RRRYRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_unvisitedLinkPredicate 
s
cCs2|o|iintitddS(sPresents the unvisited link or indicates that one was not
        found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo more unvisited links.N(R9R:RnRoR(RRRY((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_unvisitedLinkPresentation1
s
cCsNh}td}dti|g|d<td}dti|g|d<|S(s{Returns a dictionary of [keysymstring, modifiers, description]
        lists for navigating amongst visited links.
        sGoes to previous visited link.tvR+sGoes to next visited link.R,(RR@RVRI(RR RJRK((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_visitedLinkBindingsQ
scCs=tig}tig}|i}t|d|d|d|S(s.Returns the MatchCriteria to be used for locating visited links
        by collection.

        Arguments:
        - collection: the collection interface for the document
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        RRR
(RR
RRR(RRRYRORRP((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_visitedLinkCriteriac
s
		cCsCt}|o2|itijo|iiti}n|S(s'The predicate to be used for verifying that the object
        obj is a visited link.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        (RRRR
RRR(RRRYRR((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_visitedLinkPredicateu
s
cCs2|o|iintitddS(sPresents the visited link or indicates that one was not
        found.

        Arguments:
        - obj: the accessible object under consideration.
        - arg: an optional argument which may need to be included in
          the criteria (e.g. the level of a heading).
        sNo more visited links.N(R9R:RnRoR(RRRY((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt_visitedLinkPresentation
s	N(RRRtANCHORt
BLOCKQUOTERRRRRRtHEADINGtLANDMARKtLISTt	LIST_ITEMRrt	PARAGRAPHRtTABLERqtUNVISITED_LINKtVISITED_LINKR@t
useCollectionRRRcRRrRRwRxR]tROLE_SPIN_BUTTONRyRR2RRRtROLE_SECTIONtROLE_DOCUMENT_FRAMERiRRRRRRRRcRRUR]RRRRRRRRRRRRRR\R_RRRRR^RRRRR'R6RR>RARHRLRQRSRTRWRYRZR[R\R_R`RaRbRdReRfRhRkRnRpRqRsRtRuRvR{R|R}RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR(((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyRps2	&	%				(	_	_/:,														"	(	"	/	/								:		
						$	'	"		4	 	#	
		
 	 
	.	 	(Rt__id__t__version__t__date__t
__copyright__t__license__RRRR<R%R;RR@Rnt	orca_i18nRRRRRp(((s>/usr/lib/python2.6/site-packages/orca/structural_navigation.pyt<module>s(H!

Youez - 2016 - github.com/yon3zu
LinuXploit