public class TableHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
Modifier | Constructor and Description |
---|---|
protected |
TableHelper(XHTMLImporterImpl importer) |
Modifier and Type | Method and Description |
---|---|
protected void |
insertDummyVMergedCells(org.docx4j.wml.ContentAccessor trContext,
com.openhtmltopdf.newtable.TableCellBox tcb,
boolean backwards)
Rowspan and colspan support.
|
protected boolean |
isTableStyle(org.docx4j.wml.Style s) |
protected void |
nestedTableHierarchyFix(org.docx4j.wml.ContentAccessor contentContext,
com.openhtmltopdf.render.Box parent)
nested tables XHTML renderer seems to construct a tree: table/table
instead of table/tr/td/table?
TODO fix this upstream.
|
protected void |
setupTblGrid(com.openhtmltopdf.newtable.TableBox cssTable,
org.docx4j.wml.Tbl tbl,
XHTMLImporterImpl.TableProperties tableProperties) |
protected void |
setupTblPr(com.openhtmltopdf.newtable.TableBox cssTable,
org.docx4j.wml.Tbl tbl,
XHTMLImporterImpl.TableProperties tableProperties) |
protected void |
setupTcPr(com.openhtmltopdf.newtable.TableCellBox tcb,
org.docx4j.wml.Tc tc,
XHTMLImporterImpl.TableProperties tableProperties) |
protected void |
setupTrPr(com.openhtmltopdf.newtable.TableRowBox trBox,
org.docx4j.wml.Tr tr) |
protected int |
tableIndentContrib(java.util.LinkedList<org.docx4j.wml.ContentAccessor> contentContextStack)
Where list item indentation is affected by the presence of tables,
we could adjust for this in the numbering, or in an ad hoc property.
|
protected TableHelper(XHTMLImporterImpl importer)
protected void setupTblPr(com.openhtmltopdf.newtable.TableBox cssTable, org.docx4j.wml.Tbl tbl, XHTMLImporterImpl.TableProperties tableProperties)
cssTable
- tbl
- tableProperties
- protected void setupTblGrid(com.openhtmltopdf.newtable.TableBox cssTable, org.docx4j.wml.Tbl tbl, XHTMLImporterImpl.TableProperties tableProperties)
protected void setupTrPr(com.openhtmltopdf.newtable.TableRowBox trBox, org.docx4j.wml.Tr tr)
protected void setupTcPr(com.openhtmltopdf.newtable.TableCellBox tcb, org.docx4j.wml.Tc tc, XHTMLImporterImpl.TableProperties tableProperties)
protected void insertDummyVMergedCells(org.docx4j.wml.ContentAccessor trContext, com.openhtmltopdf.newtable.TableCellBox tcb, boolean backwards)
trContext
- context of the row to insert dummies intotcb
- current cellbackwards
- direction flag: if true, then scan to the leftprotected void nestedTableHierarchyFix(org.docx4j.wml.ContentAccessor contentContext, com.openhtmltopdf.render.Box parent)
contentContext
- parent
- protected boolean isTableStyle(org.docx4j.wml.Style s)
protected int tableIndentContrib(java.util.LinkedList<org.docx4j.wml.ContentAccessor> contentContextStack)
Copyright © 2013–2021. All rights reserved.