Hi Oliver,
thanks for the code snippet, i can use it as a workaround:
- - first copy & paste the section
- - second copy the properties of the paragraph styles
why do you need the first step ? The code snippet copies the content
of the textsection already.
Copy & Paste is a wee bit tricky as it is asynchronly done by
dispatch and you so never know when it is really done :-)
but what i am really looking for is to store a textsection as url,
or serialize it ...
The only way I can think of is extend the given snippet, so that all
"children" of the textsection are copied including text tables and
text frames.
Nicer would be if a text section would implement the
com.sun.star.util.XCloneable interface so that you could create a
clone and insert this as text content in a new document ... but that
it doesn't as far as I know.
Somethings I haven't considered yet is to use the ContentExporter and
the parse the xml-stream ... not sure if that is any easier than
travelling through the structure of the text section and rebuild it
that way in a second document which you then save.
Not sure if that helps.
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]