return Math.max(columnNumber.getValue(), 0);
}
+ /** @return true if "empty-cells" is "show" */
+ public boolean showEmptyCells() {
+ return (this.emptyCells == EN_SHOW);
+ }
+
/**
* @return the "id" property.
*/
import org.apache.fop.layoutmgr.TraitSetter;
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
-import org.apache.fop.area.CTM;
import org.apache.fop.area.Trait;
import org.apache.fop.traits.MinOptMax;
private int rowHeight;
private int usedBPD;
private int borderAndPaddingBPD;
+ private boolean emptyCell = true;
/**
* Create a new Cell layout manager.
}
usedBPD = stackSize.opt;
+ if (usedBPD > 0) {
+ emptyCell = false;
+ }
LengthRangeProperty specifiedBPD = fobj.getBlockProgressionDimension();
if (specifiedBPD.getEnum() != EN_AUTO) {
addID(fobj.getId());
}
+ if (!emptyCell || (getTable().getBorderCollapse() == EN_SEPARATE
+ && fobj.showEmptyCells())) {
+ TraitSetter.addBorders(curBlockArea, fobj.getCommonBorderPaddingBackground());
+ TraitSetter.addBackground(curBlockArea, fobj.getCommonBorderPaddingBackground());
+ }
+
//Handle display-align
if (usedBPD < rowHeight) {
if (fobj.getDisplayAlign() == EN_CENTER) {
}
}
- TraitSetter.addBorders(curBlockArea, fobj.getCommonBorderPaddingBackground());
- TraitSetter.addBackground(curBlockArea, fobj.getCommonBorderPaddingBackground());
int contentBPD = rowHeight;
contentBPD -= borderAndPaddingBPD;