blob: 0e1f4ece682368532c2a24ee7667606836c1ee5f (
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
|
import com.sun.star.uno.UnoRuntime;
import drafts.com.sun.star.accessibility.XAccessibleHypertext;
class AccessibleHypertextHandler extends AccessibleTreeHandler
{
protected XAccessibleHypertext getHypertext(Object aObject)
{
XAccessibleHypertext xHypertext =
(XAccessibleHypertext) UnoRuntime.queryInterface (
XAccessibleHypertext.class, aObject);
return xHypertext;
}
public int getChildCount(Object aObject)
{
return (getHypertext(aObject) == null) ? 0 : 1;
}
public Object getChild(Object aObject, int nIndex)
{
return "interface XAccessibleHypertext is supported";
}
}
|