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/scripts/toolkits/Gecko/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyc
y#Jc@skdZdZdZdZdZdZddkZddkiZddk	i
Z
deifd	YZdS(
s3Custom structural navigation for the Gecko toolkit.s$Id$s
$Revision$s$Date$s-Copyright (c) 2005-2008 Sun Microsystems Inc.tLGPLiNtGeckoStructuralNavigationcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
d
dZRS(cCstii||||dS(s%Gecko specific Structural Navigation.N(tstructural_navigationtStructuralNavigationt__init__(tselftscripttenabledTypestenabled((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyR)scCs|ii\}}|S(s~Returns the current object -- normally, the locusOfFocus. But
        in the case of Gecko, that doesn't always work.
        (t_scripttgetCaretContext(Rtobjtoffset((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pytgetCurrentObject7scCs|ii||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	tfindPreviousObject(RRtstopAncestor((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt_findPreviousObject?s
cCs|ii||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	tfindNextObject(RRR((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt_findNextObjectKs
cCs|ii|S(sReturns the last object in ancestor.

        Arguments:
        - ancestor: the accessible object whose last (child) object
          is sought.
        (R	t
getLastObject(Rtancestor((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt_findLastObjectWscCs
|iiS(scReturns the document or other object in which the object of
        interest is contained.
        (R	tgetDocumentFrame(R((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt_getDocumentascCs|ii|S(s5Returns True of the object is inside of the document.(R	tinDocumentContent(RR((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt
_isInDocumenthscCst|ii|d\}}|itijo9|iitio|ii||\}}n||fS(sYReturns the [obj, characterOffset] where the caret should be
        positioned.
        i(	R	tfindFirstCaretContexttgetRoletpyatspit	ROLE_LINKtgetStatetcontainstSTATE_FOCUSABLEtfindNextCaretInOrder(RRR((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt_getCaretPositionms
cCs|ii||dS(s2Sets the caret at the specified offset within obj.N(R	tsetCaretPosition(RRtcharacterOffset((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt_setCaretPosition|scCs|ii|S(smReturns true if the given object is an obj that doesn't
        have any meaning associated with it.
        (R	tisUselessObject(RR((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt_isUselessObjectscCs|ii||dS(s2Presents the first line of the object to the user.N(R	tpresentLine(RRR((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt_presentLinescCsq|itijo"y|iiWq8q8Xn|ii||ii||}|ii|dS(s'Presents the entire object to the user.N(	RRRtqueryComponentt	grabFocusR	t
updateBrailletgetObjectContentsAtOffsett
speakContents(RRRtcontents((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt_presentObjectsc
Cs|i}||ijotS|ii}|titigjo|ii	ti
pd}x|D]|}y|i}Wn
d}nX|pqln|i
dd}|i|p&||i7}|tijotSqlqlWntSy|i}WntSX|o|itijo|i
ddid}t|i|}	|	|idjotS|dti!}t|i|}	|	t|djSndS(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).
        iisUTF-8g?g{Gzt?N(RtOBJECT_ROLEStFalseR	tEMBEDDED_OBJECT_CHARACTERRt	ROLE_LISTt
ROLE_TABLERRR t	queryTexttNonetgetTexttcounttcharacterCounttsettingstlargeObjectTextLengthtTruetdecodetfloattlen(
RRtargtroletembeddedObjectChart	charCounttchildttexttstringteocs((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt_chunkPredicatesD



N(t__name__t
__module__RR
RRRRRR"R%R'R)R0R7RI(((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyR's					
					
		(
t__doc__t__id__t__version__t__date__t
__copyright__t__license__Rtorca.structural_navigationRt
orca.settingsR;RR(((sU/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/structural_navigation.pyt<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit