Date: prev next · Thread: first prev next last


Hi again,

I have progressed a little. Simple things appear to be simple. I have a question with respect to 
styles, though.

It appears that OdfTextDocument.newTextDocument(); creates a ODT document with lots of styles. I 
would like to be a little more minimalistic and have as few styles as possible; those default 
styles are rather confusing.

I was thinking of one of the following:

1. The documentation for the above states "ODF text document based on a default template". That 
implies that there might be other templates. Is that the case? Where would I find them? How do I 
create a newTextDocument() with one of those?

2. Could I create a styles.xml with, say, LibreOffice, or even an XML editor and load that somehow? 
Or an ODT template created with LibreOffice?

3. Is there a class that represents the styles.xml? I have not found it, yet. (Does not seem to be 
OdfStyle). Is there a way I can create a clean one of those and then attach that to the 
OdfTextDocument somehow?

What is the cleverest way to do this?

Thank you,
Malte.


-- 
To unsubscribe e-mail to: dev+unsubscribe@odftoolkit.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.odftoolkit.org/dev/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.