Class XHTMLMapper
java.lang.Object
fr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>
fr.opensagres.poi.xwpf.converter.xhtml.internal.XHTMLMapper
- All Implemented Interfaces:
fr.opensagres.poi.xwpf.converter.core.IMasterPageHandler<XHTMLMasterPage>
public class XHTMLMapper
extends fr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions,XHTMLMasterPage>
-
Field Summary
Fields inherited from class fr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor
document, options, processingTotalPageCountField, stylesDocument, totalPageFieldUsed -
Constructor Summary
ConstructorsConstructorDescriptionXHTMLMapper(org.apache.poi.xwpf.usermodel.XWPFDocument document, ContentHandler contentHandler, XHTMLOptions options) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddNewLine(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBr br, Object paragraphContainer) createMasterPage(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr) protected fr.opensagres.poi.xwpf.converter.core.styles.XWPFStylesDocumentcreateStylesDocument(org.apache.poi.xwpf.usermodel.XWPFDocument document) protected voidprotected voidendVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph, Object parentContainer, Object paragraphContainer) protected voidendVisitSDT(org.apache.poi.xwpf.usermodel.XWPFSDT contents, Object container, Object sdtContainer) protected voidendVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table, Object parentContainer, Object tableContainer) protected voidendVisitTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell, Object tableContainer, Object tableCellContainer) protected voidendVisitTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row, Object tableContainer, boolean firstRow, boolean lastRow, boolean headerRow) protected voidvoidsetActiveMasterPage(XHTMLMasterPage masterPage) protected Objectprotected ObjectstartVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph, fr.opensagres.poi.xwpf.converter.core.ListItemContext itemContext, Object parentContainer) protected ObjectstartVisitSDT(org.apache.poi.xwpf.usermodel.XWPFSDT contents, Object container) 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 voidvisitBookmark(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBookmark bookmark, org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph, Object paragraphContainer) protected voidvisitEmptyRun(Object paragraphContainer) protected voidvisitFooter(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 voidvisitHeader(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 voidvisitPicture(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 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 voidvisitTab(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPTab o, Object paragraphContainer) 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) protected voidvisitVmlPicture(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPicture picture, Object pdfParentContainer) Methods inherited from class 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
-
Constructor Details
-
XHTMLMapper
public XHTMLMapper(org.apache.poi.xwpf.usermodel.XWPFDocument document, ContentHandler contentHandler, XHTMLOptions options) throws Exception - Throws:
Exception
-
-
Method Details
-
createStylesDocument
protected fr.opensagres.poi.xwpf.converter.core.styles.XWPFStylesDocument createStylesDocument(org.apache.poi.xwpf.usermodel.XWPFDocument document) throws org.apache.xmlbeans.XmlException, IOException - Overrides:
createStylesDocumentin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
org.apache.xmlbeans.XmlExceptionIOException
-
startVisitDocument
- Specified by:
startVisitDocumentin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
endVisitDocument
- Specified by:
endVisitDocumentin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
startVisitSDT
protected Object startVisitSDT(org.apache.poi.xwpf.usermodel.XWPFSDT contents, Object container) throws SAXException - Specified by:
startVisitSDTin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
SAXException
-
endVisitSDT
protected void endVisitSDT(org.apache.poi.xwpf.usermodel.XWPFSDT contents, Object container, Object sdtContainer) throws SAXException - Specified by:
endVisitSDTin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
SAXException
-
startVisitParagraph
protected Object startVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph, fr.opensagres.poi.xwpf.converter.core.ListItemContext itemContext, Object parentContainer) throws Exception - Specified by:
startVisitParagraphin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
endVisitParagraph
protected void endVisitParagraph(org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph, Object parentContainer, Object paragraphContainer) throws Exception - Specified by:
endVisitParagraphin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
visitRun
protected void visitRun(org.apache.poi.xwpf.usermodel.XWPFRun run, boolean pageNumber, String url, Object paragraphContainer) throws Exception - Overrides:
visitRunin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
visitEmptyRun
- Specified by:
visitEmptyRunin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
visitText
protected void visitText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText ctText, boolean pageNumber, Object paragraphContainer) throws Exception - Specified by:
visitTextin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
visitStyleText
protected void visitStyleText(org.apache.poi.xwpf.usermodel.XWPFRun run, String text, Object parent, boolean pageNumber) throws Exception - Overrides:
visitStyleTextin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
visitTab
protected void visitTab(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPTab o, Object paragraphContainer) throws Exception - Specified by:
visitTabin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
visitTabs
protected void visitTabs(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTabs tabs, Object paragraphContainer) throws Exception - Specified by:
visitTabsin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
addNewLine
protected void addNewLine(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBr br, Object paragraphContainer) throws Exception - Specified by:
addNewLinein classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
pageBreak
- Specified by:
pageBreakin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
visitBookmark
protected void visitBookmark(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBookmark bookmark, org.apache.poi.xwpf.usermodel.XWPFParagraph paragraph, Object paragraphContainer) throws Exception - Specified by:
visitBookmarkin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
startVisitTable
protected Object startVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float[] colWidths, Object tableContainer) throws Exception - Specified by:
startVisitTablein classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
endVisitTable
protected void endVisitTable(org.apache.poi.xwpf.usermodel.XWPFTable table, Object parentContainer, Object tableContainer) throws Exception - Specified by:
endVisitTablein classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
startVisitTableRow
protected void startVisitTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row, Object tableContainer, int rowIndex, boolean headerRow) throws Exception - Overrides:
startVisitTableRowin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
endVisitTableRow
protected void endVisitTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row, Object tableContainer, boolean firstRow, boolean lastRow, boolean headerRow) throws Exception - Overrides:
endVisitTableRowin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
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 - Specified by:
startVisitTableCellin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
endVisitTableCell
protected void endVisitTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell, Object tableContainer, Object tableCellContainer) throws Exception - Specified by:
endVisitTableCellin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
visitHeader
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) throws Exception - Specified by:
visitHeaderin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
visitPicture
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) throws Exception - Specified by:
visitPicturein classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
visitVmlPicture
protected void visitVmlPicture(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPicture picture, Object pdfParentContainer) throws Exception - Specified by:
visitVmlPicturein classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage> - Throws:
Exception
-
setActiveMasterPage
-
createMasterPage
public XHTMLMasterPage createMasterPage(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr) -
getStylesDocument
- Specified by:
getStylesDocumentin interfacefr.opensagres.poi.xwpf.converter.core.IMasterPageHandler<XHTMLMasterPage>- Overrides:
getStylesDocumentin classfr.opensagres.poi.xwpf.converter.core.XWPFDocumentVisitor<Object,XHTMLOptions, XHTMLMasterPage>
-