result.append("#" + TableWriter.getId(idx) + " td { ");
List<Property> properties = new ArrayList<Property>();
if (s.getTblPr()!=null
&& s.getTblPr().getTblBorders()!=null ) {
TblBorders tblBorders = s.getTblPr().getTblBorders();
if (tblBorders.getInsideH()!=null) {
if (tblBorders.getInsideH().getVal()==STBorder.NONE
|| tblBorders.getInsideH().getVal()==STBorder.NIL
|| tblBorders.getInsideH().getSz()==BigInteger.ZERO ) {
properties.add( new AdHocProperty("border-top-style", "none", null, null));
properties.add( new AdHocProperty("border-top-width", "0mm", null, null));
properties.add( new AdHocProperty("border-bottom-style", "none", null, null));
properties.add( new AdHocProperty("border-bottom-width", "0mm", null, null));
} else {
properties.add( new BorderTop(tblBorders.getTop() ));
properties.add( new BorderBottom(tblBorders.getBottom() ));
}
}
if (tblBorders.getInsideV()!=null) {
if (tblBorders.getInsideV().getVal()==STBorder.NONE
|| tblBorders.getInsideV().getVal()==STBorder.NIL
|| tblBorders.getInsideV().getSz()==BigInteger.ZERO ) {
properties.add( new AdHocProperty("border-left-style", "none", null, null));
properties.add( new AdHocProperty("border-left-width", "0mm", null, null));
properties.add( new AdHocProperty("border-right-style", "none", null, null));
properties.add( new AdHocProperty("border-right-width", "0mm", null, null));
} else {
properties.add( new BorderRight(tblBorders.getRight() ));
properties.add( new BorderLeft(tblBorders.getLeft() ));
}
}
}
if (s.getTcPr()!=null ) {
PropertyFactory.createProperties(properties, s.getTcPr() );