Package org.docx4j.model.styles
Class StyleTree
java.lang.Object
org.docx4j.model.styles.StyleTree
Represent a style hierarchy as a tree.
TODO - need a way to update/refresh.
This is useful for creating certain representations
(eg CSS).
- Author:
- jharrop
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionStyleTree(Set<String> stylesInUse, Map<String, Style> allStyles, DocDefaults docDefaults, Style normal) Build a StyleTree for stylesInUse.StyleTree(Set<String> stylesInUse, Map<String, Style> allStyles, DocDefaults docDefaults, Style normal, Style defaultCharStyle, Style defaultTableStyle) Build a StyleTree for stylesInUse. -
Method Summary
-
Constructor Details
-
StyleTree
public StyleTree(Set<String> stylesInUse, Map<String, Style> allStyles, DocDefaults docDefaults, Style normal) Build a StyleTree for stylesInUse.- Parameters:
stylesInUse- styles actually in use in the main document part, headers/footers, footnotes/endnotesallStyles- styles defined in the style definitions part
-
StyleTree
public StyleTree(Set<String> stylesInUse, Map<String, Style> allStyles, DocDefaults docDefaults, Style normal, Style defaultCharStyle, Style defaultTableStyle) Build a StyleTree for stylesInUse.- Parameters:
stylesInUse- styles actually in use in the main document part, headers/footers, footnotes/endnotesallStyles- styles defined in the style definitions part- Since:
- 11.1.3
-
-
Method Details
-
getTableStylesTree
-
getParagraphStylesTree
-
getCharacterStylesTree
-
init
public void init(Set<String> stylesInUse, Map<String, Style> allStyles, DocDefaults docDefaults, Style normal, Style defaultCharStyle, Style defaultTableStyle) Build a StyleTree for stylesInUse.- Parameters:
stylesInUse- styles actually in use in the main document part, headers/footers, footnotes/endnotesallStyles- styles defined in the style definitions part
-
getHtmlClassAttributeValue
public static String getHtmlClassAttributeValue(Tree<StyleTree.AugmentedStyle> tree, Node<StyleTree.AugmentedStyle> n)
-