getWords del def ():
documento = XSCRIPTCONTEXT.getDocument ()
parentwin = doc.CurrentController.Frame.ContainerWindow
testo = documento. Testo
MessageBox (parentwin, text.getString (), “documento„)
wordcursor = text.createTextCursor ()
mentre 1:
wordcursor.gotoStartOfWord (falso);
wordcursor.gotoEndOfWord (allineare);
MessageBox (parentwin, wordcursor.getString (), “parola„)
se (== (falso) di wordcursor.gotoNextWord falso):
rottura;
|