Package org.docx4j.wml.Numbering

Examples of org.docx4j.wml.Numbering.Num


      // Generate the new <w:num
      long newNumId = instanceListDefinitions.size() + 1;
     
    org.docx4j.wml.ObjectFactory factory = Context.getWmlObjectFactory();
   
    Num newNum = factory.createNumberingNum();
    newNum.setNumId( BigInteger.valueOf(newNumId) );
    AbstractNumId abstractNumId = factory.createNumberingNumAbstractNumId();
    abstractNumId.setVal(abstractNumIdVal);
    newNum.setAbstractNumId(abstractNumId);
   
    LvlOverride lvlOverride = factory.createNumberingNumLvlOverride();
    lvlOverride.setIlvl(BigInteger.valueOf(ilvl));
    newNum.getLvlOverride().add(lvlOverride);
   
    StartOverride start = factory.createNumberingNumLvlOverrideStartOverride();
    start.setVal(BigInteger.valueOf(val));
    lvlOverride.setStartOverride(start);
     
View Full Code Here

TOP

Related Classes of org.docx4j.wml.Numbering.Num

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.