| 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 : /proc/11490/root/usr/lib/python2.6/site-packages/orca/ |
Upload File : |
z#Jc @ s 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 Z d d k l Z d d k l Z d
f d YZ d f d
YZ d f d YZ d S( s Implements 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.t LGPLiN( t _( t ngettextt
MatchCriteriac B s5 e Z d Z g d g d g d d d e e d
Z RS( s Contains 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.
t c
C s | | _ | p | i | _ | | _ | p | i | _ | | _ | p | i | _ | | _ | p | i | _ |
| _
| | _ t i
| _ x | D] } | i i | q Wd S( s Creates 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_ANYt matchStatest objAttrst
matchObjAttrst rolest
matchRolest
interfacest MATCH_ALLt matchInterfacest invertt applyPredicatet pyatspit StateSett statest add(
t selfR R R R R R
R R R R R t state( ( s>