pbwest      2004/05/13 06:51:59

  Modified:    src/java/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design
                        FOPageSeqNode.java
  Log:
  Changed childContext to currentArea
  Added ArrayList generated
  Added getLayoutContext & getChildrensLayoutContext
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.4   +29 -4     xml-fop/src/java/org/apache/fop/fo/Attic/FOPageSeqNode.java
  
  Index: FOPageSeqNode.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/Attic/FOPageSeqNode.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- FOPageSeqNode.java        10 May 2004 11:50:02 -0000      1.1.2.3
  +++ FOPageSeqNode.java        13 May 2004 13:51:59 -0000      1.1.2.4
  @@ -19,6 +19,8 @@
    */
   package org.apache.fop.fo;
   
  +import java.util.ArrayList;
  +
   import org.apache.fop.apps.FOPException;
   import org.apache.fop.area.Area;
   import org.apache.fop.datastructs.TreeException;
  @@ -39,8 +41,9 @@
       /**
        * Comment for <code>childContext</code>
        */
  -    private Area childContext = null;
  -    private Area myContext = null;
  +    protected Area currentArea = null;
  +    protected Area myContext = null;
  +    protected ArrayList generated = null;
       
       /**
        * @param foTree the FO tree to which this node is added
  @@ -159,8 +162,30 @@
           return numMarkers;
       }
   
  +    /* (non-Javadoc)
  +     * @see org.apache.fop.fo.FONode#getReferenceRectangle()
  +     */
       public Area getReferenceRectangle() throws FOPException {
           throw new FOPException("Called from FOPageSeqNode");
  +    }
  +
  +    /**
  +     * @return
  +     * @throws FOPException
  +     */
  +    public Area getLayoutContext() throws FOPException {
  +        // The default layout context is provided by the parent
  +            return ((FONode)parent).getChildrensLayoutContext();
  +    }
  +
  +    /**
  +     * Gets the layout context for the children of this <code>FONode</code>.
  +     * Subclasses with special requirements must override this method.
  +     * The default context is the current area generated by the node.
  +     */
  +    public Area getChildrensLayoutContext()
  +            throws FOPException {
  +        return currentArea;
       }
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to