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) |
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, setActiveMasterPage, startVisitDocument, startVisitSDT, visitBookmark, visitEmptyRun, visitFooter, visitHeader, visitPicture, visitTab, visitVmlPicturegetBodyElements, 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, visitTableRowstatic 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.Exceptionprotected 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.XHTMLMapperorg.apache.xmlbeans.XmlExceptionjava.io.IOExceptionprotected 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.XHTMLMapperjava.lang.Exceptionprotected 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.XHTMLMapperjava.lang.Exceptionprotected 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.XHTMLMapperjava.lang.Exceptionprotected 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.XHTMLMapperjava.lang.Exceptionprotected 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.XHTMLMapperjava.lang.Exceptionprotected 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.XHTMLMapperjava.lang.Exceptionprotected 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.XHTMLMapperjava.lang.Exceptionprotected 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.XHTMLMapperjava.lang.Exceptionprivate void characters(java.lang.String content)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprivate void startElement(java.lang.String name,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprivate void endElement(java.lang.String name)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprivate 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)