类 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
    • 嵌套类概要

      • 从类继承的嵌套类/接口 org.apache.poi.ooxml.POIXMLDocumentPart

        org.apache.poi.ooxml.POIXMLDocumentPart.RelationPart
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected boolean adjustDoc
      protected List<org.apache.poi.xwpf.usermodel.XWPFPicture> allPictures
      protected List<org.apache.poi.xwpf.usermodel.XWPFTable> allTables
      protected Map<org.apache.poi.xwpf.usermodel.XWPFChart,​org.apache.poi.openxml4j.opc.PackagePart> chartMappingPart
      protected static org.apache.poi.xwpf.usermodel.XWPFRelation DOCUMENT
      protected List<org.apache.poi.ooxml.POIXMLDocumentPart> embedds
      protected IdenifierManagerWrapper idenifierManagerWrapper
      protected List<XWPFStructuredDocumentTag> structuredDocumentTags
      • 从类继承的字段 org.apache.poi.xwpf.usermodel.XWPFDocument

        bodyElements, charts, contentControls, endnotes, footers, footnotes, headers, hyperlinks, numbering, packagePictures, paragraphs, pictures, styles, tables
      • 从类继承的字段 org.apache.poi.ooxml.POIXMLDocument

        DOCUMENT_CREATOR, OLE_OBJECT_REL_TYPE, PACK_OBJECT_REL_TYPE
      • 从接口继承的字段 org.apache.poi.xwpf.usermodel.Document

        PICTURE_TYPE_BMP, PICTURE_TYPE_DIB, PICTURE_TYPE_EMF, PICTURE_TYPE_EPS, PICTURE_TYPE_GIF, PICTURE_TYPE_JPEG, PICTURE_TYPE_PICT, PICTURE_TYPE_PNG, PICTURE_TYPE_TIFF, PICTURE_TYPE_WMF, PICTURE_TYPE_WPG
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      org.apache.poi.ooxml.POIXMLDocumentPart.RelationPart addChartData​(org.apache.poi.xwpf.usermodel.XWPFChart chart)
      String addEmbeddData​(byte[] embeddData, int format)
      String addEmbeddData​(byte[] embeddData, String contentType, String part)
      BigInteger addNewMultiLevelNumberingId​(NumberingFormat... numFmts)
      BigInteger addNewNumberingId​(NumberingFormat numFmt)
      protected void commit()
      NiceXWPFDocument generate()
      NiceXWPFDocument generate​(boolean adjust)
      List<org.apache.poi.xwpf.usermodel.XWPFPicture> getAllEmbeddedPictures()
      List<org.apache.poi.xwpf.usermodel.XWPFTable> getAllTables()
      IdenifierManagerWrapper getDocPrIdenifierManager()
      org.apache.poi.xwpf.usermodel.XWPFParagraph insertNewParagraph​(org.apache.xmlbeans.XmlCursor cursor)
      org.apache.poi.xwpf.usermodel.XWPFTable insertNewTbl​(org.apache.xmlbeans.XmlCursor cursor)
      NiceXWPFDocument merge​(NiceXWPFDocument docMerge)
      NiceXWPFDocument merge​(Iterator<NiceXWPFDocument> iterator, org.apache.poi.xwpf.usermodel.XWPFRun run)
      NiceXWPFDocument merge​(List<NiceXWPFDocument> docMerges, org.apache.poi.xwpf.usermodel.XWPFRun run)
      protected void onDocumentCreate()
      boolean removeBodyElement​(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
    • 字段详细资料

      • 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
      • 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()
    • 方法详细资料

      • onDocumentCreate

        protected void onDocumentCreate()
      • getAllEmbeddedPictures

        public List<org.apache.poi.xwpf.usermodel.XWPFPicture> getAllEmbeddedPictures()
      • getAllTables

        public List<org.apache.poi.xwpf.usermodel.XWPFTable> getAllTables()
      • 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
      • 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)