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

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

Introduction

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

Prototype

public boolean isLegalNumbering() 

Source Link

Document

Determines if the number formatting shall be overridden by msonfcArabic ; unless it originally was msonfcArabicLZ in which case it is preserved.

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();//from  w w w  . j a  v  a 2s.  com
    restart = listLevel.getRestart();
    isLegal = listLevel.isLegalNumbering();
    numFmt = convertToNewNumFormat(listLevel.getNumberFormat());
    lvlText = convertToNewNumberText(listLevel.getNumberText(),
            listLevel.getLevelNumberingPlaceholderOffsets());
    return new LevelTuple(start, restart, lvlText, numFmt, isLegal);
}