public class XHTMLMapper extends XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>
document, options, processingTotalPageCountField, stylesDocument, totalPageFieldUsed| Constructor and Description |
|---|
XHTMLMapper(org.apache.poi.xwpf.usermodel.XWPFDocument document,
ContentHandler contentHandler,
XHTMLOptions options) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNewLine(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBr br,
Object paragraphContainer) |
XHTMLMasterPage |
createMasterPage(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr) |
protected XWPFStylesDocument |
createStylesDocument(org.apache.poi.xwpf.usermodel.XWPFDocument document) |
protected void |
endVisitDocument() |
protected void |
endVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph,
Object parentContainer,
Object paragraphContainer) |
protected void |
endVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
Object parentContainer,
Object tableContainer) |
protected void |
endVisitTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell,
Object tableContainer,
Object tableCellContainer) |
protected void |
endVisitTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row,
Object tableContainer,
boolean firstRow,
boolean lastRow,
boolean headerRow) |
CSSStylesDocument |
getStylesDocument() |
protected void |
pageBreak() |
void |
setActiveMasterPage(XHTMLMasterPage masterPage) |
protected Object |
startVisitDocument() |
protected Object |
startVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph,
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 |
visitBookmark(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBookmark bookmark,
org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph,
Object paragraphContainer) |
protected void |
visitEmptyRun(Object paragraphContainer) |
protected void |
visitFooter(org.apache.poi.xwpf.usermodel.XWPFFooter footer,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtrRef footerRef,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr,
XHTMLMasterPage masterPage) |
protected void |
visitHeader(org.apache.poi.xwpf.usermodel.XWPFHeader header,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtrRef headerRef,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr,
XHTMLMasterPage masterPage) |
protected void |
visitPicture(org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture picture,
Float offsetX,
org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.STRelFromH.Enum relativeFromH,
Float offsetY,
org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.STRelFromV.Enum relativeFromV,
org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.STWrapText.Enum wrapText,
Object parentContainer) |
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) |
protected void |
visitTab(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPTab o,
Object paragraphContainer) |
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) |
getBodyElements, getImageExtractor, getMasterPageManager, getOptions, getPictureData, getPictureDataByID, getXWPFAbstractNum, getXWPFFooter, getXWPFHeader, getXWPFNum, getXWPFStyle, isWordDocumentPartParsing, start, visitAnchor, visitBodyElements, visitBR, visitCell, visitDrawing, visitFooterRef, visitHeaderRef, visitInline, visitParagraph, visitParagraphBody, visitTable, visitTableBody, visitTableCellBody, visitTableRowpublic XHTMLMapper(org.apache.poi.xwpf.usermodel.XWPFDocument document,
ContentHandler contentHandler,
XHTMLOptions options)
throws Exception
Exceptionprotected XWPFStylesDocument createStylesDocument(org.apache.poi.xwpf.usermodel.XWPFDocument document) throws org.apache.xmlbeans.XmlException, IOException
createStylesDocument in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>org.apache.xmlbeans.XmlExceptionIOExceptionprotected Object startVisitDocument() throws Exception
startVisitDocument in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void endVisitDocument()
throws Exception
endVisitDocument in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected Object startVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph, ListItemContext itemContext, Object parentContainer) throws Exception
startVisitParagraph in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void endVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph,
Object parentContainer,
Object paragraphContainer)
throws Exception
endVisitParagraph in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void visitRun(org.apache.poi.xwpf.usermodel.XWPFRun run,
boolean pageNumber,
String url,
Object paragraphContainer)
throws Exception
visitRun in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void visitEmptyRun(Object paragraphContainer) throws Exception
visitEmptyRun in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void visitText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText ctText,
boolean pageNumber,
Object paragraphContainer)
throws Exception
visitText in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void visitStyleText(org.apache.poi.xwpf.usermodel.XWPFRun run,
String text)
throws Exception
visitStyleText in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void visitTab(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPTab o,
Object paragraphContainer)
throws Exception
visitTab in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void visitTabs(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabs tabs,
Object paragraphContainer)
throws Exception
visitTabs in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void addNewLine(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBr br,
Object paragraphContainer)
throws Exception
addNewLine in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void pageBreak()
throws Exception
pageBreak in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void visitBookmark(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBookmark bookmark,
org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph,
Object paragraphContainer)
throws Exception
visitBookmark in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected Object startVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float[] colWidths, Object tableContainer) throws Exception
startVisitTable in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void endVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table,
Object parentContainer,
Object tableContainer)
throws Exception
endVisitTable in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void startVisitTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row,
Object tableContainer,
int rowIndex,
boolean headerRow)
throws Exception
startVisitTableRow in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void endVisitTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row,
Object tableContainer,
boolean firstRow,
boolean lastRow,
boolean headerRow)
throws Exception
endVisitTableRow in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected 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 in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void endVisitTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell,
Object tableContainer,
Object tableCellContainer)
throws Exception
endVisitTableCell in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void visitHeader(org.apache.poi.xwpf.usermodel.XWPFHeader header,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtrRef headerRef,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr,
XHTMLMasterPage masterPage)
throws Exception
visitHeader in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void visitFooter(org.apache.poi.xwpf.usermodel.XWPFFooter footer,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtrRef footerRef,
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr,
XHTMLMasterPage masterPage)
throws Exception
visitFooter in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionprotected void visitPicture(org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture picture,
Float offsetX,
org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.STRelFromH.Enum relativeFromH,
Float offsetY,
org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.STRelFromV.Enum relativeFromV,
org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.STWrapText.Enum wrapText,
Object parentContainer)
throws Exception
visitPicture in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Exceptionpublic void setActiveMasterPage(XHTMLMasterPage masterPage)
public XHTMLMasterPage createMasterPage(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr)
public CSSStylesDocument getStylesDocument()
getStylesDocument in interface IMasterPageHandler<XHTMLMasterPage>getStylesDocument in class XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>Copyright © 2015. All Rights Reserved.