XAccessibleContext xCon = null;
try
{
XInterface x = (XInterface) xMSF.createInstance(
"com.sun.star.awt.Toolkit") ;
XExtendedToolkit tk =
(XExtendedToolkit)UnoRuntime.queryInterface(
XExtendedToolkit.class,x);
AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = (XWindow)UnoRuntime.queryInterface(
XWindow.class,tk.getActiveTopWindow());
XAccessible xRoot = at.getAccessibleObject(xWindow);
xCon = xRoot.getAccessibleContext();
}
catch (Exception e)
{