File indexing completed on 2025-01-30 09:32:48
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #ifndef __ATK_DOCUMENT_H__
0021 #define __ATK_DOCUMENT_H__
0022
0023 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined(__ATK_H_INSIDE__) && !defined(ATK_COMPILATION)
0024 #error "Only <atk/atk.h> can be included directly."
0025 #endif
0026
0027 #include <atk/atkobject.h>
0028 #include <atk/atkutil.h>
0029
0030 G_BEGIN_DECLS
0031
0032
0033
0034
0035
0036
0037
0038 #define ATK_TYPE_DOCUMENT (atk_document_get_type ())
0039 #define ATK_IS_DOCUMENT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_DOCUMENT)
0040 #define ATK_DOCUMENT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_DOCUMENT, AtkDocument)
0041 #define ATK_DOCUMENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_DOCUMENT, AtkDocumentIface))
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075 typedef struct _AtkTextSelection AtkTextSelection;
0076 struct _AtkTextSelection
0077 {
0078 AtkObject *start_object;
0079 gint start_offset;
0080 AtkObject *end_object;
0081 gint end_offset;
0082 gboolean start_is_active;
0083 };
0084
0085 #ifndef _TYPEDEF_ATK_DOCUMENT_
0086 #define _TYPEDEF_ATK_DOCUMENT_
0087 typedef struct _AtkDocument AtkDocument;
0088 #endif
0089 typedef struct _AtkDocumentIface AtkDocumentIface;
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104
0105
0106
0107
0108
0109
0110 struct _AtkDocumentIface
0111 {
0112 GTypeInterface parent;
0113 const gchar *(*get_document_type) (AtkDocument *document);
0114 gpointer (*get_document) (AtkDocument *document);
0115
0116 const gchar *(*get_document_locale) (AtkDocument *document);
0117 AtkAttributeSet *(*get_document_attributes) (AtkDocument *document);
0118 const gchar *(*get_document_attribute_value) (AtkDocument *document,
0119 const gchar *attribute_name);
0120 gboolean (*set_document_attribute) (AtkDocument *document,
0121 const gchar *attribute_name,
0122 const gchar *attribute_value);
0123 gint (*get_current_page_number) (AtkDocument *document);
0124 gint (*get_page_count) (AtkDocument *document);
0125 GArray *(*get_text_selections) (AtkDocument *document);
0126 gboolean (*set_text_selections) (AtkDocument *document, GArray *selections);
0127 };
0128
0129 ATK_AVAILABLE_IN_ALL
0130 GType atk_document_get_type (void);
0131
0132 ATK_DEPRECATED_IN_2_12
0133 const gchar *atk_document_get_document_type (AtkDocument *document);
0134
0135 ATK_DEPRECATED_IN_2_12
0136 gpointer atk_document_get_document (AtkDocument *document);
0137
0138 ATK_DEPRECATED_IN_2_8_FOR (atk_object_get_object_locale)
0139 const gchar *atk_document_get_locale (AtkDocument *document);
0140
0141 ATK_AVAILABLE_IN_ALL
0142 AtkAttributeSet *atk_document_get_attributes (AtkDocument *document);
0143 ATK_AVAILABLE_IN_ALL
0144 const gchar *atk_document_get_attribute_value (AtkDocument *document,
0145 const gchar *attribute_name);
0146 ATK_AVAILABLE_IN_ALL
0147 gboolean atk_document_set_attribute_value (AtkDocument *document,
0148 const gchar *attribute_name,
0149 const gchar *attribute_value);
0150 ATK_AVAILABLE_IN_2_12
0151 gint atk_document_get_current_page_number (AtkDocument *document);
0152 ATK_AVAILABLE_IN_2_12
0153 gint atk_document_get_page_count (AtkDocument *document);
0154
0155 G_END_DECLS
0156
0157 ATK_AVAILABLE_IN_2_52
0158 GArray *atk_document_get_text_selections (AtkDocument *document);
0159
0160 ATK_AVAILABLE_IN_2_52
0161 gboolean atk_document_set_text_selections (AtkDocument *document, GArray *selections);
0162 #endif