You are viewing a plain text version of this content. The canonical link for it is here.
Posted to utenti-it@openoffice.apache.org by Davide Dozza <da...@flossconsulting.it> on 2014/03/20 11:57:46 UTC
[utenti-it] Enumerare i segnaposto cun una macro
Salve a tutti,
ho scritto questa macro per enumerare i segnaposto in un documento writer
oTextElementEnum = thisComponent.getTextFields().createEnumeration()
while oTextElementEnum.hasMoreElements()
oTextElement = oTextElementEnum.nextElement
oAnchor = oTextElement.getAnchor()
oCurs = ThisComponent.getCurrentController().getViewCursor()
oCurs.gotoRange(oAnchor, False)
msgbox("Trovato!")
wend
Ora le domande sono:
- perchè i segnaposti non sono ordinati secondo l'ordine in cui si trovano
nel documento?
- dato il cursore visibile, come si può trovare il segnaposto successivo al
cursore?
Ciao
Davide