SOfficeFactory SOF = SOfficeFactory.getFactory(
(XMultiServiceFactory)Param.getMSF());
// get the drawpage of drawing here
log.println( "getting Drawpage" );
XDrawPagesSupplier oDPS = (XDrawPagesSupplier)
UnoRuntime.queryInterface(XDrawPagesSupplier.class,xDrawDoc);
XDrawPages oDPn = oDPS.getDrawPages();
XIndexAccess oDPi = (XIndexAccess) UnoRuntime.queryInterface
(XIndexAccess.class,oDPn);
try {
oObj = (XDrawPage) AnyConverter.toObject(
new Type(XDrawPage.class),oDPi.getByIndex(0));