Example usage for org.apache.poi.hwpf.model ListLevel getNumberFormat

List of usage examples for org.apache.poi.hwpf.model ListLevel getNumberFormat

Introduction

In this page you can find the example usage for org.apache.poi.hwpf.model ListLevel getNumberFormat.

Prototype

public int getNumberFormat() 

Source Link

Document

"Number format code (see anld.nfc for a list of options)"

Usage

From source file:org.apache.tika.parser.microsoft.ListManager.java

License:Apache License

private LevelTuple buildTuple(int i, ListLevel listLevel) {
    boolean isLegal = false;
    int start = 1;
    int restart = -1;
    String lvlText = "%" + i + ".";
    String numFmt = "decimal";

    start = listLevel.getStartAt();//w ww . j  a va 2 s .c o  m
    restart = listLevel.getRestart();
    isLegal = listLevel.isLegalNumbering();
    numFmt = convertToNewNumFormat(listLevel.getNumberFormat());
    lvlText = convertToNewNumberText(listLevel.getNumberText(),
            listLevel.getLevelNumberingPlaceholderOffsets());
    return new LevelTuple(start, restart, lvlText, numFmt, isLegal);
}