Sfoglia il codice sorgente

getLayoutContext actualised


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197583 13f79535-47bb-0310-9956-ffa450edef68
tags/Defoe_export
Peter Bernard West 20 anni fa
parent
commit
6daa657fc9
1 ha cambiato i file con 6 aggiunte e 3 eliminazioni
  1. 6
    3
      src/java/org/apache/fop/fo/flow/FoFlow.java

+ 6
- 3
src/java/org/apache/fop/fo/flow/FoFlow.java Vedi File

@@ -131,13 +131,16 @@ public class FoFlow extends FOPageSeqNode {
// 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();
}

}

Loading…
Annulla
Salva