Examples of STVerticalAlignRun


Examples of org.docx4j.wml.STVerticalAlignRun

  }

  @Override
  public String getCssProperty() {
   
    STVerticalAlignRun va = ((CTVerticalAlignRun)this.getObject()).getVal();
   
    if ( STVerticalAlignRun.SUBSCRIPT.equals(va) ) {
      return composeCss(CSS_NAME, "bottom") + composeCss("font-size", "xx-small");
     
      // Another approach is position:relative, and top: or bottom:,
View Full Code Here

Examples of org.docx4j.wml.STVerticalAlignRun


  @Override
  public void setXslFO(Element foElement) {
   
    STVerticalAlignRun va = ((CTVerticalAlignRun)this.getObject()).getVal();
   
    if ( STVerticalAlignRun.SUBSCRIPT.equals(va) ) {
      foElement.setAttribute(FO_NAME, "sub" );     
      // Some suggest @baseline-shift="sub" as an alternative     
    } else if ( STVerticalAlignRun.SUPERSCRIPT.equals(va) ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.