[api-dev] TextCursor at ViewCursor

2005-01-29 Thread Marc Santhoff
Hi! Since some people are discussing BASIC issues, I'd like to ask somthing, too: In a text document, how can i get a XTextCursor at the current position of the ViewCursor? The only way I found until now is to mark from the ViewCursor to the start of the doc, get the selected text and from that

Re: [api-dev] TextCursor at ViewCursor

2005-01-29 Thread Marc Santhoff
Am Sa, den 29.01.2005 schrieb Darragh Sherwin um 18:15: Marc, Hi Darragh, Marc Santhoff wrote: In a text document, how can i get a XTextCursor at the current position of the ViewCursor? viewCursor = document.getCurrentController().getViewCursor() textCursor =

Re: [api-dev] TextCursor at ViewCursor

2005-01-29 Thread Laurent Godard
Hi, In a text document, how can i get a XTextCursor at the current position of the ViewCursor? viewCursor = document.getCurrentController().getViewCursor() textCursor = document.Text.createTextCursor() //TextCursors include the TextRange service viewCursorRange = viewCursor.getEnd()