Search in sources :

Example 1 with ListFormatOverrideLevel

use of org.apache.poi.hwpf.model.ListFormatOverrideLevel in project tika by apache.

the class ListManager method buildOverrideTuples.

private LevelTuple[] buildOverrideTuples(Paragraph par, int length) {
    ListFormatOverrideLevel overrideLevel;
    // find the override for this level
    if (listTables.getLfoData(par.getIlfo()).getRgLfoLvl().length == 0) {
        return null;
    }
    overrideLevel = listTables.getLfoData(par.getIlfo()).getRgLfoLvl()[0];
    if (overrideLevel == null) {
        return null;
    }
    LevelTuple[] levelTuples = new LevelTuple[length];
    ListLevel listLevel = overrideLevel.getLevel();
    if (listLevel == null) {
        return null;
    }
    for (int i = 0; i < length; i++) {
        levelTuples[i] = buildTuple(i, listLevel);
    }
    return levelTuples;
}
Also used : ListFormatOverrideLevel(org.apache.poi.hwpf.model.ListFormatOverrideLevel) ListLevel(org.apache.poi.hwpf.model.ListLevel)

Aggregations

ListFormatOverrideLevel (org.apache.poi.hwpf.model.ListFormatOverrideLevel)1 ListLevel (org.apache.poi.hwpf.model.ListLevel)1