SOfficeFactory SOF = SOfficeFactory.getFactory((XMultiServiceFactory)tParam.getMSF()) ;
XShape oShape = SOF.createShape(xDrawDoc,
5000,3500,7500,5000,"Text");
DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc,0)).add(oShape) ;
XSimpleText text = (XSimpleText) UnoRuntime.queryInterface
(XSimpleText.class, oShape) ;
XTextCursor cursor = text.createTextCursor() ;
text.insertString(cursor, "Paragraph 1", false) ;
text.insertControlCharacter(cursor,
ControlCharacter.PARAGRAPH_BREAK, false) ;
text.insertString(cursor, "Paragraph 2", false) ;
text.insertControlCharacter(cursor,
ControlCharacter.PARAGRAPH_BREAK, false) ;
text.insertString(cursor, "Paragraph 3", false) ;
text.insertControlCharacter(cursor,
ControlCharacter.PARAGRAPH_BREAK, false) ;
xEA = (XEnumerationAccess) UnoRuntime.queryInterface
(XEnumerationAccess.class, text) ;