("com.sun.star.drawing.PolyPolygonShape") ;
oShape = (XShape) UnoRuntime.queryInterface
(XShape.class, oInst) ;
oShape.setSize(new Size(0,0)) ;
oShape.setPosition(new Point(0,0)) ;
DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc,0)).add(oShape);
Point[] square1 = new Point[] {
new Point(5000, 5000),
new Point(10000, 5000),
new Point(10000, 10000),
new Point(5000, 10000)} ;
Point[] square2 = new Point[] {
new Point(6500, 6500),
new Point(8500, 6500),
new Point(8500, 8500),
new Point(6500, 8500)} ;
Point[][] polygon = new Point[][] {square1, square2};
((XPropertySet) UnoRuntime.queryInterface(XPropertySet.class,
oShape)).setPropertyValue("PolyPolygon", polygon) ;