- Timestamp:
- 02/27/10 06:52:46 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/model/styles/StyleTree.java
r1029 r1096 60 60 * @param allStyles styles defined in the style definitions part 61 61 */ 62 public StyleTree(List<String> stylesInUse, Map<String, Style> allStyles) { 62 public StyleTree(List<String> stylesInUse, Map<String, Style> allStyles, 63 String defaultParagraphStyleId, String defaultCharacterStyleId) { 64 63 65 64 66 // Set up Table style tree … … 82 84 // Set up Paragraph style tree 83 85 // but first, add Normal. (Doesn't matter if its already there) 84 stylesInUse.add( "Normal");86 stylesInUse.add(defaultParagraphStyleId); 85 87 for (String styleId : stylesInUse ) { 86 88 if (pTree.get(styleId)==null) { … … 102 104 // Set up Character style tree 103 105 // but first, add DefaultParagraphFont. (Doesn't matter if its already there) 104 stylesInUse.add( "DefaultParagraphFont");106 stylesInUse.add(defaultCharacterStyleId); 105 107 for (String styleId : stylesInUse ) { 106 108 if (cTree.get(styleId)==null) { … … 196 198 } 197 199 198 StyleTree st = new StyleTree(stylesInUse, allStyles); 200 StyleTree st = new StyleTree(stylesInUse, allStyles, 201 wmlPackage.getMainDocumentPart().getStyleDefinitionsPart().getDefaultParagraphStyle().getStyleId(), 202 wmlPackage.getMainDocumentPart().getStyleDefinitionsPart().getDefaultCharacterStyle().getStyleId()); 199 203 200 204 System.out.println("\nParagraph styles\n");
Note: See TracChangeset
for help on using the changeset viewer.
