On 9/25/06, Stephan Wunderlich <[EMAIL PROTECTED]> wrote:
Hi Knut,
I couldn't find any service that pretends to implement the Interface
XBookmarkInsertTool, so I suppose it has never been implemented.
So the following seems to be the way to go when you want to insert a
bookmark
xText = ThisComponent.getText()
xTextCursor = xText.createTextCursor()
aBookmark = ThisComponent.createInstance("com.sun.star.text.Bookmark")
aBookmark.Name="myBookmark"
xText.insertTextContent(xTextCursor, aBookmark, false)
I have no problems with making bookmarks. I have a problem with the
documentation. For example what kind of side effects does
insertDocumentFromUrl have? Is the range in the cursor expanded around the
inserted text, or collapsed at beginning or end? Where is that documented?
and why do I have to spend time trying and failing things from the
documentation. I usually assume the documentation is correct and if things
is not working it is I who is doing something wrong.
It would take very long time to be productive in openoffice.org if this is
the way one should work, that the documentation is not a guide, but merely a
source of inspiration for guessing your way to the goal.
--
Knut Olav Bøhmer