Ignore:
Timestamp:
02/27/11 00:51:58 (15 months ago)
Author:
jharrop
Message:

styles in use: traverse comments part as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/WordprocessingML/MainDocumentPart.java

    r1381 r1446  
    5757import org.docx4j.wml.CTFootnotes; 
    5858import org.docx4j.wml.CTShd; 
     59import org.docx4j.wml.Comments; 
    5960import org.docx4j.wml.Ftr; 
    6061import org.docx4j.wml.Hdr; 
     
    409410                 
    410411                Map<String, String> stylesInUse = new HashMap<String, String>(); 
    411 //              traverseMainDocumentRecursive(bodyChildren, null, stylesInUse); 
    412412                Finder finder = new Finder(null, stylesInUse); 
    413413                new TraversalUtil(bodyChildren, finder); 
     
    421421                                         
    422422                                        Ftr ftr = ((FooterPart)part).getJaxbElement(); 
    423 //                                      traverseMainDocumentRecursive(ftr.getEGBlockLevelElts(), null, stylesInUse); 
    424423                                        finder.walkJAXBElements(ftr); 
    425424                                         
     
    427426                                         
    428427                                        Hdr hdr = ((HeaderPart)part).getJaxbElement(); 
    429 //                                      traverseMainDocumentRecursive(hdr.getEGBlockLevelElts(), null, stylesInUse); 
    430428                                        finder.walkJAXBElements(hdr); 
    431429                                } 
     
    437435                        log.debug("Looking at endnotes"); 
    438436                        CTEndnotes endnotes= this.getEndNotesPart().getJaxbElement(); 
    439 //                      traverseMainDocumentRecursive(endnotes.getEndnote(), null, stylesInUse);                         
    440437                        finder.walkJAXBElements(endnotes); 
    441438                } 
     
    443440                        log.debug("Looking at footnotes"); 
    444441                        CTFootnotes footnotes= this.getFootnotesPart().getJaxbElement(); 
    445 //                      traverseMainDocumentRecursive(footnotes.getFootnote(), null, stylesInUse);                       
    446442                        finder.walkJAXBElements(footnotes); 
     443                } 
     444                 
     445                // Comments 
     446                if (this.getCommentsPart()!=null) { 
     447                        log.debug("Looking at comments");                        
     448                        Comments comments = this.getCommentsPart().getJaxbElement(); 
     449                        finder.walkJAXBElements(comments); 
    447450                } 
    448451                 
Note: See TracChangeset for help on using the changeset viewer.