Package org.docx4j.model.listnumbering

Examples of org.docx4j.model.listnumbering.ListLevel


    if (lnd==null) {
      log.debug("couldn't find list for numId: " + numId);
      return null;
    }
    if (ilvl==null) ilvl = "0";
    ListLevel ll = lnd.getLevel(ilvl);
    if (ll==null) {
      log.warn("No ListLevel defined for level " + ilvl + " in list " + numId);
      return null;
    }
   
    // OK, now on the JAXB plane
    Lvl jaxbOverrideLvl = ll.getJaxbOverrideLvl();
   
    log.debug("Looking at override/instance definition..");
    if (jaxbOverrideLvl!=null) {
     
      Ind ind = getIndFromLvl(jaxbOverrideLvl);
      if (ind!=null) {
        log.debug("Got it..");
        return ind;
      }
    }
   
    // Now do the same for the abstract definition
    log.debug("Looking at abstract definition..");
    Lvl abstractLvl = ll.getJaxbAbstractLvl();
    Ind ind = getIndFromLvl(abstractLvl);
   
    return ind;
  }
View Full Code Here


      log.warn("Couldn't find abstract list for instance list " + numId);
      tag.setVal("HTML_ELEMENT=OL");
      return;
    }
   
    ListLevel level = ald.getListLevels().get(ilvl.toString());
    if (level==null) {
      // Default to UL
      log.warn("Couldn't find level " + ilvl.toString() + " in instance list ");
      tag.setVal("HTML_ELEMENT=OL");
      return;     
    }
   
    if (level.IsBullet()) {
      tag.setVal("HTML_ELEMENT=UL");     
    } else {
      tag.setVal("HTML_ELEMENT=OL");           
    }
   
View Full Code Here

TOP

Related Classes of org.docx4j.model.listnumbering.ListLevel

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.