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 je...@apache.org on 2005/01/31 14:52:12 UTC

cvs commit: xml-fop/src/java/org/apache/fop/layoutmgr/table Cell.java

jeremias    2005/01/31 05:52:12

  Modified:    src/java/org/apache/fop/layoutmgr/table Cell.java
  Log:
  table-cell generates a normal reference-area.
  
  Revision  Changes    Path
  1.13      +3 -1      xml-fop/src/java/org/apache/fop/layoutmgr/table/Cell.java
  
  Index: Cell.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/table/Cell.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Cell.java	11 Nov 2004 06:51:58 -0000	1.12
  +++ Cell.java	31 Jan 2005 13:52:12 -0000	1.13
  @@ -1,5 +1,5 @@
   /*
  - * Copyright 1999-2004 The Apache Software Foundation.
  + * Copyright 1999-2005 The Apache Software Foundation.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -30,6 +30,7 @@
   import org.apache.fop.layoutmgr.TraitSetter;
   import org.apache.fop.area.Area;
   import org.apache.fop.area.Block;
  +import org.apache.fop.area.Trait;
   import org.apache.fop.traits.MinOptMax;
   
   import java.util.ArrayList;
  @@ -218,6 +219,7 @@
       public Area getParentArea(Area childArea) {
           if (curBlockArea == null) {
               curBlockArea = new Block();
  +            curBlockArea.addTrait(Trait.IS_REFERENCE_AREA, Boolean.TRUE);
               curBlockArea.setPositioning(Block.ABSOLUTE);
               // set position
               curBlockArea.setXOffset(xoffset);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org