blob: a7bd0583d101752cf58c178326cc1e7ca11a8eb4 (
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.XAccessibleHyperlink;
class AccessibleHyperlinkHandler extends AccessibleTreeHandler
{
protected XAccessibleHyperlink getHyperlink(Object aObject)
{
XAccessibleHyperlink xHyperlink =
(XAccessibleHyperlink) UnoRuntime.queryInterface (
XAccessibleHyperlink.class, aObject);
return xHyperlink;
}
public int getChildCount(Object aObject)
{
return (getHyperlink(aObject) == null) ? 0 : 1;
}
public Object getChild(Object aObject, int nIndex)
{
return "interface XAccessibleHyperlink is supported";
}
}
|