类 CustomXHTMLMapper
java.lang.Object
fr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,fr.opensagres.poi.xwpf.converter.xhtml.XHTMLOptions,fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMasterPage>
fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
com.publiccms.common.document.CustomXHTMLMapper
- 所有已实现的接口:
fr.opensagres.poi.xwpf.converter.core.IMasterPageHandler<fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMasterPage>
public class CustomXHTMLMapper
extends fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
-
字段概要
字段修饰符和类型字段说明private final ContentHandler
private org.apache.poi.xwpf.usermodel.XWPFParagraph
private AttributesImpl
(专用程序包) static final String
从类继承的字段 fr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor
document, options, processingTotalPageCountField, stylesDocument, totalPageFieldUsed
-
构造器概要
构造器构造器说明CustomXHTMLMapper
(org.apache.poi.xwpf.usermodel.XWPFDocument document, ContentHandler contentHandler, fr.opensagres.poi.xwpf.converter.xhtml.XHTMLOptions options) -
方法概要
修饰符和类型方法说明private void
characters
(String content) private AttributesImpl
createStyleAttribute
(fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle cssStyle, List<fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle> styleList) private List<fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle>
createStyleList
(String styleId) private List<fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle>
createStyleList
(String styleId, boolean withDeafult) protected fr.opensagres.poi.xwpf.converter.core.styles.XWPFStylesDocument
createStylesDocument
(org.apache.poi.xwpf.usermodel.XWPFDocument document) private void
endElement
(String name) void
setActiveMasterPage
(fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMasterPage masterPage) private void
startElement
(String name, Attributes attributes) protected Object
startVisitParagraph
(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph, fr.opensagres.poi.xwpf.converter.core.ListItemContext itemContext, Object parentContainer) protected Object
startVisitTable
(org.apache.poi.xwpf.usermodel.XWPFTable table, float[] colWidths, Object tableContainer) protected Object
startVisitTableCell
(org.apache.poi.xwpf.usermodel.XWPFTableCell cell, Object tableContainer, boolean firstRow, boolean lastRow, boolean firstCell, boolean lastCell, List<org.apache.poi.xwpf.usermodel.XWPFTableCell> vMergeCells) protected void
startVisitTableRow
(org.apache.poi.xwpf.usermodel.XWPFTableRow row, Object tableContainer, int rowIndex, boolean headerRow) protected void
visitRun
(org.apache.poi.xwpf.usermodel.XWPFRun run, boolean pageNumber, String url, Object paragraphContainer) protected void
visitStyleText
(org.apache.poi.xwpf.usermodel.XWPFRun run, String text, Object parent, boolean pageNumber) protected void
visitTabs
(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabs tabs, Object paragraphContainer) protected void
visitText
(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText ctText, boolean pageNumber, Object paragraphContainer) 从类继承的方法 fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
addNewLine, createMasterPage, endVisitDocument, endVisitParagraph, endVisitSDT, endVisitTable, endVisitTableCell, endVisitTableRow, getStylesDocument, pageBreak, startVisitDocument, startVisitSDT, visitBookmark, visitEmptyRun, visitFooter, visitHeader, visitPicture, visitTab, visitVmlPicture
从类继承的方法 fr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor
getBodyElements, getImageExtractor, getMasterPageManager, getOptions, getPictureData, getPictureDataByID, getXWPFAbstractNum, getXWPFFooter, getXWPFHeader, getXWPFNum, getXWPFStyle, hasTextStyles, isWordDocumentPartParsing, start, visitAnchor, visitBodyElements, visitBR, visitCell, visitDrawing, visitFooterRef, visitHeaderRef, visitInline, visitParagraph, visitParagraphBody, visitSDT, visitSDTBody, visitTable, visitTableBody, visitTableCellBody, visitTableRow
-
字段详细资料
-
TAB_CHAR_SEQUENCE
- 另请参阅:
-
contentHandler
-
currentParagraph
private org.apache.poi.xwpf.usermodel.XWPFParagraph currentParagraph -
currentRunAttributes
-
-
构造器详细资料
-
CustomXHTMLMapper
public CustomXHTMLMapper(org.apache.poi.xwpf.usermodel.XWPFDocument document, ContentHandler contentHandler, fr.opensagres.poi.xwpf.converter.xhtml.XHTMLOptions options) throws Exception - 抛出:
Exception
-
-
方法详细资料
-
createStylesDocument
protected fr.opensagres.poi.xwpf.converter.core.styles.XWPFStylesDocument createStylesDocument(org.apache.poi.xwpf.usermodel.XWPFDocument document) throws org.apache.xmlbeans.XmlException, IOException - 覆盖:
createStylesDocument
在类中fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
- 抛出:
org.apache.xmlbeans.XmlException
IOException
-
setActiveMasterPage
public void setActiveMasterPage(fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMasterPage masterPage) - 指定者:
setActiveMasterPage
在接口中fr.opensagres.poi.xwpf.converter.core.IMasterPageHandler<fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMasterPage>
- 覆盖:
setActiveMasterPage
在类中fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
-
startVisitParagraph
protected Object startVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph, fr.opensagres.poi.xwpf.converter.core.ListItemContext itemContext, Object parentContainer) throws Exception - 覆盖:
startVisitParagraph
在类中fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
- 抛出:
Exception
-
visitRun
protected void visitRun(org.apache.poi.xwpf.usermodel.XWPFRun run, boolean pageNumber, String url, Object paragraphContainer) throws Exception - 覆盖:
visitRun
在类中fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
- 抛出:
Exception
-
visitText
protected void visitText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText ctText, boolean pageNumber, Object paragraphContainer) throws Exception - 覆盖:
visitText
在类中fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
- 抛出:
Exception
-
visitStyleText
protected void visitStyleText(org.apache.poi.xwpf.usermodel.XWPFRun run, String text, Object parent, boolean pageNumber) throws Exception - 覆盖:
visitStyleText
在类中fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
- 抛出:
Exception
-
visitTabs
protected void visitTabs(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabs tabs, Object paragraphContainer) throws Exception - 覆盖:
visitTabs
在类中fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
- 抛出:
Exception
-
startVisitTable
protected Object startVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float[] colWidths, Object tableContainer) throws Exception - 覆盖:
startVisitTable
在类中fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
- 抛出:
Exception
-
startVisitTableRow
protected void startVisitTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row, Object tableContainer, int rowIndex, boolean headerRow) throws Exception - 覆盖:
startVisitTableRow
在类中fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
- 抛出:
Exception
-
startVisitTableCell
protected Object startVisitTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell, Object tableContainer, boolean firstRow, boolean lastRow, boolean firstCell, boolean lastCell, List<org.apache.poi.xwpf.usermodel.XWPFTableCell> vMergeCells) throws Exception - 覆盖:
startVisitTableCell
在类中fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
- 抛出:
Exception
-
characters
- 抛出:
SAXException
-
startElement
- 抛出:
SAXException
-
endElement
- 抛出:
SAXException
-
createStyleList
-
createStyleList
-
createStyleAttribute
private AttributesImpl createStyleAttribute(fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle cssStyle, List<fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle> styleList)
-