This does just remove the Text of the TextSection though ...it misses
the bookmarks for example.
cheers
jimmy
Fabricio Lemos schrieb:
To delete the content, try:
XTextSectionsSupplier textSectionsSupplier =
(XTextSectionsSupplier)
UnoRuntime.queryInterface(XTextSectionsSupplier.class, component);
XNameAccess nameAccess =
textSectionsSupplier.getTextSections();
XTextSection textSection = (XTextSection)
UnoRuntime.queryInterface(XTextSection.class, nameAccess
.getByName(sectionName));
textSection.getAnchor().setString("");
FabrÃcio Lemos
On 8/21/06, Jimmy <[EMAIL PROTECTED]> wrote:
I'm trying to delete the whole content of a section but can't get it to
work. (Java)
The section includes paragraphs, which include bookmarks and Text.
Well to go further, is there a chance to delete everything for example
between two sections? How can I handle this since I can't iterate the
usual way?
Example: I've got the section 1 and want to delete itself and everything
that follows until I get to section "a2".
*<section1 name =a1>
...content...
</section1>
...content...
...content...*
<section2 name=a2/>
Thanks Jimmy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]