Atspi.Document¶
- Implementations:
Methods¶
|
|
|
|
|
Virtual Methods¶
None
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Atspi.Document¶
- Bases:
- get_current_page_number()¶
- Raises:
- Returns:
a
intindicating the current page number in the #AccessibleDocument object.- Return type:
Gets the current page number of an #AccessibleDocument object.
- get_document_attribute_value(attribute)¶
- Parameters:
attribute (
str) – a string indicating the name of a specific attribute.- Raises:
- Returns:
a string corresponding to the value of the specified attribute, or an empty string if the attribute is unspecified for the object.
- Return type:
Gets the value of a single attribute, if specified for the document as a whole.
Deprecated since version 2.10: Use
Atspi.Document.get_document_attribute_valueinstead.
- get_document_attributes()¶
- Raises:
- Returns:
a
GLib.HashTablecontaining the constant attributes of the document, as name-value pairs.- Return type:
Gets all constant attributes for the document as a whole. For attributes that change within the document content, see atspi_text_get_attribute_run instead.
Deprecated since version 2.10: Use
Atspi.Document.get_document_attributesinstead.
- get_locale()¶
- Raises:
- Returns:
a string compliant with the POSIX standard for locale description.
- Return type:
Gets the locale associated with the document’s content, e.g. the locale for LOCALE_TYPE_MESSAGES.
- get_page_count()¶
- Raises:
- Returns:
a
intindicating the page count of an #AccessibleDocument object.- Return type:
Gets the page count of an #AccessibleDocument object.
- get_text_selections()¶
- Raises:
- Returns:
a
GLib.ArrayofAtspi.TextSelectionstructures representing the selection.- Return type:
Returns an array of AtspiTextSelections within this document.
New in version 2.52.
- set_text_selections(selections)¶
- Parameters:
selections ([
Atspi.TextSelection]) – aGLib.Arrayof AtspiTextSelections to be selected.- Raises:
- Returns:
Trueif the selection was made successfully;Falseotherwise.- Return type:
Makes 1 or more selections within this document denoted by the given array of AtspiTextSelections. Any existing physical selection (inside or outside this document) is replaced by the new selections. All objects within the given selection ranges must be descendants of this document. Otherwise
Falsewill be returned.New in version 2.52.