Hey,
The following problem only occurs, if I'm trying to remove the very last
paragraph of my Writer document with my Java Addon.
I'm left with the following structure at the end of the document:
.....
<text:p text:style-name="ElmlGoals">
<text:bookmark-start text:name="goals"/>
<text:bookmark-end text:name="goals"/>
</text:p>
Alright now I can't seem to be able to remove the paragraph including
it's bookmark with the following code:
xParaCursor.gotoNextParagraph(false);
xParaCursor.gotoPreviousParagraph(true);
xParaCursor.setString("");
The code works fine if there's another paragraph following. This makes
even a little sense to me, since I can't go on to the next paragraph if
there's no more, but how am I supposed to remove the paragraph with it's
content? Do I have to do this with enumeration although it works
everywhere else? How can I enumerate a paragraph if all I've got is the
XParaCursor....
Thanks for any help
cheers
jimmy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]