Interface

Atk-1.0AtkDocumentInterface

Interface for implementing Document. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_get_current_page_number(): number;
    vfunc_get_document(): any;
    vfunc_get_document_attribute_value(attribute_name: string): string;
    vfunc_get_document_attributes(): SList;
    vfunc_get_document_locale(): string;
    vfunc_get_document_type(): string;
    vfunc_get_page_count(): number;
    vfunc_get_text_selections(): Atk.TextSelection[];
    vfunc_set_document_attribute(
        attribute_name: string,
        attribute_value: string,
    ): boolean;
    vfunc_set_text_selections(selections: Atk.TextSelection[]): boolean;
}

Hierarchy (View Summary)

Index

Methods

  • Retrieves the current page number inside document.

    Returns number

  • Gets a %gpointer that points to an instance of the DOM. It is up to the caller to check atk_document_get_type to determine how to cast this pointer.

    Returns any

  • Retrieves the value of the given attribute_name inside document.

    Parameters

    • attribute_name: string

      a character string representing the name of the attribute whose value is being queried.

    Returns string

  • Gets a UTF-8 string indicating the POSIX-style LC_MESSAGES locale of the content of this document instance. Individual text substrings or images within this document may have a different locale, see atk_text_get_attributes and atk_image_get_image_locale.

    Returns string

  • Retrieves the total number of pages inside document.

    Returns number

  • Sets the value for the given attribute_name inside document.

    Parameters

    • attribute_name: string

      a character string representing the name of the attribute whose value is being set.

    • attribute_value: string

      a string value to be associated with attribute_name.

    Returns boolean

  • Makes 1 or more selections within this document denoted by the given array of AtkTextSelections. 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 FALSE will be returned.

    Parameters

    Returns boolean