Examples of CTTabStop


Examples of org.docx4j.wml.CTTabStop

    }
    return destination;
  }

  public static Tabs apply(Tabs source, Tabs destination) {
  CTTabStop sourceTabStop = null;
  CTTabStop destinationTabStop = null;
    //Tabs are relative to each other, therefore if there are any tabs in the source
    //they should replace those in the destination and not be added to the destination.
    if (!isEmpty(source)) {
      if (destination == null)
        destination = Context.getWmlObjectFactory().createTabs();
     
      destination.getTab().clear();
      for (int i=0; i<source.getTab().size(); i++) {
        sourceTabStop = source.getTab().get(i);
        destinationTabStop = Context.getWmlObjectFactory().createCTTabStop();
        destinationTabStop.setLeader(sourceTabStop.getLeader()); //enum
        destinationTabStop.setPos(sourceTabStop.getPos()); //atomic
        destinationTabStop.setVal(sourceTabStop.getVal()); //enum
       
        if (destinationTabStop != null) {
          destination.getTab().add(destinationTabStop);
        }
      }
View Full Code Here

Examples of org.docx4j.wml.CTTabStop

//          && pPr.getPStyle()!=null
//          && pPr.getPStyle().getVal()!=null
//          && pPr.getPStyle().getVal().startsWith("TOC") 
          ) {
       
        CTTabStop tabStop = pPr.getTabs().getTab().get(0);
        if (tabStop!=null
            //&& tabStop.getLeader().equals(STTabTlc.DOT)
            && tabStop.getVal().equals(STTabJc.RIGHT) ) {
         
          foBlockElement.setAttribute("text-align-last""justify");
        }
      }
     
View Full Code Here

Examples of org.docx4j.wml.CTTabStop

    if (!conversionContext.isInComplexFieldDefinition()) {
           
        if (pPr!=null && pPr.getTabs()!=null) {
         
          // xsl:when test="count($p/w:pPr/w:tabs/w:tab[1][@w:leader='dot' and @w:val='right'])=1"
          CTTabStop tabStop = pPr.getTabs().getTab().get(0);
          if (tabStop!=null
              && tabStop.getLeader().equals(STTabTlc.DOT)
              && tabStop.getVal().equals(STTabJc.RIGHT) ) {
           
          // <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
          //        leader-length.maximum="100%" leader-pattern="dots">
            Element foLeader = document.createElementNS(XSL_FO, "leader");           
            foLeader.setAttribute("leader-length.minimum""12pt");
View Full Code Here

Examples of org.docx4j.wml.CTTabStop

//          && pPr.getPStyle()!=null
//          && pPr.getPStyle().getVal()!=null
//          && pPr.getPStyle().getVal().startsWith("TOC") 
          ) {
       
        CTTabStop tabStop = pPr.getTabs().getTab().get(0);
        if (tabStop!=null
            //&& tabStop.getLeader().equals(STTabTlc.DOT)
            && tabStop.getVal().equals(STTabJc.RIGHT) ) {
         
          foBlockElement.setAttribute("text-align-last""justify");
        }
      }
     
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabStop

    p.setRsidR("00EF7E24".getBytes());
    p.setRsidRDefault("00EF7E24".getBytes());
    CTPPr pPr = p.addNewPPr();
    pPr.addNewPStyle().setVal("TOC" + level);
    CTTabs tabs = pPr.addNewTabs();
    CTTabStop tab = tabs.addNewTab();
    tab.setVal(STTabJc.RIGHT);
    tab.setLeader(STTabTlc.DOT);
    tab.setPos(new BigInteger("8290"));
    pPr.addNewRPr().addNewNoProof();
    CTR run = p.addNewR();
    run.addNewRPr().addNewNoProof();
    run.addNewT().set(title);
    run = p.addNewR();
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabStop

    p.setRsidR("00EF7E24".getBytes());
    p.setRsidRDefault("00EF7E24".getBytes());
    CTPPr pPr = p.addNewPPr();
    pPr.addNewPStyle().setVal("TOC" + level);
    CTTabs tabs = pPr.addNewTabs();
    CTTabStop tab = tabs.addNewTab();
    tab.setVal(STTabJc.RIGHT);
    tab.setLeader(STTabTlc.DOT);
    tab.setPos(new BigInteger("8290"));
    pPr.addNewRPr().addNewNoProof();
    CTR run = p.addNewR();
    run.addNewRPr().addNewNoProof();
    run.addNewT().setStringValue(title);
    run = p.addNewR();
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.