//get a Shape
log.println( "getting Shape" );
XShapes oShapes = (XShapes) UnoRuntime.queryInterface
(XShapes.class, oDP);
XInterface oObj = SOF.createShape
(xDrawDoc, 5000, 3500, 7500, 5000, "Rectangle");
for (int i=0; i < 10; i++) {
oShapes.add(
SOF.createShape(xDrawDoc,
5000, 3500, 7510 + 10 * i, 5010 + 10 * i, "Rectangle"));