I'm developing a simple script in OpenOffice Basic for Writer. I have a code like this:
vText = ThisComponent.Text
vc = ThisComponent.CurrentController.getViewCursor()
c = vText.createTextCursorByRange(vc.getstart())
baseM = c.ParaLeftMargin
Accoring to http://www.openoffice.org/api/docs/common/ref/com/sun/star/text/XSimpleText.html#createTextCursorByRange createTextCursorByRange returns an object of type XTextCursor. ParaLeftMargin is a property of service ParagraphProperties. But I cannot find how XTextCursor is connected to ParagraphProperties in this documentation.
My question is - why can I access ParaLeftMargin on cursor object?