public class CustomXHTMLMapper
extends fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
限定符和类型 | 字段和说明 |
---|---|
private org.xml.sax.ContentHandler |
contentHandler |
private org.apache.poi.xwpf.usermodel.XWPFParagraph |
currentParagraph |
private org.xml.sax.helpers.AttributesImpl |
currentRunAttributes |
(专用程序包) static java.lang.String |
TAB_CHAR_SEQUENCE |
构造器和说明 |
---|
CustomXHTMLMapper(org.apache.poi.xwpf.usermodel.XWPFDocument document,
org.xml.sax.ContentHandler contentHandler,
fr.opensagres.poi.xwpf.converter.xhtml.XHTMLOptions options) |
限定符和类型 | 方法和说明 |
---|---|
private void |
characters(java.lang.String content) |
private org.xml.sax.helpers.AttributesImpl |
createStyleAttribute(fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle cssStyle,
java.util.List<fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle> styleList) |
private java.util.List<fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle> |
createStyleList(java.lang.String styleId) |
private java.util.List<fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle> |
createStyleList(java.lang.String styleId,
boolean withDeafult) |
protected fr.opensagres.poi.xwpf.converter.core.styles.XWPFStylesDocument |
createStylesDocument(org.apache.poi.xwpf.usermodel.XWPFDocument document) |
private void |
endElement(java.lang.String name) |
void |
setActiveMasterPage(fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMasterPage masterPage) |
private void |
startElement(java.lang.String name,
org.xml.sax.Attributes attributes) |
protected java.lang.Object |
startVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph,
fr.opensagres.poi.xwpf.converter.core.ListItemContext itemContext,
java.lang.Object parentContainer) |
protected java.lang.Object |
startVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
float[] colWidths,
java.lang.Object tableContainer) |
protected java.lang.Object |
startVisitTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell,
java.lang.Object tableContainer,
boolean firstRow,
boolean lastRow,
boolean firstCell,
boolean lastCell,
java.util.List<org.apache.poi.xwpf.usermodel.XWPFTableCell> vMergeCells) |
protected void |
startVisitTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row,
java.lang.Object tableContainer,
int rowIndex,
boolean headerRow) |
protected void |
visitRun(org.apache.poi.xwpf.usermodel.XWPFRun run,
boolean pageNumber,
java.lang.String url,
java.lang.Object paragraphContainer) |
protected void |
visitStyleText(org.apache.poi.xwpf.usermodel.XWPFRun run,
java.lang.String text,
java.lang.Object parent,
boolean pageNumber) |
protected void |
visitTabs(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabs tabs,
java.lang.Object paragraphContainer) |
protected void |
visitText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText ctText,
boolean pageNumber,
java.lang.Object paragraphContainer) |
addNewLine, createMasterPage, endVisitDocument, endVisitParagraph, endVisitSDT, endVisitTable, endVisitTableCell, endVisitTableRow, getStylesDocument, pageBreak, startVisitDocument, startVisitSDT, visitBookmark, visitEmptyRun, visitFooter, visitHeader, visitPicture, visitTab, visitVmlPicture
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
static final java.lang.String TAB_CHAR_SEQUENCE
private final org.xml.sax.ContentHandler contentHandler
private org.apache.poi.xwpf.usermodel.XWPFParagraph currentParagraph
private org.xml.sax.helpers.AttributesImpl currentRunAttributes
public CustomXHTMLMapper(org.apache.poi.xwpf.usermodel.XWPFDocument document, org.xml.sax.ContentHandler contentHandler, fr.opensagres.poi.xwpf.converter.xhtml.XHTMLOptions options) throws java.lang.Exception
java.lang.Exception
protected fr.opensagres.poi.xwpf.converter.core.styles.XWPFStylesDocument createStylesDocument(org.apache.poi.xwpf.usermodel.XWPFDocument document) throws org.apache.xmlbeans.XmlException, java.io.IOException
createStylesDocument
在类中 fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
org.apache.xmlbeans.XmlException
java.io.IOException
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
protected java.lang.Object startVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph, fr.opensagres.poi.xwpf.converter.core.ListItemContext itemContext, java.lang.Object parentContainer) throws java.lang.Exception
startVisitParagraph
在类中 fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
java.lang.Exception
protected void visitRun(org.apache.poi.xwpf.usermodel.XWPFRun run, boolean pageNumber, java.lang.String url, java.lang.Object paragraphContainer) throws java.lang.Exception
visitRun
在类中 fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
java.lang.Exception
protected void visitText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText ctText, boolean pageNumber, java.lang.Object paragraphContainer) throws java.lang.Exception
visitText
在类中 fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
java.lang.Exception
protected void visitStyleText(org.apache.poi.xwpf.usermodel.XWPFRun run, java.lang.String text, java.lang.Object parent, boolean pageNumber) throws java.lang.Exception
visitStyleText
在类中 fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
java.lang.Exception
protected void visitTabs(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabs tabs, java.lang.Object paragraphContainer) throws java.lang.Exception
visitTabs
在类中 fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
java.lang.Exception
protected java.lang.Object startVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float[] colWidths, java.lang.Object tableContainer) throws java.lang.Exception
startVisitTable
在类中 fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
java.lang.Exception
protected void startVisitTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row, java.lang.Object tableContainer, int rowIndex, boolean headerRow) throws java.lang.Exception
startVisitTableRow
在类中 fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
java.lang.Exception
protected java.lang.Object startVisitTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell, java.lang.Object tableContainer, boolean firstRow, boolean lastRow, boolean firstCell, boolean lastCell, java.util.List<org.apache.poi.xwpf.usermodel.XWPFTableCell> vMergeCells) throws java.lang.Exception
startVisitTableCell
在类中 fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
java.lang.Exception
private void characters(java.lang.String content) throws org.xml.sax.SAXException
org.xml.sax.SAXException
private void startElement(java.lang.String name, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
org.xml.sax.SAXException
private void endElement(java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXException
private java.util.List<fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle> createStyleList(java.lang.String styleId)
private java.util.List<fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle> createStyleList(java.lang.String styleId, boolean withDeafult)
private org.xml.sax.helpers.AttributesImpl createStyleAttribute(fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle cssStyle, java.util.List<fr.opensagres.poi.xwpf.converter.xhtml.internal.styles.CSSStyle> styleList)