Changeset 1665 for trunk/docx4j/src


Ignore:
Timestamp:
09/20/11 11:53:44 (8 months ago)
Author:
jharrop
Message:

Rudimentary support for

<w:rPr>

<w:highlight w:val="yellow"/>

</w:rPr>

Location:
trunk/docx4j/src/main/java/org/docx4j/model
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/model/PropertyResolver.java

    r1447 r1665  
    10021002                //HpsMeasure szCs; 
    10031003                //Highlight highlight; 
    1004                 //if (rPrToApply.getHighlight()!=null ) { 
    1005                 //      return true;                     
    1006                 //} 
     1004                if (rPrToApply.getHighlight()!=null ) { 
     1005                        return true;                     
     1006                } 
    10071007                //U u; 
    10081008                if (rPrToApply.getU()!=null ) { 
  • trunk/docx4j/src/main/java/org/docx4j/model/properties/PropertyFactory.java

    r1555 r1665  
    4343import org.docx4j.model.properties.run.FontColor; 
    4444import org.docx4j.model.properties.run.FontSize; 
     45import org.docx4j.model.properties.run.HighlightColor; 
    4546import org.docx4j.model.properties.run.Italics; 
    4647import org.docx4j.model.properties.run.RBorder; 
     
    216217//              if (rPr.getFitText() != null) 
    217218//                      dest.setFitText(rPr.getFitText()); 
    218 //              if (rPr.getHighlight() != null) 
    219 //                      properties.add(new HighlightColor(rPr.getHighlight())); 
     219                if (rPr.getHighlight() != null) 
     220                        properties.add(new HighlightColor(rPr.getHighlight())); 
    220221                if (rPr.getI() != null) 
    221222                        properties.add(new Italics(rPr.getI()) ); 
Note: See TracChangeset for help on using the changeset viewer.