Manchmal ist es nötig ein neue Textmarke einzufügen. Dies geht natürlich auch per
Makro.
Dazu muß man eine neue Instanz einer Bookmark (Textmarke) erzeugen und diese an den
der
gewünschten Stelle einfügen.
Die gewünschte Stelle wählt man mit dem Cursor aus.
oDoc = thisComponent
mytextCursor=odoc.text.createtextcursor()
oNeueTextmarke = oDoc.createInstance("com.sun.star.text.Bookmark")
oNeueTextmarke.setName("NeueMarke")
oDoc.text.insertTextContent(mytextCursor, oNeueTextmarke,
false)