AccessibleDocument Interface

AccessibleDocument Interface — Interface implemented by a container whose contents represents a 'document' from an end-user perspective.

Synopsis




void        AccessibleDocument_ref          (AccessibleDocument *obj);
void        AccessibleDocument_unref        (AccessibleDocument *obj);
char*       AccessibleDocument_getAttributeValue
                                            (AccessibleDocument *obj,
                                             char *attribute);
AccessibleAttributeSet* AccessibleDocument_getAttributes
                                            (AccessibleDocument *obj);
char*       AccessibleDocument_getLocale    (AccessibleDocument *obj);

Description

Primarily a 'tagging' interface which indicates the start of document content in the Accessibility hierarchy. Accessible objects below the node implementing AccessibleDocument are normally assumed to be part of the document content. Attributes of AccessibleDocument are those attributes associated with the document as a whole.

Details

AccessibleDocument_ref ()

void        AccessibleDocument_ref          (AccessibleDocument *obj);

Increment the reference count for an AccessibleDocument object.

obj : a pointer to the AccessibleDocument object on which to operate.

AccessibleDocument_unref ()

void        AccessibleDocument_unref        (AccessibleDocument *obj);

Decrement the reference count for an AccessibleDocument object.

obj : a pointer to the Accessible object on which to operate.

AccessibleDocument_getAttributeValue ()

char*       AccessibleDocument_getAttributeValue
                                            (AccessibleDocument *obj,
                                             char *attribute);

Gets the value of a single attribute, if specified for the document as a whole.

(name-value pair) being queried.

obj : a pointer to the Accessible object on which to operate.
attribute : a string indicating the name of a specific attribute
Returns : a string corresponding to the value of the specified attribute, or an empty string if the attribute is unspecified for the object.

AccessibleDocument_getAttributes ()

AccessibleAttributeSet* AccessibleDocument_getAttributes
                                            (AccessibleDocument *obj);

Gets all attributes specified for a document as a whole.

For attributes which change within the document content, see Accessibility::Text::getAttributes instead.

obj : a pointer to the Accessible object on which to operate.
Returns : an ::AttributeSet containing the attributes of the document, as name-value pairs. Since AT-SPI 1.8.0

AccessibleDocument_getLocale ()

char*       AccessibleDocument_getLocale    (AccessibleDocument *obj);

Gets the locale associated with the document's content. e.g. the locale for LOCALE_TYPE_MESSAGES.

obj : a pointer to the Accessible object on which to operate.
Returns : a string compliant with the POSIX standard for locale description.