Ignore:
Timestamp:
02/27/10 06:52:46 (2 years ago)
Author:
jharrop
Message:

Moved jcPML to org.pptx4j.jaxb.Context

Don't assume default paragraph,character styles are Normal,Default.. respectively.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/convert/out/pdf/viaXSLFO/Conversion.java

    r1024 r1096  
    353353        // which implements org.w3c.dom.traversal.NodeIterator 
    354354         
     355        String defaultParagraphStyleId = wmlPackage.getMainDocumentPart().getStyleDefinitionsPart().getDefaultParagraphStyle().getStyleId();  
     356         
    355357                if ( pStyleVal ==null || pStyleVal.equals("") ) { 
    356                         pStyleVal = "Normal"; 
     358//                      pStyleVal = "Normal"; 
     359                        pStyleVal = defaultParagraphStyleId; 
    357360                } 
    358361        log.debug("style '" + pStyleVal );               
     
    375378                if (pPrNodeIt==null) {  // Never happens?                        
    376379                        log.debug("Here after all!!");                   
    377                         pPr = propertyResolver.getEffectivePPr("Normal"); 
    378                         rPr = propertyResolver.getEffectiveRPr("Normal"); 
     380                        pPr = propertyResolver.getEffectivePPr(defaultParagraphStyleId); 
     381                        rPr = propertyResolver.getEffectiveRPr(defaultParagraphStyleId); 
    379382                } else { 
    380383                        Node n = pPrNodeIt.nextNode(); 
    381384                        if (n==null) { 
    382385                                log.warn("pPrNodeIt.nextNode() was null."); 
    383                         pPr = propertyResolver.getEffectivePPr("Normal"); 
    384                         rPr = propertyResolver.getEffectiveRPr("Normal"); 
     386                        pPr = propertyResolver.getEffectivePPr(defaultParagraphStyleId); 
     387                        rPr = propertyResolver.getEffectiveRPr(defaultParagraphStyleId); 
    385388                        // TODO - in this case, we should be able to compute once, 
    386389                        // and on subsequent calls, just return pre computed value 
Note: See TracChangeset for help on using the changeset viewer.