though using the OODoc already for quite a while this is my first post here.
I run into an issue when creating styles.
I have an application that needs to write certain elements into an .odt.
The elements are (in some form) stored in a database. The output document may or may not have any content when my application is used.
Therefor I cannot be sure that the output document has all the styles that I need. I try to determine this with the following routine (getStylesRef() is refers to the ::Styles and getContentRef to the ::Text):