| Trees | Indices | Help |
|---|
|
|
object --+
|
baseObject.AutoPropertyObject --+
|
TextInfo --+
|
OffsetsTextInfo
An abstract TextInfo for text implementations which represent ranges using numeric offsets relative to the start of the text.
In such implementations, the start of the text is represented by 0 and the end is the length of the entire text.
All subclasses must implement L{_getStoryLength}.
Aside from this, there are two possible implementations:
* If the underlying text implementation does not support retrieval of line offsets, L{_getStoryText} should be implemented.
In this case, the base implementation of L{_getLineOffsets} will retrieve the entire text of the object and use text searching algorithms to find line offsets.
This is very inefficient and should be avoided if possible.
* Otherwise, subclasses must implement at least L{_getTextRange} and L{_getLineOffsets}.
Retrieval of other offsets (e.g. L{_getWordOffsets}) should also be implemented if possible for greatest accuracy and efficiency.
If a caret and/or selection should be supported, L{_getCaretOffset} and/or L{_getSelectionOffsets} should be implemented, respectively.
To support conversion from/to screen points (e.g. for mouse tracking), L{_getOffsetFromPoint}/L{_getPointFromOffset} should be implemented.
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| unicode |
|
||
| unicode |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| bool |
|
||
|
|||
|
|||
|
|||
| int |
|
||
|
|||
| list of unicode and FieldCommand |
|
||
| unicode |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| bool |
|
||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
detectFormattingAfterCursorMaybeSlow = Truehonours documentFormatting config option if true - set to false if this is not at all slow. |
|||
useUniscribe = True
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Retrieve the entire text of the object.
|
Retrieve the text in a given offset range.
|
Retrieve the formatting information for a given offset and the offsets spanned by that field. Subclasses must override this if support for text formatting is desired. The base implementation associates text with line numbers if possible. |
Constructor. Subclasses may extend this to perform implementation specific initialisation, calling their superclass method afterwards.
|
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
|
|
Collapses this text info object so that both endpoints are the same.
|
Expands the start and end of this text info object to a given unit
|
duplicates this text info object so that changes can be made to either one with out afecting the other
|
compares one end of this range to one end of another range. Subclasses must implement this.
|
Sets one end of this range to one end of another range. Subclasses must implement this.
|
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.
|
The text with in this range. Subclasses must implement this.
|
|
|
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.
|
Moves the system caret to the position of this text info object
|
Moves the selection (usually the system caret) to the position of this text info object
|
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Nov 18 17:45:59 2011 | http://epydoc.sourceforge.net |