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) ;
text.insertString(cursor1, "Paragraph 3", false) ;