| Trees | Indices | Help |
|---|
|
|
object --+
|
baseObject.AutoPropertyObject --+
|
TextInfo
Provides information about a range of text in an object and facilitates access to all text in the widget.
A TextInfo represents a specific range of text, providing access to the text itself, as well as information about the text such as its formatting and any associated controls.
This range can be moved within the object's text relative to the initial position.
At a minimum, subclasses must:
* Extend the constructor so that it can set up the range at the specified position.
* Implement the L{move}, L{expand}, L{compareEndPoints}, L{setEndPoint} and L{copy} methods.
* Implement the L{text} and L{bookmark} attributes.
* Support at least the L{UNIT_CHARACTER}, L{UNIT_WORD} and L{UNIT_LINE} units.
* Support at least the L{POSITION_FIRST}, L{POSITION_LAST} and L{POSITION_ALL} positions.
If an implementation should support tracking with the mouse,
L{Points} must be supported as a position.
To support routing to a screen point from a given position, L{pointAtStart} must be implemented.
In order to support text formatting or control information, L{getTextWithFields} should be overridden.
@ivar bookmark: A unique identifier that can be used to make another textInfo object at this position.
@type bookmark: L{Bookmark}
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
| unicode |
|
||
| list of unicode and FieldCommand |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| bool |
|
||
|
|||
| bool |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| int |
|
||
| bool |
|
||
|
|||
|
|||
|
|||
| bool |
|
||
| generator of str |
|
||
|
|||
|
|||
| NVDAObjects.NVDAObject |
|
||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Constructor. Subclasses must extend this, calling the superclass method first.
|
The text with in this range. Subclasses must implement this.
Note: The text is not guaranteed to be the exact length of the range in offsets. |
Retreaves the text in this range, as well as any control/format fields associated therewith. Subclasses may override this. The base implementation just returns the text.
|
|
|
compares one end of this range to one end of another range. Subclasses must implement this.
|
Determines whether this object overlaps another object in any way. Note that collapsed objects can cause some confusion. For example, in terms of offsets, (4, 4) and (4, 5) are not considered as overlapping. Therefore, collapsed objects should probably be expanded to at least 1 character when using this method.
|
Sets one end of this range to one end of another range. Subclasses must implement this.
|
|
Expands the start and end of this text info object to a given unit
|
Collapses this text info object so that both endpoints are the same.
|
Moves one or both of the endpoints of this object by the given unit and direction.
|
Locates the given text and positions this TextInfo object at the start.
|
retreaves the NVDAObject related to the start of the range. Usually it is just the owner NVDAObject, but in the case of virtualBuffers it may be a descendant object.
|
Retrieves x and y coordinates corresponding with the textInfo start. It should return Point |
Text suitably formatted for copying to the clipboard. E.g. crlf characters inserted between lines. |
Copy the content of this instance to the clipboard.
|
Retrieve the text of this instance in chunks of a given unit.
|
Retrieve the embedded object associated with a particular embedded object character. Where a text implementation allows other objects to be embedded in the text, embedded objects are represented by an embedded object character (\uFFFC). When these characters are encountered, this method can be used to retrieve the associated embedded object.
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Nov 18 17:45:59 2011 | http://epydoc.sourceforge.net |