public class TableHelper extends 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,
org.docx4j.org.xhtmlrenderer.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,
org.docx4j.org.xhtmlrenderer.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(org.docx4j.org.xhtmlrenderer.newtable.TableBox cssTable,
org.docx4j.wml.Tbl tbl,
XHTMLImporterImpl.TableProperties tableProperties) |
protected void |
setupTblPr(org.docx4j.org.xhtmlrenderer.newtable.TableBox cssTable,
org.docx4j.wml.Tbl tbl,
XHTMLImporterImpl.TableProperties tableProperties) |
protected void |
setupTcPr(org.docx4j.org.xhtmlrenderer.newtable.TableCellBox tcb,
org.docx4j.wml.Tc tc,
XHTMLImporterImpl.TableProperties tableProperties) |
protected void |
setupTrPr(org.docx4j.org.xhtmlrenderer.newtable.TableRowBox trBox,
org.docx4j.wml.Tr tr) |
protected int |
tableIndentContrib(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(org.docx4j.org.xhtmlrenderer.newtable.TableBox cssTable,
org.docx4j.wml.Tbl tbl,
XHTMLImporterImpl.TableProperties tableProperties)
cssTable - tbl - tableProperties - protected void setupTblGrid(org.docx4j.org.xhtmlrenderer.newtable.TableBox cssTable,
org.docx4j.wml.Tbl tbl,
XHTMLImporterImpl.TableProperties tableProperties)
protected void setupTrPr(org.docx4j.org.xhtmlrenderer.newtable.TableRowBox trBox,
org.docx4j.wml.Tr tr)
protected void setupTcPr(org.docx4j.org.xhtmlrenderer.newtable.TableCellBox tcb,
org.docx4j.wml.Tc tc,
XHTMLImporterImpl.TableProperties tableProperties)
protected void insertDummyVMergedCells(org.docx4j.wml.ContentAccessor trContext,
org.docx4j.org.xhtmlrenderer.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,
org.docx4j.org.xhtmlrenderer.render.Box parent)
contentContext - parent - protected boolean isTableStyle(org.docx4j.wml.Style s)
protected int tableIndentContrib(LinkedList<org.docx4j.wml.ContentAccessor> contentContextStack)
Copyright © 2013-2018. All Rights Reserved.