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) ;
cursor.setString("TextForMove");
aRange = cursor;
XTextCursor cursor1 = text.createTextCursorByRange(text.getEnd());
text.insertControlCharacter(cursor1,
ControlCharacter.PARAGRAPH_BREAK, false) ;
text.insertString(cursor1, "Paragraph 2", false);
text.insertControlCharacter(cursor1,
ControlCharacter.PARAGRAPH_BREAK, false) ;