Sub Main
oDoc = ThisComponent 'Get the current active document.
oViewCur = oDoc.getCurrentController().getViewCursor()
'msgbox oViewCur.dbg_methods
oTextCur = oDoc.getText().createTextCursorByRange(oViewCur)
'msgbox oTextCur.isStartOfParagraph()
oTextCur.gotoStartOfParagraph(false)
End Sub
oDoc = ThisComponent 'Get the current active document.
oViewCur = oDoc.getCurrentController().getViewCursor()
'msgbox oViewCur.dbg_methods
oTextCur = oDoc.getText().createTextCursorByRange(oViewCur)
'msgbox oTextCur.isStartOfParagraph()
oTextCur.gotoStartOfParagraph(false)
rem oTextCur.gotoStartOfParagraph(false) rem 段尾
'msgbox oTextCur.isStartOfParagraph()
oViewCur.gotoRange(oTextCur,false)End Sub