public class RegionReference extends Area implements Cloneable {
private int regionClass = Constants.FO_REGION_BEFORE;
private CTM ctm;
- private int bpd;
// the list of block areas from the static flow
private List blocks = new ArrayList();
blocks.add(block);
}
- /**
- * Set the block-progression-dimension.
- *
- * @return the footnote area
- */
- public void setBPD(int bpd) {
- this.bpd = bpd;
- }
-
- /**
- * Set the block-progression-dimension.
- *
- * @return the footnote area
- */
- public int getBPD() {
- return bpd;
- }
-
/**
* Clone this region.
* This is used when cloning the page by the page master.
import org.apache.fop.area.Area;
import org.apache.fop.area.BlockViewport;
import org.apache.fop.area.Block;
-import org.apache.fop.area.PageViewport;
import org.apache.fop.area.Trait;
-import org.apache.fop.fo.Constants;
import org.apache.fop.fo.flow.BlockContainer;
import org.apache.fop.fo.properties.CommonAbsolutePosition;
import org.apache.fop.area.CTM;
fobj = node;
}
- /**
- * @return the currently applicable page viewport
- */
- protected PageViewport getPageViewport() {
- LayoutManager lm = this;
- while (lm != null && !(lm instanceof PageSequenceLayoutManager)) {
- lm = lm.getParent();
- }
- if (lm == null) {
- return null;
- } else {
- return ((PageSequenceLayoutManager)lm).getCurrentPageViewport();
- }
- }
-
/**
* @see org.apache.fop.layoutmgr.AbstractLayoutManager#initProperties()
*/
allocBPD = 0;
if (abProps.bottom.getEnum() != EN_AUTO) {
if (isFixed()) {
- allocBPD = (int)getPageViewport().getViewArea().getHeight();
+ allocBPD = (int)getCurrentPageViewport().getViewArea().getHeight();
} else {
allocBPD = context.getStackLimit().opt;
}
allocIPD += getIPIndents();
} else {
if (isFixed()) {
- allocIPD = (int)getPageViewport().getViewArea().getWidth();
+ allocIPD = (int)getCurrentPageViewport().getViewArea().getWidth();
} else {
allocIPD = context.getRefIPD();
}
allocBPD = 0;
if (abProps.bottom.getEnum() != EN_AUTO) {
if (isFixed()) {
- allocBPD = (int)getPageViewport().getViewArea().getHeight();
+ allocBPD = (int)getCurrentPageViewport().getViewArea().getHeight();
} else {
allocBPD = context.getStackLimit().opt;
}
allocIPD += getIPIndents();
} else {
if (isFixed()) {
- allocIPD = (int)getPageViewport().getViewArea().getWidth();
+ allocIPD = (int)getCurrentPageViewport().getViewArea().getWidth();
} else {
allocIPD = context.getRefIPD();
}