Package org.docx4j.model.properties.run

Examples of org.docx4j.model.properties.run.HighlightColor


//    if (rPr.getEmboss() != null)
//      dest.setEmboss(rPr.getEmboss());
//    if (rPr.getFitText() != null)
//      dest.setFitText(rPr.getFitText());
    if (rPr.getHighlight() != null)
      properties.add(new HighlightColor(rPr.getHighlight()));
    if (rPr.getI() != null)
      properties.add(new Italics(rPr.getI()) );
//    if (rPr.getICs() != null)
//      dest.setICs(rPr.getICs());
//    if (rPr.getImprint() != null)
View Full Code Here


          }
         
          if (shouldUseHighlightInRPr()) {
            // Highlight needs "red", not "#FF0000", but our code
            // is ok with this as long as the color is in the enumeration from the spec
            HighlightColor highlightColor = new HighlightColor(value);
           
//            System.out.println(XmlUtils.marshaltoString((Highlight)highlightColor.getObject()));
           
           
            if ( ((Highlight)highlightColor.getObject()).getVal()==null) {
              return null; // Word 2010 x64 can't open the docx if it contains <w:highlight/>!
            } else {
              return highlightColor;
            }
          } else {
View Full Code Here

TOP

Related Classes of org.docx4j.model.properties.run.HighlightColor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.