1 #include <cspi/spi-private.h>
4 * AccessibleHypertext_ref:
5 * @obj: a pointer to the #AccessibleHypertext object on which to operate.
7 * Increment the reference count for an #AccessibleHypertext object.
8 * Since AccessibleHypertext is derived from AccessibleText,
9 * this is the same as AccessibleText_unref().
12 AccessibleHypertext_ref (AccessibleHypertext *obj)
14 cspi_object_ref (obj);
18 * AccessibleHypertext_unref:
19 * @obj: a pointer to the #AccessibleHypertext object on which to operate.
21 * Decrement the reference count for an #AccessibleHypertext object.
22 * Since AccessibleHypertext is derived from AccessibleText,
23 * this is the same as AccessibleText_unref().
26 AccessibleHypertext_unref (AccessibleHypertext *obj)
28 cspi_object_unref (obj);
32 * AccessibleHypertext_getNLinks:
33 * @obj: a pointer to the #AccessibleHypertext implementor on which to operate.
35 * Get the total number of #AccessibleHyperlinks which an
36 * #AccessibleHypertext implementor has.
38 * Returns: a #long indicating the number of #AccessibleHyperlinks
39 * of the #AccessibleHypertext implementor, or -1 if
40 * the number cannot be determined (for example, if the
41 * #AccessibleHypertext object is so large that it is not
42 * all currently in the memory cache).
45 AccessibleHypertext_getNLinks (AccessibleHypertext *obj)
49 cspi_return_val_if_fail (obj != NULL, FALSE);
52 Accessibility_Hypertext_getNLinks (CSPI_OBJREF (obj), cspi_ev ());
54 cspi_return_val_if_ex ("getNLinks", -1);
60 * AccessibleHypertext_getLink:
61 * @obj: a pointer to the #AccessibleHypertext implementor on which to operate.
62 * @linkIndex: a (zero-index) long integer indicating which hyperlink to query.
64 * Get the #AccessibleHyperlink object at a specified index.
66 * Returns: the #AccessibleHyperlink object specified by #linkIndex.
69 AccessibleHypertext_getLink (AccessibleHypertext *obj,
72 cspi_return_val_if_fail (obj != NULL, FALSE);
74 return cspi_object_new (
75 Accessibility_Hypertext_getLink (CSPI_OBJREF (obj),
76 (CORBA_long) linkIndex, cspi_ev ()));
80 * AccessibleHypertext_getLinkIndex:
81 * @obj: a pointer to the #AccessibleHypertext implementor on which to operate.
82 * @characterOffset: an integer specifying the character offset to query.
84 * Get the index of the #AccessibleHyperlink object at a specified
87 * Returns: the linkIndex of the #AccessibleHyperlink active at
88 * character offset @characterOffset, or -1 if there is
89 * no hyperlink at the specified character offset.
92 AccessibleHypertext_getLinkIndex (AccessibleHypertext *obj,
93 long int characterOffset)
97 cspi_return_val_if_fail (obj != NULL, -1);
100 Accessibility_Hypertext_getLinkIndex (CSPI_OBJREF (obj),
101 (CORBA_long) characterOffset,
104 cspi_return_val_if_ex ("getLinkIndex", -1);