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

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

Introduction

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

Prototype

public byte[] getLevelNumberingPlaceholderOffsets() 

Source Link

Document

Array which specifies the character offsets of the level numbers in a level numbering string.

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  v a 2 s .  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);
}