for (LocatedChunk locatedChunk : bf.getAltChunks()) { altChunk = locatedChunk.getAltChunk(); AlternativeFormatInputPart afip = (AlternativeFormatInputPart)clonedPart.getRelationshipsPart().getPart( int index = locatedChunk.getIndex(); locatedChunk.getContentList().remove(index); // handles case where it is nested eg in a tc locatedChunk.getContentList().addAll(index, results); int index = locatedChunk.getIndex(); locatedChunk.getContentList().remove(index); // handles case where it is nested eg in a tc locatedChunk.getContentList().add(index, para);
public List<Object> apply(Object o, List contentList, int index) { if (o instanceof CTAltChunk) { getAltChunks().add( new LocatedChunk((CTAltChunk)o, contentList, index)); } return null; }
for (LocatedChunk locatedChunk : bf.getAltChunks()) { altChunk = locatedChunk.getAltChunk(); AlternativeFormatInputPart afip = (AlternativeFormatInputPart)clonedPart.getRelationshipsPart().getPart( int index = locatedChunk.getIndex(); locatedChunk.getContentList().remove(index); // handles case where it is nested eg in a tc locatedChunk.getContentList().addAll(index, results); int index = locatedChunk.getIndex(); locatedChunk.getContentList().remove(index); // handles case where it is nested eg in a tc locatedChunk.getContentList().add(index, para);
CTAltChunk altChunk = locatedChunk.getAltChunk(); AlternativeFormatInputPart part = (AlternativeFormatInputPart) mainDocumentPart.getRelationshipsPart().getPart( List results = xHTMLImporter.convert( htmlImportProcessor.processHtml(toString(part.getBuffer())), null); locatedChunk.getContentList().remove(locatedChunk.getIndex()); Object chunkParent = locatedChunk.getAltChunk().getParent();
CTAltChunk altChunk = locatedChunk.getAltChunk(); AlternativeFormatInputPart part = (AlternativeFormatInputPart) mainDocumentPart.getRelationshipsPart().getPart( List results = xHTMLImporter.convert( htmlImportProcessor.processHtml(toString(part.getBuffer())), null); locatedChunk.getContentList().remove(locatedChunk.getIndex()); Object chunkParent = locatedChunk.getAltChunk().getParent();
public List<Object> apply(Object o, List contentList, int index) { if (o instanceof CTAltChunk) { getAltChunks().add( new LocatedChunk((CTAltChunk)o, contentList, index)); } return null; }
LocatedChunk(CTAltChunk altChunk, List contentList, int index) { this.setAltChunk(altChunk); this.contentList = contentList; this.index=index; }
LocatedChunk(CTAltChunk altChunk, List contentList, int index) { this.setAltChunk(altChunk); this.contentList = contentList; this.index=index; }