xSheet[0].getCellByPosition(6, 6).setValue(9);
XNamed xNamed = (XNamed)UnoRuntime.queryInterface(XNamed.class, xSheet[0]);
sheetName = xNamed.getName();
xSheet[1].getCellByPosition(6, 6).setValue(16);
xSheet[1].getCellByPosition(6, 7).setFormula("= SQRT(G7)");
XSheetAuditing xSheetAuditing = (XSheetAuditing)UnoRuntime.queryInterface(XSheetAuditing.class, xSheet[1]);
CellAddress add = new CellAddress((short)1, 6, 7);
xSheetAuditing.showPrecedents(add);
boolean ok = hasRightAmountOfShapes(1);
if (!ok)
throw new StatusException(Status.failed("Wrong amount of shapes on page."));
}
catch(com.sun.star.lang.IndexOutOfBoundsException e) {