/** * Inserts a list into the beginning of this range. * * @param props * The properties of the list entry. All list entries are * paragraphs. * @param listID * The id of the list that contains the properties. * @param level * The indentation level of the list. * @param styleIndex * The base style's index in the stylesheet. * @return The empty ListEntry that is now part of the document. * @deprecated Use code shall not work with {@link ParagraphProperties} */ @Deprecated public ListEntry insertBefore(ParagraphProperties props, int listID, int level, int styleIndex) { ListTables lt = _doc.getListTables(); if (lt.getLevel(listID, level) == null) { throw new NoSuchElementException("The specified list and level do not exist"); } int ilfo = lt.getOverrideIndexFromListID(listID); props.setIlfo(ilfo); props.setIlvl((byte) level); return (ListEntry) insertBefore(props, styleIndex); }
/** * Inserts a list into the beginning of this range. * * @param props * The properties of the list entry. All list entries are * paragraphs. * @param listID * The id of the list that contains the properties. * @param level * The indentation level of the list. * @param styleIndex * The base style's index in the stylesheet. * @return The empty ListEntry that is now part of the document. * @deprecated Use code shall not work with {@link ParagraphProperties} */ @Deprecated public ListEntry insertAfter(ParagraphProperties props, int listID, int level, int styleIndex) { ListTables lt = _doc.getListTables(); if (lt.getLevel(listID, level) == null) { throw new NoSuchElementException("The specified list and level do not exist"); } int ilfo = lt.getOverrideIndexFromListID(listID); props.setIlfo(ilfo); props.setIlvl((byte) level); return (ListEntry) insertAfter(props, styleIndex); }
public HWPFList getList() { if ( getIlfo() == 0x000 || getIlfo() == 0xF801 ) { throw new IllegalStateException( "Paragraph not in list" ); } return new HWPFList( getDocument().getStyleSheet(), getDocument().getListTables(), getIlfo() ); }
@Internal ListEntry( PAPX papx, ParagraphProperties properties, Range parent ) { super( papx, properties, parent ); final ListTables tables = parent._doc.getListTables(); if ( tables != null && _props.getIlfo() < tables.getOverrideCount() ) { ListFormatOverride override = tables.getOverride( _props.getIlfo() ); _overrideLevel = override.getOverrideLevel( _props.getIlvl() ); _level = tables.getLevel( override.getLsid(), _props.getIlvl() ); } else { log.log( POILogger.WARN, "No ListTables found for ListEntry - document probably partly corrupt, " + "and you may experience problems" ); } }
protected void processParagraphes( HWPFDocumentCore wordDocument, Element flow, Range range, int currentTableLevel ) final ListTables listTables = wordDocument.getListTables(); int currentListInfo = 0;
ListTables listTables = doc.getListTables(); StyleSheet styleSheet = doc.getStyleSheet();
ListTables listTables = doc.getListTables(); StyleSheet styleSheet = doc.getStyleSheet();