martin f krafft wrote:
Hi Andreas, thanks for taking your time to respond.
also sprach Andreas Säger <ville...@t-online.de> [2015-04-15 17:44 +0200]:
Not sure if I understand what you're after. The [Standard] button
on the style editor dialog resets all attributes to the attribute
values of the parent style.
This is better than recreating the style, so thank you for the hint.
I guess what I am really after is some sort of text-file export or
a UI allowing me to individually add and remove attributes from
a style. I imagine some tree arrangement and attributes, such as
"underline", and then I can select whether this attribute
- is set to on (forces underlining)
- is set to off (forces no underlining)
- is not set (inherits underlining from other formatting/styles)
While this does not exist, I can make do with your solution.
If you're comfortable editing text-based files describing the styles,
note that OpenDocument Format (ODF) files, including ODT and ODS, are
actually zip archives containing the content, styles, etc.
Working on a copy of the file (so you don't lose the original if you
make a mistake!) you can unzip the .ods file, ensuring the directory
structure is preserved. Within it is a styles.xml file, which contains
the style definitions in an XML format. After editing it, zip of the
contents again, ensuring the original directory structure is preserved,
give the file a .ods extension, and it should open in LibreOffice.
There's probably a formal specification of ODF somewhere, but it may be
easier to work out the parts you're interested in by making one change
at a time and seeing what effect it has on the styles.xml.
Mark.
--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted