Date: prev next · Thread: first prev next last


Hi Vivien,

the document

   - odfdom/src/main/resources/OdfTextDocument.odt

is only being loaded when you call

   - OdfTextDocument.newTextDocument();

if you desire other styles or the same styles for a different document you
load, you need to add those styles rather into the document or add them
afterwards with ODFDOM API!
In other words, if your custom document has no styles, then there are no
styles you can refer to!

Hope this can help you!
Svante



On Mon, 22 Jan 2024 at 11:40, vivien guillet <vgu@gmx.fr> wrote:

On 22/01/2024 11:33, Svante Schubert wrote:
Yes, you can rely on the template styles but automatic styles might
change.
I will aim to keep the naming stable even from the automatic styles - but
usually they are only temporary.

Noted, thanks.

Oh, it seems that you may have missed one of my questions: do these high
level functionality rely on the default styles of the
odfdom/src/main/resources/OdfTextDocument.odt of the distribution beeing
used - that is to say : will they work with a custom base document not
defining any style, or different styles ?

Godspeed!

Thanks!

V.


-- 
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.