blob: 334dafdd74615396a986296e83160eda49277acb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
namespace org.freestandards.atspi {
/*
Instances of Hyperlink are returned by Hypertext object and
are the means by which end users and clients interact with linked
content.
Hyperlink instances DO NOT neccessarily implement the Accessible interface.
*/
interface HyperLink {
/* The number of separate anchors associated with this Hyperlink. */
read property int32 NAnchors;
/*
The starting offset within the contianing Hypertext,
with which this Hyperlink is associated.
*/
read property int32 StartIndex;
/*
The ending offset within the containing Hypertext with which
this Hyperlink is associated.
*/
read property int32 EndIndex;
/*
Gets the i'th object associated with a Hyperlink.
Objects returned should implement the Action interface.
*/
method GetObject {
int32 index;
} reply {
Reference anchor;
}
/*
Obtain a resource locator, URI, which can be used to access the content
which this link points to.
*/
method GetUri {
int32 index;
} reply {
string uri;
}
/*
Check the hyperlink to see if a connection to its backing content can be
established or if its URI is valid.
*/
method IsValid reply {
boolean valid;
}
}
/*
An interface used for objects which implement linking between multiple resource locations.
A hypertext instance is associated with one or more hyperlinks which are associated with
particular offests within the text.
*/
interface Hypertext {
method GetNLinks reply {
int32 n_links;
}
method GetLink {
int32 index;
} reply {
Reference hyperlink;
}
/*
Get the hyperlink index, if any, associated with a particular text offset.
*/
method GetLinkIndex {
int32 offset;
} reply {
/* -1 if no hyperlink is associated. */
int32 index;
}
}
}
|