Package org.docx4j.wml

Examples of org.docx4j.wml.CTHeight


  public final static String FO_NAME  = "height";
  protected static final BigInteger DEFAULT_TWIPS_HEIGHT = BigInteger.valueOf(UnitsOfMeasurement.mmToTwip(5f));
  protected static final QName TRHEIGHT_NAME = new QName("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "trHeight");
 
  public TrHeight() {
    CTHeight defHeight = new CTHeight();
    defHeight.setVal(DEFAULT_TWIPS_HEIGHT);
    defHeight.setHRule(STHeightRule.AT_LEAST);
    setObject(defHeight);
  }
View Full Code Here


 
  @Override
  public void set(TrPr trPr) {
   
    JAXBElement<CTHeight> jbHeight = null;
    CTHeight ctHeight = (CTHeight)getObject();
    if ((ctHeight != null) && (ctHeight.getVal() != null)) {
      jbHeight = new JAXBElement<CTHeight>(TRHEIGHT_NAME, CTHeight.class, (CTHeight)getObject());
     
      JAXBElement<?> existing = XmlUtils.getListItemByQName(trPr.getCnfStyleOrDivIdOrGridBefore(), jbHeight.getName() );
      if (existing==null) {
       
View Full Code Here

  @Override
  public String getCssProperty() { // Won't work?  See above?
   
    String ret = null;
    CTHeight ctHeight = (CTHeight)getObject();
    if ((ctHeight != null) && (ctHeight.getVal() != null)) {
      ret = composeCss(getCssName(), UnitsOfMeasurement.twipToBest(ctHeight.getVal().intValue()));
    }
    return ret;
  }
View Full Code Here

  }

  @Override
  public void setXslFO(Element foElement) {
   
    CTHeight ctHeight = (CTHeight)getObject();
    if ((ctHeight != null) && (ctHeight.getVal() != null)) {
      foElement.setAttribute(FO_NAME,
          UnitsOfMeasurement.twipToBest(ctHeight.getVal().intValue()));
    }
  }
View Full Code Here

TOP

Related Classes of org.docx4j.wml.CTHeight

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.