klease      01/11/09 14:14:37

  Modified:    src/org/apache/fop/tools AreaTreeBuilder.java
  Log:
  Rename Region to RegionReference in package area
  
  Revision  Changes    Path
  1.4       +15 -15    xml-fop/src/org/apache/fop/tools/AreaTreeBuilder.java
  
  Index: AreaTreeBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/tools/AreaTreeBuilder.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AreaTreeBuilder.java      2001/11/02 07:45:18     1.3
  +++ AreaTreeBuilder.java      2001/11/09 22:14:37     1.4
  @@ -1,5 +1,5 @@
   /*
  - * $Id: AreaTreeBuilder.java,v 1.3 2001/11/02 07:45:18 keiron Exp $
  + * $Id: AreaTreeBuilder.java,v 1.4 2001/11/09 22:14:37 klease Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
  @@ -302,29 +302,29 @@
           for (int i = 0; i < childs.getLength(); i++) {
               Node obj = childs.item(i);
               if (obj.getNodeName().equals("regionBefore")) {
  -                reg.setRegion(readRegion((Element) obj, Region.BEFORE));
  -                page.setRegion(Region.BEFORE, reg);
  +                reg.setRegion(readRegion((Element) obj, RegionReference.BEFORE));
  +                page.setRegion(RegionReference.BEFORE, reg);
               } else if (obj.getNodeName().equals("regionStart")) {
  -                reg.setRegion(readRegion((Element) obj, Region.START));
  -                page.setRegion(Region.START, reg);
  +                reg.setRegion(readRegion((Element) obj, RegionReference.START));
  +                page.setRegion(RegionReference.START, reg);
               } else if (obj.getNodeName().equals("regionBody")) {
  -                reg.setRegion(readRegion((Element) obj, Region.BODY));
  -                page.setRegion(Region.BODY, reg);
  +                reg.setRegion(readRegion((Element) obj, RegionReference.BODY));
  +                page.setRegion(RegionReference.BODY, reg);
               } else if (obj.getNodeName().equals("regionEnd")) {
  -                reg.setRegion(readRegion((Element) obj, Region.END));
  -                page.setRegion(Region.END, reg);
  +                reg.setRegion(readRegion((Element) obj, RegionReference.END));
  +                page.setRegion(RegionReference.END, reg);
               } else if (obj.getNodeName().equals("regionAfter")) {
  -                reg.setRegion(readRegion((Element) obj, Region.AFTER));
  -                page.setRegion(Region.AFTER, reg);
  +                reg.setRegion(readRegion((Element) obj, RegionReference.AFTER));
  +                page.setRegion(RegionReference.AFTER, reg);
               }
           }
   
           return reg;
       }
   
  -    public Region readRegion(Element root, int type) {
  -        Region reg;
  -        if (type == Region.BODY) {
  +    public RegionReference readRegion(Element root, int type) {
  +        RegionReference reg;
  +        if (type == RegionReference.BODY) {
               BodyRegion br = new BodyRegion();
               NodeList childs = root.getChildNodes();
               for (int i = 0; i < childs.getLength(); i++) {
  @@ -342,7 +342,7 @@
               }
               reg = br;
           } else {
  -            reg = new Region(type);
  +            reg = new RegionReference(type);
               List blocks = getBlocks(root);
               for (int i = 0; i < blocks.size(); i++) {
                   Block obj = (Block) blocks.get(i);
  
  
  

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

Reply via email to