atktext: remove 'text-update' signal
[platform/upstream/atk.git] / atk / atkhyperlink.h
index a0c6025..c1bd0bf 100755 (executable)
  * Boston, MA 02111-1307, USA.
  */
 
+#if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
+#error "Only <atk/atk.h> can be included directly."
+#endif
+
 #ifndef __ATK_HYPERLINK_H__
 #define __ATK_HYPERLINK_H__
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
 #include <atk/atkaction.h>
 
+G_BEGIN_DECLS
+
 /*
  * AtkHyperlink encapsulates a link or set of links in a hypertext document.
  *
@@ -33,7 +35,7 @@ extern "C" {
  */
 
 /**
- *AtkHyperlinkStateFlags
+ *AtkHyperlinkStateFlags:
  *@ATK_HYPERLINK_IS_INLINE: Link is inline
  *
  *Describes the type of link
@@ -62,51 +64,20 @@ struct _AtkHyperlinkClass
 {
   GObjectClass parent;
 
-  /*
-   * Returns a string specifying the URI associated with the nth anchor
-   * of this link.
-   */
   gchar*           (* get_uri)             (AtkHyperlink     *link_,
                                             gint             i);
-  /*
-   * Returns an object which represents the link action, as appropriate for 
-   * that link.
-   */
   AtkObject*       (* get_object)          (AtkHyperlink     *link_,
                                             gint             i);
-  /*
-   * Gets the index with the hypertext document at which this link ends
-   */
   gint             (* get_end_index)       (AtkHyperlink     *link_);
-
-  /* 
-   * Gets the index with the hypertext document at which this link begins 
-   */
   gint             (* get_start_index)     (AtkHyperlink     *link_);
-
-  /*
-   * Since the document a link is associated with may have changed, this 
-   * method returns whether or not this link is still valid (with respect
-   * to the document is references)
-   */
   gboolean         (* is_valid)            (AtkHyperlink     *link_);
-
-  /* 
-   * Returns the number of anchors associated with this link
-   */
   gint            (* get_n_anchors)       (AtkHyperlink     *link_);
-
-  /*
-   * Returns a set of bitflags which encode state information.
-   * Used by non-virtualized state query methods, not intended,
-   * for direct client use.  It is virtualized, but clients should use
-   * atk_hyperlink_is_inline (), etc.
-   */
   guint                   (* link_state)          (AtkHyperlink     *link_);
-  
+  gboolean         (* is_selected_link)    (AtkHyperlink     *link_);
+
+  /* Signals */
+  void             ( *link_activated)      (AtkHyperlink     *link_);
   AtkFunction      pad1;
-  AtkFunction      pad2;
-  AtkFunction      pad3;
 };
 
 GType            atk_hyperlink_get_type             (void);
@@ -127,10 +98,9 @@ gboolean         atk_hyperlink_is_inline             (AtkHyperlink     *link_);
 
 gint            atk_hyperlink_get_n_anchors        (AtkHyperlink     *link_);
 
+G_DEPRECATED
+gboolean         atk_hyperlink_is_selected_link     (AtkHyperlink     *link_);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __ATK_HYPERLINK_H__ */