ListEntry aListEntry = (ListEntry) aParagraph; ListData listData = listTables.getListData(aListEntry.getIlfo()); int numberFormat = listData.getLevel(listData.numLevels()).getNumberFormat();
/** * Sets the paragraph properties for a particular level of the list. * * @param level The level number. * @param pap The paragraph properties */ public void setLevelParagraphProperties(int level, ParagraphProperties pap) { ListLevel listLevel = _listData.getLevel(level); int styleIndex = _listData.getLevelStyle(level); ParagraphProperties base = _styleSheet.getParagraphStyle(styleIndex); byte[] grpprl = ParagraphSprmCompressor.compressParagraphProperty(pap, base); listLevel.setLevelProperties(grpprl); }
/** * Sets the character properties of the list numbers. * * @param level the level number that the properties should apply to. * @param chp The character properties. */ public void setLevelNumberProperties(int level, CharacterProperties chp) { ListLevel listLevel = _listData.getLevel(level); int styleIndex = _listData.getLevelStyle(level); CharacterProperties base = _styleSheet.getCharacterStyle(styleIndex); byte[] grpprl = CharacterSprmCompressor.compressCharacterProperty(chp, base); listLevel.setNumberProperties(grpprl); }
/** * Sets the character properties of the list numbers. * * @param level * the level number that the properties should apply to. * @param chp * The character properties. */ public void setLevelNumberProperties( int level, CharacterProperties chp ) { ListLevel listLevel = _listData.getLevel( level ); int styleIndex = _listData.getLevelStyle( level ); CharacterProperties base = _styleSheet.getCharacterStyle( styleIndex ); byte[] grpprl = CharacterSprmCompressor.compressCharacterProperty( chp, base ); listLevel.setNumberProperties( grpprl ); }
/** * Sets the paragraph properties for a particular level of the list. * * @param level * The level number. * @param pap * The paragraph properties */ public void setLevelParagraphProperties( int level, ParagraphProperties pap ) { ListLevel listLevel = _listData.getLevel( level ); int styleIndex = _listData.getLevelStyle( level ); ParagraphProperties base = _styleSheet.getParagraphStyle( styleIndex ); byte[] grpprl = ParagraphSprmCompressor.compressParagraphProperty( pap, base ); listLevel.setLevelProperties( grpprl ); }