You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ar...@locus.apache.org on 2000/10/21 03:01:28 UTC

cvs commit: xml-fop/src/org/apache/fop/fo/pagination Root.java

arved       00/10/20 18:01:28

  Modified:    src/org/apache/fop/fo/pagination Tag: fop-0_14_0_regions
                        Root.java
  Log:
  Further pagination support
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.8.4.1   +11 -4     xml-fop/src/org/apache/fop/fo/pagination/Root.java
  
  Index: Root.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/Root.java,v
  retrieving revision 1.8
  retrieving revision 1.8.4.1
  diff -u -r1.8 -r1.8.4.1
  --- Root.java	2000/06/28 18:02:52	1.8
  +++ Root.java	2000/10/21 01:01:28	1.8.4.1
  @@ -1,4 +1,4 @@
  -/*-- $Id: Root.java,v 1.8 2000/06/28 18:02:52 jordan Exp $ -- 
  +/*-- $Id: Root.java,v 1.8.4.1 2000/10/21 01:01:28 arved Exp $ -- 
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -76,7 +76,8 @@
   
   	LayoutMasterSet layoutMasterSet;
    	Vector pageSequences;	
  -		
  +	PageSequence currentPageSequence;
  +	
   	protected Root(FObj parent, PropertyList propertyList) throws FOPException 
   	{
   		super(parent, propertyList);
  @@ -113,13 +114,19 @@
   		Enumeration e = pageSequences.elements();
   		while (e.hasMoreElements()) 
   		{
  -			((PageSequence) e.nextElement()).format(areaTree);
  +			currentPageSequence = (PageSequence) e.nextElement();
  +			currentPageSequence.format(areaTree);
   		}
   		
   	}		
   
   
       public void setLayoutMasterSet(LayoutMasterSet layoutMasterSet) {
  -	this.layoutMasterSet = layoutMasterSet;
  +		this.layoutMasterSet = layoutMasterSet;
       }
  +	
  +	public PageSequence getCurrentPageSequence()
  +	{
  +		return currentPageSequence;
  +	}
   }