blob: aa703942bc4c28e13e650c57972c158bf0af50eb (
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
|
import com.sun.star.uno.UnoRuntime;
import com.sun.star.accessibility.XAccessibleContext;
import com.sun.star.accessibility.XAccessibleHypertext;
class AccessibleHypertextHandler extends AccessibleTreeHandler
{
public NodeHandler createHandler (XAccessibleContext xContext)
{
XAccessibleHypertext xText =
(XAccessibleHypertext) UnoRuntime.queryInterface (
XAccessibleHypertext.class, xContext);
if (xText != null)
return new AccessibleHypertextHandler (xText);
else
return null;
}
public AccessibleHypertextHandler ()
{
}
public AccessibleHypertextHandler (XAccessibleHypertext xText)
{
if (xText != null)
maChildList.setSize (1);
}
protected static XAccessibleHypertext getHypertext (AccTreeNode aNode)
{
XAccessibleHypertext xHypertext =
(XAccessibleHypertext) UnoRuntime.queryInterface (
XAccessibleHypertext.class, aNode.getContext());
return xHypertext;
}
public AccessibleTreeNode getChild (AccessibleTreeNode aParent, int nIndex)
{
return new StringNode ("interface XAccessibleHypertext is supported", aParent);
}
}
|