类 NiceXWPFDocument
- java.lang.Object
-
- org.apache.poi.ooxml.POIXMLDocumentPart
-
- org.apache.poi.ooxml.POIXMLDocument
-
- org.apache.poi.xwpf.usermodel.XWPFDocument
-
- com.deepoove.poi.xwpf.NiceXWPFDocument
-
- 所有已实现的接口:
Closeable,AutoCloseable,org.apache.poi.xwpf.usermodel.Document,org.apache.poi.xwpf.usermodel.IBody
public class NiceXWPFDocument extends org.apache.poi.xwpf.usermodel.XWPFDocument
-
-
字段概要
字段 修饰符和类型 字段 说明 protected booleanadjustDocprotected List<org.apache.poi.xwpf.usermodel.XWPFPicture>allPicturesprotected List<org.apache.poi.xwpf.usermodel.XWPFTable>allTablesprotected Map<org.apache.poi.xwpf.usermodel.XWPFChart,org.apache.poi.openxml4j.opc.PackagePart>chartMappingPartprotected static org.apache.poi.xwpf.usermodel.XWPFRelationDOCUMENTprotected List<org.apache.poi.ooxml.POIXMLDocumentPart>embeddsprotected IdenifierManagerWrapperidenifierManagerWrapperprotected List<XWPFStructuredDocumentTag>structuredDocumentTags-
从类继承的字段 org.apache.poi.xwpf.usermodel.XWPFDocument
bodyElements, charts, contentControls, endnotes, footers, footnotes, headers, hyperlinks, numbering, packagePictures, paragraphs, pictures, styles, tables
-
-
构造器概要
构造器 构造器 说明 NiceXWPFDocument()NiceXWPFDocument(InputStream in)NiceXWPFDocument(InputStream in, boolean adjustDoc)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.apache.poi.ooxml.POIXMLDocumentPart.RelationPartaddChartData(org.apache.poi.xwpf.usermodel.XWPFChart chart)StringaddEmbeddData(byte[] embeddData, int format)StringaddEmbeddData(byte[] embeddData, String contentType, String part)BigIntegeraddNewMultiLevelNumberingId(NumberingFormat... numFmts)BigIntegeraddNewNumberingId(NumberingFormat numFmt)protected voidcommit()NiceXWPFDocumentgenerate()NiceXWPFDocumentgenerate(boolean adjust)List<org.apache.poi.xwpf.usermodel.XWPFPicture>getAllEmbeddedPictures()List<org.apache.poi.xwpf.usermodel.XWPFTable>getAllTables()IdenifierManagerWrappergetDocPrIdenifierManager()org.apache.poi.xwpf.usermodel.XWPFParagraphinsertNewParagraph(org.apache.xmlbeans.XmlCursor cursor)org.apache.poi.xwpf.usermodel.XWPFTableinsertNewTbl(org.apache.xmlbeans.XmlCursor cursor)NiceXWPFDocumentmerge(NiceXWPFDocument docMerge)NiceXWPFDocumentmerge(Iterator<NiceXWPFDocument> iterator, org.apache.poi.xwpf.usermodel.XWPFRun run)NiceXWPFDocumentmerge(List<NiceXWPFDocument> docMerges, org.apache.poi.xwpf.usermodel.XWPFRun run)protected voidonDocumentCreate()booleanremoveBodyElement(int pos)-
从类继承的方法 org.apache.poi.xwpf.usermodel.XWPFDocument
addEndnote, addFootnote, addPictureData, addPictureData, createChart, createChart, createChart, createComments, createEndnote, createEndnotes, createFooter, createFootnote, createFootnotes, createHeader, createHeaderFooterPolicy, createNumbering, createParagraph, createStyles, createTable, createTable, createTOC, enforceCommentsProtection, enforceCommentsProtection, enforceFillingFormsProtection, enforceFillingFormsProtection, enforceReadonlyProtection, enforceReadonlyProtection, enforceTrackedChangesProtection, enforceTrackedChangesProtection, enforceUpdateFields, getAllEmbeddedParts, getAllPackagePictures, getAllPictures, getBodyElements, getBodyElementsIterator, getBodyElementsSpliterator, getCharts, getCommentByID, getComments, getDocComments, getDocument, getEndnoteByID, getEndnotes, getEvenAndOddHeadings, getFooterArray, getFooterList, getFootnoteByID, getFootnotes, getHeaderArray, getHeaderFooterPolicy, getHeaderList, getHyperlinkByID, getHyperlinks, getLastParagraph, getMirrorMargins, getNextPicNameNumber, getNumbering, getParagraph, getParagraphArray, getParagraphPos, getParagraphs, getParagraphsIterator, getParagraphsSpliterator, getPart, getPartById, getPartType, getPictureDataByID, getPosOfParagraph, getPosOfTable, getSettings, getStyle, getStyles, getTable, getTableArray, getTableCell, getTablePos, getTables, getTablesIterator, getTablesSpliterator, getTblStyle, getXWPFDocument, getZoomPercent, insertTable, isEnforcedCommentsProtection, isEnforcedFillingFormsProtection, isEnforcedProtection, isEnforcedReadonlyProtection, isEnforcedTrackedChangesProtection, isEnforcedUpdateFields, isTrackRevisions, newPackage, onDocumentRead, removeEndnote, removeFootnote, removeProtectionEnforcement, setEvenAndOddHeadings, setMirrorMargins, setParagraph, setTable, setTrackRevisions, setZoomPercent, validateProtectionPassword
-
从类继承的方法 org.apache.poi.ooxml.POIXMLDocument
close, getCorePart, getPackage, getProperties, getRelatedByType, load, openPackage, write
-
从类继承的方法 org.apache.poi.ooxml.POIXMLDocumentPart
_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommitted, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, removeRelation, setCommitted, toString
-
-
-
-
字段详细资料
-
structuredDocumentTags
protected List<XWPFStructuredDocumentTag> structuredDocumentTags
-
allTables
protected List<org.apache.poi.xwpf.usermodel.XWPFTable> allTables
-
allPictures
protected List<org.apache.poi.xwpf.usermodel.XWPFPicture> allPictures
-
embedds
protected List<org.apache.poi.ooxml.POIXMLDocumentPart> embedds
-
idenifierManagerWrapper
protected IdenifierManagerWrapper idenifierManagerWrapper
-
adjustDoc
protected boolean adjustDoc
-
chartMappingPart
protected Map<org.apache.poi.xwpf.usermodel.XWPFChart,org.apache.poi.openxml4j.opc.PackagePart> chartMappingPart
-
DOCUMENT
protected static org.apache.poi.xwpf.usermodel.XWPFRelation DOCUMENT
-
-
构造器详细资料
-
NiceXWPFDocument
public NiceXWPFDocument()
-
NiceXWPFDocument
public NiceXWPFDocument(InputStream in) throws IOException
-
NiceXWPFDocument
public NiceXWPFDocument(InputStream in, boolean adjustDoc) throws IOException
-
-
方法详细资料
-
onDocumentCreate
protected void onDocumentCreate()
-
getAllEmbeddedPictures
public List<org.apache.poi.xwpf.usermodel.XWPFPicture> getAllEmbeddedPictures()
-
getAllTables
public List<org.apache.poi.xwpf.usermodel.XWPFTable> getAllTables()
-
getDocPrIdenifierManager
public IdenifierManagerWrapper getDocPrIdenifierManager()
-
addNewNumberingId
public BigInteger addNewNumberingId(NumberingFormat numFmt)
-
addNewMultiLevelNumberingId
public BigInteger addNewMultiLevelNumberingId(NumberingFormat... numFmts)
-
addChartData
public org.apache.poi.ooxml.POIXMLDocumentPart.RelationPart addChartData(org.apache.poi.xwpf.usermodel.XWPFChart chart) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException, IOException
-
addEmbeddData
public String addEmbeddData(byte[] embeddData, int format) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException
-
addEmbeddData
public String addEmbeddData(byte[] embeddData, String contentType, String part) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException, IOException
-
commit
protected void commit() throws IOException
-
generate
public NiceXWPFDocument generate() throws IOException
-
generate
public NiceXWPFDocument generate(boolean adjust) throws IOException
-
merge
public NiceXWPFDocument merge(NiceXWPFDocument docMerge) throws Exception
-
merge
public NiceXWPFDocument merge(List<NiceXWPFDocument> docMerges, org.apache.poi.xwpf.usermodel.XWPFRun run) throws Exception
-
merge
public NiceXWPFDocument merge(Iterator<NiceXWPFDocument> iterator, org.apache.poi.xwpf.usermodel.XWPFRun run) throws Exception
-
insertNewParagraph
public org.apache.poi.xwpf.usermodel.XWPFParagraph insertNewParagraph(org.apache.xmlbeans.XmlCursor cursor)
-
insertNewTbl
public org.apache.poi.xwpf.usermodel.XWPFTable insertNewTbl(org.apache.xmlbeans.XmlCursor cursor)
-
removeBodyElement
public boolean removeBodyElement(int pos)
-
-