public Status layout(Area area) throws FOPException {
// MessageHandler.error(" b:LAY[" + marker + "] ");
+
if (this.marker == BREAK_AFTER) {
return new Status(Status.OK);
}
"background-color").getColorType();
this.paddingTop =
this.properties.get("padding").getLength().mvalue();
+
this.paddingLeft = this.paddingTop;
this.paddingRight = this.paddingTop;
this.paddingBottom = this.paddingTop;
blockArea.setIDReferences(area.getIDReferences());
blockArea.setTableCellXOffset(area.getTableCellXOffset());
+
int numChildren = this.children.size();
for (int i = this.marker; i < numChildren; i++) {
FONode fo = (FONode) children.elementAt(i);
}
- /**
- * Return the content width of the boxes generated by this FO.
- */
- protected int getContentWidth() {
- if (blockArea != null)
- return blockArea.getContentWidth(); //getAllocationWidth()??
- else
- return 0; // not laid out yet
- }
+ /**
+ * Return the content width of the boxes generated by this FO.
+ */
+ public int getContentWidth() {
+ if (blockArea != null)
+ return blockArea.getContentWidth(); //getAllocationWidth()??
+ else return 0; // not laid out yet
+ }
}
* Return the content width of the boxes generated by this block
* container FO.
*/
- protected int getContentWidth() {
+ public int getContentWidth() {
if (areaContainer != null)
return areaContainer.getContentWidth(); //getAllocationWidth()??
else return 0; // not laid out yet
}
+
+ public boolean generatesReferenceAreas() {
+ return true;
+ }
+
}
* Return the content width of this flow (really of the region
* in which it is flowing).
*/
- protected int getContentWidth() {
+ public int getContentWidth() {
if (area != null)
return area.getContentWidth(); //getAllocationWidth()??
else return 0; // not laid out yet
/**
* Return the content width of the boxes generated by this table FO.
*/
- protected int getContentWidth() {
+ public int getContentWidth() {
if (areaContainer != null)
return areaContainer.getContentWidth(); //getAllocationWidth()??
else return 0; // not laid out yet