e.printStackTrace(log);
throw new StatusException( "Couldn't insert Text", e );
}
// Enumeration
XEnumerationAccess oEnumA = (XEnumerationAccess)
UnoRuntime.queryInterface( XEnumerationAccess.class, oText );
XEnumeration oEnum = oEnumA.createEnumeration();
int n = 0;
while ( (oEnum.hasMoreElements()) ) {
try {
param = (XInterface) AnyConverter.toObject(
new Type(XInterface.class),oEnum.nextElement());
log.println("Element Nr.: " + n );
} catch ( Exception e) {
log.println("Couldn't get Paragraph");
e.printStackTrace(log);
throw new StatusException( "Couldn't get Paragraph", e );
}
n++;
}
XEnumerationAccess oEnumP = (XEnumerationAccess)
UnoRuntime.queryInterface( XEnumerationAccess.class, param );
XEnumeration oEnum2 = oEnumP.createEnumeration();
try {
oObj = (XInterface)AnyConverter.toObject(
new Type(XInterface.class),oEnum2.nextElement());
} catch ( Exception e) {
log.println("Couldn't get TextPortion");