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;
}
Aggregations