Search in sources :

Example 1 with LFOData

use of org.apache.poi.hwpf.model.LFOData in project poi by apache.

the class HWPFLister method dumpParagraphLevels.

protected void dumpParagraphLevels(ListTables listTables, ParagraphProperties paragraph) {
    if (paragraph.getIlfo() != 0) {
        final LFO lfo = listTables.getLfo(paragraph.getIlfo());
        System.out.println("PAP's LFO: " + lfo);
        final LFOData lfoData = listTables.getLfoData(paragraph.getIlfo());
        System.out.println("PAP's LFOData: " + lfoData);
        if (lfo != null) {
            final ListLevel listLevel = listTables.getLevel(lfo.getLsid(), paragraph.getIlvl());
            System.out.println("PAP's ListLevel: " + listLevel);
            if (listLevel.getGrpprlPapx() != null) {
                System.out.println("PAP's ListLevel PAPX:");
                dumpSprms(new SprmIterator(listLevel.getGrpprlPapx(), 0), "* ");
            }
            if (listLevel.getGrpprlPapx() != null) {
                System.out.println("PAP's ListLevel CHPX:");
                dumpSprms(new SprmIterator(listLevel.getGrpprlChpx(), 0), "* ");
            }
        }
    }
}
Also used : SprmIterator(org.apache.poi.hwpf.sprm.SprmIterator) LFO(org.apache.poi.hwpf.model.LFO) LFOData(org.apache.poi.hwpf.model.LFOData) ListLevel(org.apache.poi.hwpf.model.ListLevel)

Aggregations

LFO (org.apache.poi.hwpf.model.LFO)1 LFOData (org.apache.poi.hwpf.model.LFOData)1 ListLevel (org.apache.poi.hwpf.model.ListLevel)1 SprmIterator (org.apache.poi.hwpf.sprm.SprmIterator)1