2 import com
.sun
.star
.uno
.UnoRuntime
;
3 import com
.sun
.star
.accessibility
.XAccessibleContext
;
4 import com
.sun
.star
.accessibility
.XAccessibleHypertext
;
7 class AccessibleHypertextHandler
extends AccessibleTreeHandler
9 public NodeHandler
createHandler (XAccessibleContext xContext
)
11 XAccessibleHypertext xText
=
12 (XAccessibleHypertext
) UnoRuntime
.queryInterface (
13 XAccessibleHypertext
.class, xContext
);
15 return new AccessibleHypertextHandler (xText
);
20 public AccessibleHypertextHandler ()
24 public AccessibleHypertextHandler (XAccessibleHypertext xText
)
27 maChildList
.setSize (1);
30 protected static XAccessibleHypertext
getHypertext (AccTreeNode aNode
)
32 XAccessibleHypertext xHypertext
=
33 (XAccessibleHypertext
) UnoRuntime
.queryInterface (
34 XAccessibleHypertext
.class, aNode
.getContext());
38 public AccessibleTreeNode
getChild (AccessibleTreeNode aParent
, int nIndex
)
40 return new StringNode ("interface XAccessibleHypertext is supported", aParent
);