类 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 ContentHandlerprivate org.apache.poi.xwpf.usermodel.XWPFParagraphprivate 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 voidcharacters(String content) private AttributesImplcreateStyleAttribute(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.XWPFStylesDocumentcreateStylesDocument(org.apache.poi.xwpf.usermodel.XWPFDocument document) private voidendElement(String name) voidsetActiveMasterPage(fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMasterPage masterPage) private voidstartElement(String name, Attributes attributes) protected ObjectstartVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph, fr.opensagres.poi.xwpf.converter.core.ListItemContext itemContext, Object parentContainer) protected ObjectstartVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float[] colWidths, Object tableContainer) protected ObjectstartVisitTableCell(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 voidstartVisitTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row, Object tableContainer, int rowIndex, boolean headerRow) protected voidvisitRun(org.apache.poi.xwpf.usermodel.XWPFRun run, boolean pageNumber, String url, Object paragraphContainer) protected voidvisitStyleText(org.apache.poi.xwpf.usermodel.XWPFRun run, String text, Object parent, boolean pageNumber) protected voidvisitTabs(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabs tabs, Object paragraphContainer) protected voidvisitText(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.XmlExceptionIOException
-
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)
-