Translations:Macros/Writer/001/14/en

    From The Document Foundation Wiki

    thisComponent = XSCRIPTCONTEXT.getDocument()

       curs = thisComponent.CurrentController.getViewCursor()
       annot = thisComponent.createInstance(
           "com.sun.star.text.textfield.Annotation")