I don't think that you can use a text cursor in an Impress document.

Serguei Vdovine wrote:
Hello,
I failed  to change the text content of a selected text shape(shaded box around 
text and cursor) on a Impress 3.0 slide with

Sub testGetSelect
oDoc = ThisComponent()
oDocCtrl = oDoc.getCurrentController()
IF (not isEmpty(oDocCtrl.getSelection())) then
oSelection = oDocCtrl.getSelection()
oSel = oSelection.getByIndex(0)
xTextCursor=oSel.createTextCursor()
xTextCursor.gotoEnd(False)
oSel.insertString(xTextCursor, "Hello", false)
else
MsgBox("no selection")
end if
End Sub

What might be wrong?

Thanks a lot in advance,
Serguei


--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to