log.warn("table.getEffectiveTableStyle().getTblPr() is null, but should never be");
return;
}
TblBorders tblBorders = tblPr.getTblBorders();
CTTblCellMar tblCellMargin = tblPr.getTblCellMar();
if (tblBorders!=null) {
if (tblBorders.getInsideH()!=null) {
properties.add(new BorderTop(tblBorders.getTop()));
properties.add(new BorderBottom(tblBorders.getBottom()));
}
if (tblBorders.getInsideV()!=null) {
properties.add(new BorderRight(tblBorders.getRight()));
properties.add(new BorderLeft(tblBorders.getLeft()));
}
}
if (tblCellMargin != null) {
if (tblCellMargin.getTop() != null)
properties.add(new CellMarginTop(tblCellMargin.getTop()));
if (tblCellMargin.getBottom() != null)
properties.add(new CellMarginBottom(tblCellMargin.getBottom()));
if (tblCellMargin.getLeft() != null)
properties.add(new CellMarginLeft(tblCellMargin.getLeft()));
if (tblCellMargin.getRight() != null)
properties.add(new CellMarginRight(tblCellMargin.getRight()));
}
}