Should Paragraph Style "Normal" Be Based On "DocDefaults"
Posted: Wed Nov 18, 2015 11:51 pm
StyleDefinitionsPart.createVirtualStylesForDocDefaults() called from PropertyResolver.init() creates a paragraph style "DocDefaults" from the document defaults in the styles part and makes the default paragraph style ("Normal" in English but ..) based on this style.
When evaluating the style hierarchy from ECMA 376 Part 4 ยง2.7.2 the following happens:
Wolfgang
(From the Contact form I understood that this type of discussion should got into the forum. Is this ok?)
When evaluating the style hierarchy from ECMA 376 Part 4 ยง2.7.2 the following happens:
- The document defaults are applied -- ok
- Table styles are applied (extension of mine to PropertyResolver). This may override the defaults -- ok
- Numbering styles are ignored -- ok
- Paragraph styles are applied. Most paragraph styles inherit from "Normal", "Normal" inherits from "DocDefaults". So this will reapply the document defaults overridden by the table styles -- NOT ok
- "Normal" must not be based on document defaults.
- A class with the javadoc description
must not trigger permanent changes to the underlying StylesDefinitionPart.This class works out the actual set of properties (paragraph or run) which apply, following the order specified in ECMA-376.
Wolfgang
(From the Contact form I understood that this type of discussion should got into the forum. Is this ok?)