e.printStackTrace(log);
throw new StatusException("Couldn't insert the footnote", e);
}
XController xController = xTextDoc.getCurrentController();
XViewSettingsSupplier xViewSetSup = (XViewSettingsSupplier)
UnoRuntime.queryInterface(XViewSettingsSupplier.class,
xController);
XPropertySet xPropSet = xViewSetSup.getViewSettings();
try {
//change zoom value to 10%
//footer should be in the vissible area of the document
xPropSet.setPropertyValue("ZoomValue", new Short("10"));
} catch ( com.sun.star.lang.WrappedTargetException e ) {
e.printStackTrace(log);
throw new StatusException("Couldn't set propertyValue...", e);
} catch ( com.sun.star.lang.IllegalArgumentException e ) {
e.printStackTrace(log);
throw new StatusException("Couldn't set propertyValue...", e);
} catch ( com.sun.star.beans.PropertyVetoException e ) {
e.printStackTrace(log);
throw new StatusException("Couldn't set propertyValue...", e);
} catch ( com.sun.star.beans.UnknownPropertyException e ) {
e.printStackTrace(log);
throw new StatusException("Couldn't set propertyValue...", e);
}
XModel aModel = (XModel)
UnoRuntime.queryInterface(XModel.class, xTextDoc);
AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = at.getCurrentWindow((XMultiServiceFactory)Param.getMSF(), aModel);
XAccessible xRoot = at.getAccessibleObject(xWindow);
at.getAccessibleObjectForRole(xRoot, AccessibleRole.FOOTNOTE);
oObj = AccessibilityTools.SearchedContext;
log.println("ImplementationName " + utils.getImplName(oObj));
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
TestEnvironment tEnv = new TestEnvironment(oObj);
final XPropertySet PropSet = xViewSetSup.getViewSettings();
tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {