pbwest 2004/05/10 04:52:04
Modified: src/java/org/apache/fop/fo/flow Tag: FOP_0-20-0_Alt-Design
FoFlow.java
Log:
getLayoutContext actualised
Revision Changes Path
No revision
No revision
1.1.2.13 +8 -5 xml-fop/src/java/org/apache/fop/fo/flow/Attic/FoFlow.java
Index: FoFlow.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/Attic/FoFlow.java,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -u -r1.1.2.12 -r1.1.2.13
--- FoFlow.java 8 May 2004 13:01:40 -0000 1.1.2.12
+++ FoFlow.java 10 May 2004 11:52:04 -0000 1.1.2.13
@@ -131,13 +131,16 @@
// it is normal-flow reference-area; for other regions it is the
// region-reference-area. See
// 7.3 Reference Rectangle for Percentage Computations
+ // The difficulty is that there may be multiple attempts to layout the
+ // flow. Each attempt will generate its own page set, only the first
+ // of which contains a region-body-reference-area which qualifies as
+ // the reference rectangle for percentages defined on the flow.
throw new FOPException("Called from FoFlow");
}
public Area getLayoutContext() {
// The layout context for fo:flow is is the region-body-reference-area.
- // TODO - the real version
- Area context = null;
- return context;
+ return pageSequence.getPage().getRegionBodyRefArea();
}
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]