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()

textCursor.gotoRange( viewCursorRange )

You may try

viewCursor = document.getCurrentController().getViewCursor()
textCursor = document.Text.createTextCursorByRange(viewCursor)

Laurent

--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to