e.printStackTrace( log );
throw new StatusException( "Couldn't get ReferenceMark", e);
}
XNamed oObjN = (XNamed) UnoRuntime.queryInterface(XNamed.class, oObj);
oObjN.setName(Name);
XTextContent oObjTC = (XTextContent)
UnoRuntime.queryInterface(XTextContent.class, oObj);
XTextCursor oCursor = oText.createTextCursor();
try {
oText.insertTextContent(oCursor, oObjTC, false);
} catch ( com.sun.star.lang.IllegalArgumentException e ){
e.printStackTrace( log );
throw new StatusException(" Couldn't insert ReferenceMark01", e);
}
// Creation and insertion of ReferenceMark02
try {
oObj = (XInterface)
oDocMSF.createInstance( "com.sun.star.text.ReferenceMark" );
} catch ( com.sun.star.uno.Exception e ) {
e.printStackTrace( log );
throw new StatusException( "Couldn't get ReferenceMark", e);
}
XNamed oObjN2 = (XNamed) UnoRuntime.queryInterface(XNamed.class, oObj);
oObjN2.setName(Name2);
XTextContent oObjTC2 = (XTextContent)
UnoRuntime.queryInterface(XTextContent.class, oObj);
try {
oText.insertTextContent(oCursor, oObjTC2, false);
} catch ( com.sun.star.lang.IllegalArgumentException e ){
e.printStackTrace( log );