Update Scottish Gaelic translation
[platform/upstream/atk.git] / atk / atkhypertext.h
old mode 100755 (executable)
new mode 100644 (file)
index f954027..6a1ef9a
 #ifndef __ATK_HYPERTEXT_H__
 #define __ATK_HYPERTEXT_H__
 
+#if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
+#error "Only <atk/atk.h> can be included directly."
+#endif
+
 #include <atk/atkobject.h>
 #include <atk/atkhyperlink.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
-/* The AtkHypertext class is the base class for all classes that present 
- * hypertext information on the display. This class provides the standard 
- * mechanism for an assistive technology to access that text via its 
- * content, attributes, and spatial location. It also provides standard 
- * mechanisms for manipulating hyperlinks.
- *
- * I do not think that there is a GTK+ widget for this but I assume that 
- * there will be a custom widget so we define the interface.
+/*
+ * The AtkHypertext interface provides standard  mechanisms for manipulating 
+ * hyperlinks.
  */
 
 #define ATK_TYPE_HYPERTEXT                    (atk_hypertext_get_type ())
@@ -58,19 +55,24 @@ struct _AtkHypertextIface
   gint         (* get_link_index)           (AtkHypertext       *hypertext,
                                              gint               char_index);
 
+  /*
+   * signal handlers
+   */
+  void         (* link_selected)            (AtkHypertext       *hypertext,
+                                             gint               link_index);
 };
+ATK_AVAILABLE_IN_ALL
 GType atk_hypertext_get_type (void);
 
+ATK_AVAILABLE_IN_ALL
 AtkHyperlink* atk_hypertext_get_link       (AtkHypertext *hypertext,
                                             gint          link_index);
+ATK_AVAILABLE_IN_ALL
 gint          atk_hypertext_get_n_links    (AtkHypertext *hypertext);
+ATK_AVAILABLE_IN_ALL
 gint          atk_hypertext_get_link_index (AtkHypertext *hypertext,
                                             gint          char_index);
 
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __ATK_HYPERTEXT_H__ */