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 ke...@apache.org on 2001/11/06 09:34:54 UTC

cvs commit: xml-fop/src/org/apache/fop/svg PDFGraphics2D.java SVGElement.java SVGElementMapping.java SVGObj.java

keiron      01/11/06 00:34:54

  Modified:    src/org/apache/fop/apps Driver.java StreamRenderer.java
               src/org/apache/fop/area/inline Image.java
               src/org/apache/fop/extensions ExtensionElementMapping.java
                        ExtensionObj.java Label.java Outline.java
               src/org/apache/fop/fo ColorProfile.java Declarations.java
                        ElementMapping.java FONode.java FOTreeBuilder.java
                        FObj.java FObjMixed.java Title.java
                        ToBeImplementedElement.java Unknown.java
                        UnknownXMLObj.java XMLElement.java XMLObj.java
               src/org/apache/fop/fo/flow BasicLink.java BidiOverride.java
                        Block.java BlockContainer.java Character.java
                        ExternalGraphic.java Float.java Flow.java
                        Footnote.java FootnoteBody.java
                        InitialPropertySet.java Inline.java
                        InlineContainer.java InstreamForeignObject.java
                        Leader.java ListBlock.java ListItem.java
                        ListItemBody.java ListItemLabel.java Marker.java
                        MultiCase.java MultiProperties.java
                        MultiPropertySet.java MultiSwitch.java
                        MultiToggle.java PageNumber.java
                        PageNumberCitation.java RetrieveMarker.java
                        StaticContent.java Table.java TableAndCaption.java
                        TableBody.java TableCaption.java TableCell.java
                        TableColumn.java TableFooter.java TableHeader.java
                        TableRow.java Wrapper.java
               src/org/apache/fop/fo/pagination
                        ConditionalPageMasterReference.java
                        LayoutMasterSet.java PageMasterReference.java
                        PageSequence.java PageSequenceMaster.java
                        Region.java RegionAfter.java RegionBefore.java
                        RegionBody.java RegionEnd.java RegionStart.java
                        RepeatablePageMasterAlternatives.java
                        RepeatablePageMasterReference.java Root.java
                        SimplePageMaster.java
                        SinglePageMasterReference.java
               src/org/apache/fop/svg PDFGraphics2D.java SVGElement.java
                        SVGElementMapping.java SVGObj.java
  Added:       src/org/apache/fop/fo FOElementMapping.java
  Removed:     src/org/apache/fop/fo DirectPropertyListBuilder.java
                        StandardElementMapping.java TreeBuilder.java
  Log:
  changed the way that elements and properties are handled
  the element makers are associated with the element mapping
  attributes are passed to the element object the object can then
  use the attributes to make the properties
  added default value for element handling, makes it easier to
  ensure all elements of an external xml markup are loaded (eg. svg)
  
  Revision  Changes    Path
  1.39      +2 -2      xml-fop/src/org/apache/fop/apps/Driver.java
  
  Index: Driver.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/Driver.java,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- Driver.java	2001/11/02 07:45:17	1.38
  +++ Driver.java	2001/11/06 08:34:50	1.39
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Driver.java,v 1.38 2001/11/02 07:45:17 keiron Exp $
  + * $Id: Driver.java,v 1.39 2001/11/06 08:34:50 keiron 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.
  @@ -284,7 +284,7 @@
        *
        */
       public void setupDefaultMappings() {
  -        addElementMapping("org.apache.fop.fo.StandardElementMapping");
  +        addElementMapping("org.apache.fop.fo.FOElementMapping");
           addElementMapping("org.apache.fop.svg.SVGElementMapping");
           addElementMapping("org.apache.fop.extensions.ExtensionElementMapping");
   
  
  
  
  1.8       +2 -2      xml-fop/src/org/apache/fop/apps/StreamRenderer.java
  
  Index: StreamRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/StreamRenderer.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- StreamRenderer.java	2001/10/22 09:30:30	1.7
  +++ StreamRenderer.java	2001/11/06 08:34:50	1.8
  @@ -158,8 +158,8 @@
           long timeUsed = System.currentTimeMillis() - startTime;
   
           log.debug("Total time used: " + timeUsed + "ms");
  -        log.debug("Pages rendererd: " + pageCount);
  -        log.debug("Avg render time: " + (timeUsed / pageCount) + "ms/page");
  +        log.debug("Pages rendered: " + pageCount);
  +        //log.debug("Avg render time: " + (timeUsed / pageCount) + "ms/page");
       }
   
       /**
  
  
  
  1.3       +3 -1      xml-fop/src/org/apache/fop/area/inline/Image.java
  
  Index: Image.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/area/inline/Image.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Image.java	2001/10/26 09:27:00	1.2
  +++ Image.java	2001/11/06 08:34:50	1.3
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Image.java,v 1.2 2001/10/26 09:27:00 keiron Exp $
  + * $Id: Image.java,v 1.3 2001/11/06 08:34:50 keiron 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.
  @@ -11,6 +11,8 @@
   
   // cacheable object
   // image object, mime type, url
  +// an image only needs to be loaded to get the size if not specified
  +// and when rendering to the output
   public class Image extends Area {
       String url;
   
  
  
  
  1.5       +13 -15    xml-fop/src/org/apache/fop/extensions/ExtensionElementMapping.java
  
  Index: ExtensionElementMapping.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/extensions/ExtensionElementMapping.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ExtensionElementMapping.java	2001/09/24 09:17:12	1.4
  +++ ExtensionElementMapping.java	2001/11/06 08:34:50	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: ExtensionElementMapping.java,v 1.4 2001/09/24 09:17:12 keiron Exp $
  + * $Id: ExtensionElementMapping.java,v 1.5 2001/11/06 08:34:50 keiron 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.
  @@ -8,8 +8,6 @@
   package org.apache.fop.extensions;
   
   import org.apache.fop.fo.*;
  -import org.apache.fop.fo.properties.ExtensionPropertyMapping;
  -import org.apache.fop.fo.TreeBuilder;
   
   import java.util.Enumeration;
   import java.util.HashMap;
  @@ -21,24 +19,24 @@
   
       private static HashMap foObjs = null;
   
  -    public synchronized void addToBuilder(TreeBuilder builder) {
  +    public synchronized void addToBuilder(FOTreeBuilder builder) {
           if(foObjs == null) {
               foObjs = new HashMap();    
  -            foObjs.put("outline", Outline.maker());
  -            foObjs.put("label", Label.maker());
  +            foObjs.put("outline", new O());
  +            foObjs.put("label", new L());
           }
           builder.addMapping(URI, foObjs);
  -
  +    }
   
  -        builder.addPropertyList(ExtensionElementMapping.URI,
  -                                ExtensionPropertyMapping.getGenericMappings());
  -        /* Add any element mappings */
  -        for (Iterator iter = ExtensionPropertyMapping.getElementMappings().iterator();
  -                iter.hasNext(); ) {
  -            String elem = (String)iter.next();
  -            builder.addElementPropertyList(ExtensionElementMapping.URI, elem,
  -                                           ExtensionPropertyMapping.getElementMapping(elem));
  +    class O extends ElementMapping.Maker {
  +        public FObj make(FObj parent) {
  +            return new Outline(parent);
           }
       }
   
  +    class L extends ElementMapping.Maker {
  +        public FObj make(FObj parent) {
  +            return new Label(parent);
  +        }
  +    }
   }
  
  
  
  1.3       +19 -4     xml-fop/src/org/apache/fop/extensions/ExtensionObj.java
  
  Index: ExtensionObj.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/extensions/ExtensionObj.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ExtensionObj.java	2001/07/30 20:29:19	1.2
  +++ ExtensionObj.java	2001/11/06 08:34:50	1.3
  @@ -1,5 +1,5 @@
   /*
  - * $Id: ExtensionObj.java,v 1.2 2001/07/30 20:29:19 tore Exp $
  + * $Id: ExtensionObj.java,v 1.3 2001/11/06 08:34:50 keiron 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.
  @@ -10,7 +10,10 @@
   import org.apache.fop.fo.*;
   import org.apache.fop.layout.*;
   import org.apache.fop.apps.FOPException;
  +import org.apache.fop.fo.properties.ExtensionPropertyMapping;
   
  +import org.xml.sax.Attributes;
  +
   /**
    * base class for extension objects
    */
  @@ -21,8 +24,8 @@
        * @param parent the parent formatting object
        * @param propertyList the explicit properties of this object
        */
  -    public ExtensionObj(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public ExtensionObj(FObj parent) {
  +        super(parent);
       }
   
       /**
  @@ -38,7 +41,6 @@
           return new Status(Status.OK);
       }
   
  -
       /**
        * Called for root extensions. Root extensions aren't allowed to generate
        * any visible areas. They are used for extra items that don't show up in
  @@ -51,4 +53,17 @@
           areaTree.addExtension(this);
       }
   
  +    protected PropertyListBuilder getListBuilder() {
  +            PropertyListBuilder plb = new PropertyListBuilder();
  +            plb.addList(ExtensionPropertyMapping.getGenericMappings());
  +        return plb;
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        String uri = ExtensionElementMapping.URI;
  +        properties =
  +                    getListBuilder().makeList(uri, name, attlist,
  +                                                (parent == null) ? null
  +                                                : parent.properties, parent);
  +    }
   }
  
  
  
  1.3       +3 -14     xml-fop/src/org/apache/fop/extensions/Label.java
  
  Index: Label.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/extensions/Label.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Label.java	2001/07/30 20:29:20	1.2
  +++ Label.java	2001/11/06 08:34:50	1.3
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Label.java,v 1.2 2001/07/30 20:29:20 tore Exp $
  + * $Id: Label.java,v 1.3 2001/11/06 08:34:50 keiron 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.
  @@ -13,19 +13,8 @@
   public class Label extends ExtensionObj {
       private String _label = "";
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent, PropertyList propertyList) {
  -            return new Label(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Label.Maker();
  -    }
  -
  -    public Label(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public Label(FObj parent) {
  +        super(parent);
       }
   
       protected void addCharacters(char data[], int start, int end) {
  
  
  
  1.5       +8 -15     xml-fop/src/org/apache/fop/extensions/Outline.java
  
  Index: Outline.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/extensions/Outline.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Outline.java	2001/08/21 08:26:11	1.4
  +++ Outline.java	2001/11/06 08:34:50	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Outline.java,v 1.4 2001/08/21 08:26:11 keiron Exp $
  + * $Id: Outline.java,v 1.5 2001/11/06 08:34:50 keiron 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.
  @@ -11,9 +11,11 @@
   import org.apache.fop.pdf.PDFGoTo;
   import org.apache.fop.pdf.PDFAction;
   import org.apache.fop.datatypes.IDReferences;
  +import org.apache.fop.apps.FOPException;
   
   import java.util.*;
   
  +import org.xml.sax.Attributes;
   
   public class Outline extends ExtensionObj {
       private Label _label;
  @@ -32,21 +34,12 @@
        */
       private Object _rendererObject;
   
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent, PropertyList propertyList) {
  -            return new Outline(parent, propertyList);
  -        }
  -
  +    public Outline(FObj parent) {
  +        super(parent);
       }
  -
  -    public static FObj.Maker maker() {
  -        return new Outline.Maker();
  -    }
  -
  -    public Outline(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
   
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           _internalDestination =
               this.properties.get("internal-destination").getString();
           _externalDestination =
  @@ -92,7 +85,7 @@
       }
   
       public Label getLabel() {
  -        return _label == null ? new Label(this, this.properties) : _label;
  +        return _label == null ? new Label(this) : _label;
       }
   
       public Vector getOutlines() {
  
  
  
  1.5       +3 -16     xml-fop/src/org/apache/fop/fo/ColorProfile.java
  
  Index: ColorProfile.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/ColorProfile.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ColorProfile.java	2001/08/20 11:19:22	1.4
  +++ ColorProfile.java	2001/11/06 08:34:50	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: ColorProfile.java,v 1.4 2001/08/20 11:19:22 keiron Exp $
  + * $Id: ColorProfile.java,v 1.5 2001/11/06 08:34:50 keiron 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.
  @@ -20,21 +20,8 @@
    */
   public class ColorProfile extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new ColorProfile(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new ColorProfile.Maker();
  -    }
  -
  -    protected ColorProfile(FObj parent,
  -                           PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    protected ColorProfile(FObj parent) {
  +        super(parent);
           this.name = "fo:color-profile";
   
           // this.properties.get("src");
  
  
  
  1.4       +3 -16     xml-fop/src/org/apache/fop/fo/Declarations.java
  
  Index: Declarations.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Declarations.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Declarations.java	2001/08/20 11:19:22	1.3
  +++ Declarations.java	2001/11/06 08:34:50	1.4
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Declarations.java,v 1.3 2001/08/20 11:19:22 keiron Exp $
  + * $Id: Declarations.java,v 1.4 2001/11/06 08:34:50 keiron 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.
  @@ -18,21 +18,8 @@
    */
   public class Declarations extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Declarations(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Declarations.Maker();
  -    }
  -
  -    protected Declarations(FObj parent,
  -                           PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    protected Declarations(FObj parent) {
  +        super(parent);
           this.name = "fo:declarations";
       }
   
  
  
  
  1.9       +8 -2      xml-fop/src/org/apache/fop/fo/ElementMapping.java
  
  Index: ElementMapping.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/ElementMapping.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ElementMapping.java	2001/07/30 20:29:20	1.8
  +++ ElementMapping.java	2001/11/06 08:34:50	1.9
  @@ -1,5 +1,5 @@
   /*
  - * $Id: ElementMapping.java,v 1.8 2001/07/30 20:29:20 tore Exp $
  + * $Id: ElementMapping.java,v 1.9 2001/11/06 08:34:50 keiron 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.
  @@ -12,5 +12,11 @@
    * the given builder.
    */
   public interface ElementMapping {
  -    public void addToBuilder(TreeBuilder builder);
  +    public void addToBuilder(FOTreeBuilder builder);
  +
  +    public static class Maker {
  +        public FObj make(FObj parent) {
  +            return null;
  +        }
  +    }
   }
  
  
  
  1.22      +6 -1      xml-fop/src/org/apache/fop/fo/FONode.java
  
  Index: FONode.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FONode.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- FONode.java	2001/09/21 09:08:38	1.21
  +++ FONode.java	2001/11/06 08:34:50	1.22
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FONode.java,v 1.21 2001/09/21 09:08:38 keiron Exp $
  + * $Id: FONode.java,v 1.22 2001/11/06 08:34:50 keiron 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.
  @@ -22,6 +22,8 @@
   import java.util.Vector;
   import java.util.Hashtable;
   
  +import org.xml.sax.Attributes;
  +
   /**
    * base class for nodes in the formatting object tree
    *
  @@ -91,6 +93,9 @@
   
       public void setLogger(Logger logger) {
           log = logger;
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
       }
   
       public void setIsInTableCell() {
  
  
  
  1.32      +12 -91    xml-fop/src/org/apache/fop/fo/FOTreeBuilder.java
  
  Index: FOTreeBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FOTreeBuilder.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- FOTreeBuilder.java	2001/11/02 07:45:17	1.31
  +++ FOTreeBuilder.java	2001/11/06 08:34:50	1.32
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FOTreeBuilder.java,v 1.31 2001/11/02 07:45:17 keiron Exp $
  + * $Id: FOTreeBuilder.java,v 1.32 2001/11/06 08:34:50 keiron 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.
  @@ -26,7 +26,6 @@
   
   // Java
   import java.util.HashMap;
  -import java.util.Stack;
   import java.util.ArrayList;
   import java.io.IOException;
   
  @@ -41,7 +40,7 @@
    * supresses adding the PageSequence object to the Root,
    * since it is parsed immediately.
    */
  -public class FOTreeBuilder extends DefaultHandler implements TreeBuilder {
  +public class FOTreeBuilder extends DefaultHandler {
   
       /**
        * table mapping element names to the makers of objects
  @@ -52,11 +51,6 @@
       protected ArrayList namespaces = new ArrayList();
   
       /**
  -     * class that builds a property list for each formatting object
  -     */
  -    protected HashMap propertylistTable = new HashMap();
  -
  -    /**
        * current formatting object being handled
        */
       protected FObj currentFObj = null;
  @@ -105,56 +99,6 @@
       }
   
       /**
  -     * add a mapping from element name to maker.
  -     *
  -     * @param namespaceURI namespace URI of formatting object element
  -     * @param localName local name of formatting object element
  -     * @param maker Maker for class representing formatting object
  -     */
  -    public void addPropertyList(String namespaceURI, HashMap list) {
  -        PropertyListBuilder plb;
  -        plb = (PropertyListBuilder)this.propertylistTable.get(namespaceURI);
  -        if (plb == null) {
  -            plb = new PropertyListBuilder();
  -            plb.addList(list);
  -            this.propertylistTable.put(namespaceURI, plb);
  -        } else {
  -            plb.addList(list);
  -        }
  -    }
  -
  -    /**
  -     * add a mapping from element name to maker.
  -     *
  -     * @param namespaceURI namespace URI of formatting object element
  -     * @param localName local name of formatting object element
  -     * @param maker Maker for class representing formatting object
  -     */
  -    public void addElementPropertyList(String namespaceURI, String localName,
  -                                       HashMap list) {
  -        PropertyListBuilder plb;
  -        plb = (PropertyListBuilder)this.propertylistTable.get(namespaceURI);
  -        if (plb == null) {
  -            plb = new PropertyListBuilder();
  -            plb.addElementList(localName, list);
  -            this.propertylistTable.put(namespaceURI, plb);
  -        } else {
  -            plb.addElementList(localName, list);
  -        }
  -    }
  -
  -    public void addPropertyListBuilder(String namespaceURI,
  -                                       PropertyListBuilder propbuilder) {
  -        PropertyListBuilder plb;
  -        plb = (PropertyListBuilder)this.propertylistTable.get(namespaceURI);
  -        if (plb == null) {
  -            this.propertylistTable.put(namespaceURI, propbuilder);
  -        } else {
  -            // Error already added
  -        }
  -    }
  -
  -    /**
        * SAX Handler for characters
        */
       public void characters(char data[], int start, int length) {
  @@ -170,18 +114,6 @@
       throws SAXException {
           currentFObj.end();
   
  -        //
  -        // mark-fop@inomial.com - tell the stream renderer to render
  -        // this page-sequence
  -        //
  -        if(currentFObj instanceof PageSequence) {
  -            streamRenderer.render((PageSequence) currentFObj);
  -        } else if(currentFObj instanceof ExtensionObj) {
  -            if(!(currentFObj.getParent() instanceof ExtensionObj)) {
  -                streamRenderer.addExtension((ExtensionObj)currentFObj);
  -            }
  -        }
  -
           currentFObj = (FObj)currentFObj.getParent();
       }
   
  @@ -210,16 +142,17 @@
           FObj fobj;
   
           /* the maker for the formatting object started */
  -        FObj.Maker fobjMaker = null;
  +        ElementMapping.Maker fobjMaker = null;
   
           HashMap table = (HashMap)fobjTable.get(uri);
           if(table != null) {
  -            fobjMaker = (FObj.Maker)table.get(localName);
  +            fobjMaker = (ElementMapping.Maker)table.get(localName);
  +            // try default
  +            if(fobjMaker == null) {
  +                fobjMaker = (ElementMapping.Maker)table.get("<default>");
  +            }
           }
   
  -        PropertyListBuilder currentListBuilder =
  -            (PropertyListBuilder)this.propertylistTable.get(uri);
  -
           boolean foreignXML = false;
           if (fobjMaker == null) {
               String fullName = uri + "^" + localName;
  @@ -232,28 +165,16 @@
                   // fall back
                   fobjMaker = new Unknown.Maker();
               } else {
  -                fobjMaker = new UnknownXMLObj.Maker(uri, localName);
  +                fobjMaker = new UnknownXMLObj.Maker(uri);
                   foreignXML = true;
               }
           }
   
           try {
  -            PropertyList list = null;
  -            if (currentListBuilder != null) {
  -                list =
  -                    currentListBuilder.makeList(uri, localName, attlist,
  -                                                (currentFObj == null) ? null
  -                                                : currentFObj.properties, currentFObj);
  -            } else if(foreignXML) {
  -                list = new DirectPropertyListBuilder.AttrPropertyList(attlist);
  -            } else {
  -                if(currentFObj == null) {
  -                    throw new FOPException("Invalid XML or missing namespace");
  -                }
  -                list = currentFObj.properties;
  -            }
  -            fobj = fobjMaker.make(currentFObj, list);
  +            fobj = fobjMaker.make(currentFObj);
  +            fobj.setName(localName);
               fobj.setLogger(log);
  +            fobj.handleAttrs(attlist);
           } catch (FOPException e) {
               throw new SAXException(e);
           }
  
  
  
  1.21      +29 -22    xml-fop/src/org/apache/fop/fo/FObj.java
  
  Index: FObj.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FObj.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- FObj.java	2001/10/08 09:56:38	1.20
  +++ FObj.java	2001/11/06 08:34:50	1.21
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FObj.java,v 1.20 2001/10/08 09:56:38 keiron Exp $
  + * $Id: FObj.java,v 1.21 2001/11/06 08:34:50 keiron 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.
  @@ -11,40 +11,47 @@
   import org.apache.fop.layout.Area;
   import org.apache.fop.apps.FOPException;
   import org.apache.fop.datatypes.IDReferences;
  +import org.apache.fop.fo.properties.FOPropertyMapping;
   
  -// Java
  -import java.util.Hashtable;
  -import java.util.Enumeration;
  +import org.xml.sax.Attributes;
   
   /**
    * base class for representation of formatting objects and their processing
    */
   public class FObj extends FONode {
   
  -    public static class Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new FObj(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static Maker maker() {
  -        return new Maker();
  -    }
  -
  -    // protected PropertyList properties;
       public PropertyList properties;
       protected PropertyManager propMgr;
   
       protected String name;
   
  -    protected FObj(FObj parent, PropertyList propertyList) {
  +    public FObj(FObj parent) {
           super(parent);
  -        this.properties = propertyList;    // TO BE REMOVED!!!
  -        propertyList.setFObj(this);
  -        this.propMgr = makePropertyManager(propertyList);
  -        this.name = "default FO";
  +    }
  +
  +    public void setName(String str) {
  +        name = "fo:" + str;
  +    }
  +
  +    protected PropertyListBuilder getListBuilder() {
  +            PropertyListBuilder plb = new PropertyListBuilder();
  +            plb.addList(FOPropertyMapping.getGenericMappings());
  +        return plb;
  +    }
  +
  +    /**
  +     * Handle the attributes for this element.
  +     * The attributes must be used immediately as the sax attributes
  +     * will be altered for the next element.
  +     */
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        String uri = "http://www.w3.org/1999/XSL/Format";
  +        properties =
  +                    getListBuilder().makeList(uri, name, attlist,
  +                                                (parent == null) ? null
  +                                                : parent.properties, parent);
  +        properties.setFObj(this);
  +        this.propMgr = makePropertyManager(properties);
           setWritingMode();
       }
   
  
  
  
  1.13      +3 -15     xml-fop/src/org/apache/fop/fo/FObjMixed.java
  
  Index: FObjMixed.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FObjMixed.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- FObjMixed.java	2001/08/01 22:12:52	1.12
  +++ FObjMixed.java	2001/11/06 08:34:50	1.13
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FObjMixed.java,v 1.12 2001/08/01 22:12:52 gears Exp $
  + * $Id: FObjMixed.java,v 1.13 2001/11/06 08:34:50 keiron 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.
  @@ -16,20 +16,8 @@
    */
   public class FObjMixed extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new FObjMixed(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new FObjMixed.Maker();
  -    }
  -
  -    protected FObjMixed(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public FObjMixed(FObj parent) {
  +        super(parent);
       }
   
       protected void addCharacters(char data[], int start, int length) {
  
  
  
  1.5       +3 -16     xml-fop/src/org/apache/fop/fo/Title.java
  
  Index: Title.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Title.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Title.java	2001/08/20 11:19:22	1.4
  +++ Title.java	2001/11/06 08:34:50	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Title.java,v 1.4 2001/08/20 11:19:22 keiron Exp $
  + * $Id: Title.java,v 1.5 2001/11/06 08:34:50 keiron 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.
  @@ -20,21 +20,8 @@
    */
   public class Title extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Title(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Title.Maker();
  -    }
  -
  -    protected Title(FObj parent,
  -                    PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public Title(FObj parent) {
  +        super(parent);
           this.name = "fo:title";
       }
   
  
  
  
  1.4       +3 -4      xml-fop/src/org/apache/fop/fo/ToBeImplementedElement.java
  
  Index: ToBeImplementedElement.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/ToBeImplementedElement.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ToBeImplementedElement.java	2001/08/20 11:19:22	1.3
  +++ ToBeImplementedElement.java	2001/11/06 08:34:50	1.4
  @@ -1,5 +1,5 @@
   /*
  - * $Id: ToBeImplementedElement.java,v 1.3 2001/08/20 11:19:22 keiron Exp $
  + * $Id: ToBeImplementedElement.java,v 1.4 2001/11/06 08:34:50 keiron 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.
  @@ -18,9 +18,8 @@
    */
   public class ToBeImplementedElement extends FObj {
   
  -    protected ToBeImplementedElement(FObj parent, PropertyList propertyList)
  -            throws FOPException {
  -        super(parent, propertyList);
  +    protected ToBeImplementedElement(FObj parent) {
  +        super(parent);
       }
   
       public Status layout(Area area) throws FOPException {
  
  
  
  1.3       +6 -14     xml-fop/src/org/apache/fop/fo/Unknown.java
  
  Index: Unknown.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Unknown.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Unknown.java	2001/08/20 11:19:23	1.2
  +++ Unknown.java	2001/11/06 08:34:51	1.3
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Unknown.java,v 1.2 2001/08/20 11:19:23 keiron Exp $
  + * $Id: Unknown.java,v 1.3 2001/11/06 08:34:51 keiron 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.
  @@ -23,22 +23,14 @@
    */
   public class Unknown extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Unknown(parent, propertyList);
  +    public static class Maker extends ElementMapping.Maker {
  +        public FObj make(FObj parent) {
  +            return new Unknown(parent);
           }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Unknown.Maker();
       }
   
  -    protected Unknown(FObj parent,
  -                    PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  -        this.name = "unknown";
  +    public Unknown(FObj parent) {
  +        super(parent);
       }
   
       public Status layout(Area area) throws FOPException {
  
  
  
  1.3       +12 -40    xml-fop/src/org/apache/fop/fo/UnknownXMLObj.java
  
  Index: UnknownXMLObj.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/UnknownXMLObj.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- UnknownXMLObj.java	2001/10/08 09:56:38	1.2
  +++ UnknownXMLObj.java	2001/11/06 08:34:51	1.3
  @@ -1,5 +1,5 @@
   /*
  - * $Id: UnknownXMLObj.java,v 1.2 2001/10/08 09:56:38 keiron Exp $
  + * $Id: UnknownXMLObj.java,v 1.3 2001/11/06 08:34:51 keiron 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.
  @@ -18,55 +18,27 @@
   public class UnknownXMLObj extends XMLObj {
       String namespace;
   
  -    /**
  -     * inner class for making unknown xml objects.
  -     */
  -    public static class Maker extends FObj.Maker {
  +    public static class Maker extends ElementMapping.Maker {
           String space;
  -        String tag;
   
  -        Maker(String sp, String t) {
  +        Maker(String sp) {
               space = sp;
  -            tag = t;
           }
   
  -        /**
  -         * make an unknown xml object.
  -         *
  -         * @param parent the parent formatting object
  -         * @param propertyList the explicit properties of this object
  -         *
  -         * @return the unknown xml object
  -         */
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new UnknownXMLObj(parent, propertyList, space, tag);
  +        public FObj make(FObj parent) {
  +            return new UnknownXMLObj(parent, space);
           }
       }
   
       /**
  -     * returns the maker for this object.
  -     *
  -     * @return the maker for an unknown xml object
  -     */
  -    public static FObj.Maker maker(String space, String tag) {
  -        return new UnknownXMLObj.Maker(space, tag);
  -    }
  -
  -    /**
        * constructs an unknown xml object (called by Maker).
        *
        * @param parent the parent formatting object
        * @param propertyList the explicit properties of this object
        */
  -    protected UnknownXMLObj(FObj parent, PropertyList propertyList, String space, String tag) {
  -        super(parent, propertyList, tag);
  +    protected UnknownXMLObj(FObj parent, String space) {
  +        super(parent);
           this.namespace = space;
  -				if(!"".equals(space)) {
  -            this.name = this.namespace + ":" + tag;
  -        } else {
  -            this.name = "(none):" + tag;
  -        }
       }
   
       public String getNameSpace() {
  @@ -88,11 +60,11 @@
       }
   
       public Status layout(Area area) throws FOPException {
  -        //if (!(area instanceof ForeignObjectArea)) {
  -            // this is an error
  -            //throw new FOPException("Foreign XML not in fo:instream-foreign-object");
  -        //}
  -        log.error("no handler defined for " + this.name + " foreign xml");
  +        if(!"".equals(this.namespace)) {
  +            log.error("no handler defined for " + this.namespace + ":" + this.name + " foreign xml");
  +        } else {
  +            log.error("no handler defined for (none):" + this.name + " foreign xml");
  +        }
   
           /* return status */
           return new Status(Status.OK);
  
  
  
  1.2       +9 -36     xml-fop/src/org/apache/fop/fo/XMLElement.java
  
  Index: XMLElement.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/XMLElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XMLElement.java	2001/09/13 07:49:32	1.1
  +++ XMLElement.java	2001/11/06 08:34:51	1.2
  @@ -1,5 +1,5 @@
   /*
  - * $Id: XMLElement.java,v 1.1 2001/09/13 07:49:32 keiron Exp $
  + * $Id: XMLElement.java,v 1.2 2001/11/06 08:34:51 keiron 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.
  @@ -13,6 +13,8 @@
   import org.apache.fop.layout.inline.*;
   import org.apache.fop.apps.FOPException;
   
  +import org.xml.sax.Attributes;
  +
   /**
    * class representing svg:svg pseudo flow object.
    */
  @@ -20,46 +22,17 @@
       String namespace = "";
   
       /**
  -     * inner class for making XML objects.
  -     */
  -    public static class Maker extends FObj.Maker {
  -        String tag;
  -
  -        Maker(String t) {
  -            tag = t;
  -        }
  -
  -        /**
  -         * make an XML object.
  -         *
  -         * @param parent the parent formatting object
  -         * @param propertyList the explicit properties of this object
  -         *
  -         * @return the XML object
  -         */
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new XMLElement(parent, propertyList, tag);
  -        }
  -    }
  -
  -    /**
  -     * returns the maker for this object.
  -     *
  -     * @return the maker for XML objects
  -     */
  -    public static FObj.Maker maker(String tag) {
  -        return new XMLElement.Maker(tag);
  -    }
  -
  -    /**
        * constructs an XML object (called by Maker).
        *
        * @param parent the parent formatting object
        * @param propertyList the explicit properties of this object
        */
  -    public XMLElement(FObj parent, PropertyList propertyList, String tag) {
  -        super(parent, propertyList, tag);
  +    public XMLElement(FObj parent) {
  +        super(parent);
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           init();
       }
   
  
  
  
  1.4       +15 -16    xml-fop/src/org/apache/fop/fo/XMLObj.java
  
  Index: XMLObj.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/XMLObj.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XMLObj.java	2001/11/02 11:06:07	1.3
  +++ XMLObj.java	2001/11/06 08:34:51	1.4
  @@ -1,5 +1,5 @@
   /*
  - * $Id: XMLObj.java,v 1.3 2001/11/02 11:06:07 keiron Exp $
  + * $Id: XMLObj.java,v 1.4 2001/11/06 08:34:51 keiron 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.
  @@ -28,7 +28,8 @@
    */
   public abstract class XMLObj extends FObj {
   
  -    protected String tagName = "";
  +    // temp reference for attributes
  +    Attributes attr = null;
   
       protected Element element;
       protected Document doc;
  @@ -38,21 +39,25 @@
        * @param parent the parent formatting object
        * @param propertyList the explicit properties of this object
        */
  -    public XMLObj(FObj parent, PropertyList propertyList, String tag) {
  -        super(parent, propertyList);
  -        tagName = tag;
  +    public XMLObj(FObj parent) {
  +        super(parent);
       }
   
  +    public void setName(String str) {
  +        name = str;
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        attr = attlist;
  +    }
       public abstract String getNameSpace();
   
       protected static Hashtable ns = new Hashtable();
   
       public void addGraphic(Document doc, Element parent) {
           this.doc = doc;
  -        element = doc.createElementNS(getNameSpace(), tagName);
  +        element = doc.createElementNS(getNameSpace(), name);
   
  -        if(this.properties instanceof DirectPropertyListBuilder.AttrPropertyList) {
  -            Attributes attr = ((DirectPropertyListBuilder.AttrPropertyList)this.properties).getAttributes();
               for (int count = 0; count < attr.getLength(); count++) {
                   String rf = attr.getValue(count);
                   String qname = attr.getQName(count);
  @@ -70,16 +75,12 @@
                                              qname, rf);
                   }
               }
  -        } else {
  -        }
  -
  +        attr = null;
           parent.appendChild(element);
       }
   
       public void buildTopLevel(Document doc, Element svgRoot) {
           // build up the info for the top level element
  -        if(this.properties instanceof DirectPropertyListBuilder.AttrPropertyList) {
  -            Attributes attr = ((DirectPropertyListBuilder.AttrPropertyList)this.properties).getAttributes();
               for (int count = 0; count < attr.getLength(); count++) {
                   String rf = attr.getValue(count);
                   String qname = attr.getQName(count);
  @@ -97,8 +98,6 @@
                                              qname, rf);
                   }
               }
  -        } else {
  -        }
       }
   
       public Document createBasicDocument() {
  @@ -109,7 +108,7 @@
               DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance();
               fact.setNamespaceAware(true);
               doc = fact.newDocumentBuilder().newDocument();
  -            Element el = doc.createElement(tagName);
  +            Element el = doc.createElement(name);
               doc.appendChild(el);
   
               element = doc.getDocumentElement();
  
  
  
  1.1                  xml-fop/src/org/apache/fop/fo/FOElementMapping.java
  
  Index: FOElementMapping.java
  ===================================================================
  /*
   * $Id: FOElementMapping.java,v 1.1 2001/11/06 08:34:50 keiron 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.
   */
  
  package org.apache.fop.fo;
  
  import java.util.Enumeration;
  import java.util.HashMap;
  import java.util.Iterator;
  
  import org.apache.fop.fo.flow.*;
  import org.apache.fop.fo.pagination.*;
  
  public class FOElementMapping implements ElementMapping {
      private static HashMap foObjs = null;
  
      public synchronized void addToBuilder(FOTreeBuilder builder) {
  
          if(foObjs == null) {
              foObjs = new HashMap();
  
              // Declarations and Pagination and Layout Formatting Objects
              foObjs.put("root", new R());
              foObjs.put("declarations", new Dec());
              foObjs.put("color-profile", new CP());
              foObjs.put("page-sequence", new PS());
              foObjs.put("layout-master-set", new LMS());
              foObjs.put("page-sequence-master",
                             new PSM());
              foObjs.put("single-page-master-reference",
                             new SPMR());
              foObjs.put("repeatable-page-master-reference",
                             new RPMR());
              foObjs.put("repeatable-page-master-alternatives",
                             new RPMA());
              foObjs.put("conditional-page-master-reference",
                             new CPMR());
              foObjs.put("simple-page-master",
                             new SPM());
              foObjs.put("region-body", new RB());
              foObjs.put("region-before", new RBefore());
              foObjs.put("region-after", new RA());
              foObjs.put("region-start", new RS());
              foObjs.put("region-end", new RE());
              foObjs.put("flow", new Fl());
              foObjs.put("static-content", new SC());
              foObjs.put("title", new T());
  
              // Block-level Formatting Objects
              foObjs.put("block", new B());
              foObjs.put("block-container", new BC());
  
              // Inline-level Formatting Objects
              foObjs.put("bidi-override", new BO());
              foObjs.put("character",
                             new Ch());
              foObjs.put("initial-property-set",
                             new IPS());
              foObjs.put("external-graphic", new EG());
              foObjs.put("instream-foreign-object",
                             new IFO());
              foObjs.put("inline", new In());
              foObjs.put("inline-container", new IC());
              foObjs.put("leader", new L());
              foObjs.put("page-number", new PN());
              foObjs.put("page-number-citation",
                             new PNC());
  
              // Formatting Objects for Tables
              foObjs.put("table-and-caption", new TAC());
              foObjs.put("table", new Ta());
              foObjs.put("table-column", new TC());
              foObjs.put("table-caption", new TCaption());
              foObjs.put("table-header", new TH());
              foObjs.put("table-footer", new TF());
              foObjs.put("table-body", new TB());
              foObjs.put("table-row", new TR());
              foObjs.put("table-cell", new TCell());
  
              // Formatting Objects for Lists
              foObjs.put("list-block", new LB());
              foObjs.put("list-item", new LI());
              foObjs.put("list-item-body", new LIB());
              foObjs.put("list-item-label", new LIL());
  
              // Dynamic Effects: Link and Multi Formatting Objects
              foObjs.put("basic-link", new BL());
              foObjs.put("multi-switch", new MS());
              foObjs.put("multi-case", new MC());
              foObjs.put("multi-toggle", new MT());
              foObjs.put("multi-properties", new MP());
              foObjs.put("multi-property-set",
                             new MPS());
  
              // Out-of-Line Formatting Objects
              foObjs.put("float",
                             new F());
              foObjs.put("footnote", new Foot());
              foObjs.put("footnote-body", new FB());
  
              // Other Formatting Objects
              foObjs.put("wrapper", new W());
              foObjs.put("marker", new M());
              foObjs.put("retrieve-marker", new RM());
          }
  
          String uri = "http://www.w3.org/1999/XSL/Format";
          builder.addMapping(uri, foObjs);
      }
  
      class R extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new Root(parent);
          }
      }
  
      class Dec extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new Declarations(parent);
          }
      }
  
      class CP extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new ColorProfile(parent);
          }
      }
  
      class PS extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new PageSequence(parent);
          }
      }
  
      class LMS extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new LayoutMasterSet(parent);
          }
      }
  
      class PSM extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new PageSequenceMaster(parent);
          }
      }
  
      class SPMR extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new SinglePageMasterReference(parent);
          }
      }
  
      class RPMR extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new RepeatablePageMasterReference(parent);
          }
      }
  
      class RPMA extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new RepeatablePageMasterAlternatives(parent);
          }
      }
  
      class CPMR extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new ConditionalPageMasterReference(parent);
          }
      }
  
      class SPM extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new SimplePageMaster(parent);
          }
      }
  
      class RB extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new RegionBody(parent);
          }
      }
  
      class RBefore extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new RegionBefore(parent);
          }
      }
  
      class RA extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new RegionAfter(parent);
          }
      }
  
      class RS extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new RegionStart(parent);
          }
      }
  
      class RE extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new RegionEnd(parent);
          }
      }
  
      class Fl extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new Flow(parent);
          }
      }
  
      class SC extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new StaticContent(parent);
          }
      }
  
      class T extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new Title(parent);
          }
      }
  
      class B extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new Block(parent);
          }
      }
  
      class BC extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new BlockContainer(parent);
          }
      }
  
      class BO extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new BidiOverride(parent);
          }
      }
  
      class Ch extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new org.apache.fop.fo.flow.Character(parent);
          }
      }
  
      class IPS extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new InitialPropertySet(parent);
          }
      }
  
      class EG extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new ExternalGraphic(parent);
          }
      }
  
      class IFO extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new InstreamForeignObject(parent);
          }
      }
  
      class In extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new Inline(parent);
          }
      }
  
      class IC extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new InlineContainer(parent);
          }
      }
  
      class L extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new Leader(parent);
          }
      }
  
      class PN extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new PageNumber(parent);
          }
      }
  
      class PNC extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new PageNumberCitation(parent);
          }
      }
  
      class TAC extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new TableAndCaption(parent);
          }
      }
  
      class Ta extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new Table(parent);
          }
      }
  
      class TC extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new TableColumn(parent);
          }
      }
  
      class TCaption extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new TableCaption(parent);
          }
      }
  
      class TH extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new TableHeader(parent);
          }
      }
  
      class TF extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new TableFooter(parent);
          }
      }
  
      class TB extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new TableBody(parent);
          }
      }
  
      class TR extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new TableRow(parent);
          }
      }
  
      class TCell extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new TableCell(parent);
          }
      }
  
      class LB extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new ListBlock(parent);
          }
      }
  
      class LI extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new ListItem(parent);
          }
      }
  
      class LIB extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new ListItemBody(parent);
          }
      }
  
      class LIL extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new ListItemLabel(parent);
          }
      }
  
      class BL extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new BasicLink(parent);
          }
      }
  
      class MS extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new MultiSwitch(parent);
          }
      }
  
      class MC extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new MultiCase(parent);
          }
      }
  
      class MT extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new MultiToggle(parent);
          }
      }
  
      class MP extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new MultiProperties(parent);
          }
      }
  
      class MPS extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new MultiPropertySet(parent);
          }
      }
  
      class F extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new org.apache.fop.fo.flow.Float(parent);
          }
      }
  
      class Foot extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new Footnote(parent);
          }
      }
  
      class FB extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new FootnoteBody(parent);
          }
      }
  
      class W extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new Wrapper(parent);
          }
      }
  
      class M extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new Marker(parent);
          }
      }
  
      class RM extends ElementMapping.Maker {
          public FObj make(FObj parent) {
              return new RetrieveMarker(parent);
          }
      }
  }
  
  
  
  1.9       +3 -16     xml-fop/src/org/apache/fop/fo/flow/BasicLink.java
  
  Index: BasicLink.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/BasicLink.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- BasicLink.java	2001/08/31 11:41:25	1.8
  +++ BasicLink.java	2001/11/06 08:34:51	1.9
  @@ -1,5 +1,5 @@
   /*
  - * $Id: BasicLink.java,v 1.8 2001/08/31 11:41:25 keiron Exp $
  + * $Id: BasicLink.java,v 1.9 2001/11/06 08:34:51 keiron 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.
  @@ -20,21 +20,8 @@
   
   public class BasicLink extends Inline {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new BasicLink(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new BasicLink.Maker();
  -    }
  -
  -    public BasicLink(FObj parent,
  -                     PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public BasicLink(FObj parent) {
  +        super(parent);
           this.name = "fo:basic-link";
       }
   
  
  
  
  1.5       +3 -16     xml-fop/src/org/apache/fop/fo/flow/BidiOverride.java
  
  Index: BidiOverride.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/BidiOverride.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- BidiOverride.java	2001/08/20 11:19:23	1.4
  +++ BidiOverride.java	2001/11/06 08:34:51	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: BidiOverride.java,v 1.4 2001/08/20 11:19:23 keiron Exp $
  + * $Id: BidiOverride.java,v 1.5 2001/11/06 08:34:51 keiron 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.
  @@ -19,21 +19,8 @@
    */
   public class BidiOverride extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new BidiOverride(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new BidiOverride.Maker();
  -    }
  -
  -    protected BidiOverride(FObj parent,
  -                           PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public BidiOverride(FObj parent) {
  +        super(parent);
           this.name = "fo:bidi-override";
       }
   
  
  
  
  1.42      +9 -15     xml-fop/src/org/apache/fop/fo/flow/Block.java
  
  Index: Block.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Block.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- Block.java	2001/08/20 11:19:23	1.41
  +++ Block.java	2001/11/06 08:34:51	1.42
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Block.java,v 1.41 2001/08/20 11:19:23 keiron Exp $
  + * $Id: Block.java,v 1.42 2001/11/06 08:34:51 keiron 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.
  @@ -14,6 +14,8 @@
   import org.apache.fop.datatypes.*;
   import org.apache.fop.apps.FOPException;
   
  +import org.xml.sax.Attributes;
  +
   /*
     Modified by Mark Lillywhite mark-fop@inomial.com. The changes
     here are based on memory profiling and do not change functionality.
  @@ -31,18 +33,6 @@
   
   public class Block extends FObjMixed {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Block(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Block.Maker();
  -    }
  -
       int align;
       int alignLast;
       int breakAfter;
  @@ -66,9 +56,13 @@
       // this may be helpful on other FOs too
       boolean anythingLaidOut = false;
   
  -    public Block(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public Block(FObj parent) {
  +        super(parent);
           this.name = "fo:block";
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           this.span = this.properties.get("span").getEnum();
       }
   
  
  
  
  1.12      +9 -16     xml-fop/src/org/apache/fop/fo/flow/BlockContainer.java
  
  Index: BlockContainer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/BlockContainer.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- BlockContainer.java	2001/08/06 09:12:59	1.11
  +++ BlockContainer.java	2001/11/06 08:34:51	1.12
  @@ -1,5 +1,5 @@
   /*
  - * $Id: BlockContainer.java,v 1.11 2001/08/06 09:12:59 keiron Exp $
  + * $Id: BlockContainer.java,v 1.12 2001/11/06 08:34:51 keiron 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.
  @@ -19,6 +19,8 @@
   import java.util.Hashtable;
   import java.util.Enumeration;
   
  +import org.xml.sax.Attributes;
  +
   public class BlockContainer extends FObj {
   
       ColorType backgroundColor;
  @@ -35,24 +37,15 @@
   
       AreaContainer areaContainer;
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new BlockContainer(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new BlockContainer.Maker();
  -    }
  -
       PageSequence pageSequence;
   
  -    protected BlockContainer(FObj parent,
  -                             PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public BlockContainer(FObj parent) {
  +        super(parent);
           this.name = "fo:block-container";
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           this.span = this.properties.get("span").getEnum();
       }
   
  
  
  
  1.13      +3 -17     xml-fop/src/org/apache/fop/fo/flow/Character.java
  
  Index: Character.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Character.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Character.java	2001/09/11 10:04:24	1.12
  +++ Character.java	2001/11/06 08:34:51	1.13
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Character.java,v 1.12 2001/09/11 10:04:24 keiron Exp $
  + * $Id: Character.java,v 1.13 2001/11/06 08:34:51 keiron 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.
  @@ -37,24 +37,10 @@
       public final static int OK = 0;
       public final static int DOESNOT_FIT = 1;
   
  -    public Character(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public Character(FObj parent) {
  +        super(parent);
           this.name = "fo:character";
       }
  -
  -    public static FObj.Maker maker() {
  -        return new Character.Maker();
  -    }
  -
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Character(parent, propertyList);
  -        }
  -
  -    }
  -
   
       public Status layout(Area area) throws FOPException {
           BlockArea blockArea;
  
  
  
  1.14      +3 -18     xml-fop/src/org/apache/fop/fo/flow/ExternalGraphic.java
  
  Index: ExternalGraphic.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/ExternalGraphic.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- ExternalGraphic.java	2001/09/12 09:19:34	1.13
  +++ ExternalGraphic.java	2001/11/06 08:34:51	1.14
  @@ -1,5 +1,5 @@
   /*
  - * $Id: ExternalGraphic.java,v 1.13 2001/09/12 09:19:34 keiron Exp $
  + * $Id: ExternalGraphic.java,v 1.14 2001/11/06 08:34:51 keiron 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.
  @@ -36,13 +36,11 @@
   
       ImageArea imageArea;
   
  -
  -    public ExternalGraphic(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public ExternalGraphic(FObj parent) {
  +        super(parent);
           this.name = "fo:external-graphic";
       }
   
  -
       public Status layout(Area area) throws FOPException {
   
           if (this.marker == START) {
  @@ -251,18 +249,5 @@
           return new Status(Status.OK);
       }
   
  -
  -    public static FObj.Maker maker() {
  -        return new ExternalGraphic.Maker();
  -    }
  -
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new ExternalGraphic(parent, propertyList);
  -        }
  -
  -    }
   }
   
  
  
  
  1.5       +3 -16     xml-fop/src/org/apache/fop/fo/flow/Float.java
  
  Index: Float.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Float.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Float.java	2001/08/20 11:19:23	1.4
  +++ Float.java	2001/11/06 08:34:51	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Float.java,v 1.4 2001/08/20 11:19:23 keiron Exp $
  + * $Id: Float.java,v 1.5 2001/11/06 08:34:51 keiron 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.
  @@ -18,21 +18,8 @@
    */
   public class Float extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Float(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Float.Maker();
  -    }
  -
  -    protected Float(FObj parent,
  -                    PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public Float(FObj parent) {
  +        super(parent);
           this.name = "fo:float";
       }
   
  
  
  
  1.25      +11 -20    xml-fop/src/org/apache/fop/fo/flow/Flow.java
  
  Index: Flow.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Flow.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- Flow.java	2001/10/14 20:39:54	1.24
  +++ Flow.java	2001/11/06 08:34:51	1.25
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Flow.java,v 1.24 2001/10/14 20:39:54 klease Exp $
  + * $Id: Flow.java,v 1.25 2001/11/06 08:34:51 keiron 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.
  @@ -20,19 +20,9 @@
   import java.util.Enumeration;
   import java.util.Vector;
   
  -public class Flow extends FObj {
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Flow(parent, propertyList);
  -        }
  +import org.xml.sax.Attributes;
   
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Flow.Maker();
  -    }
  +public class Flow extends FObj {
   
       /**
        * PageSequence container
  @@ -62,11 +52,13 @@
       private Status _status = new Status(Status.AREA_FULL_NONE);
   
   
  -    protected Flow(FObj parent,
  -                   PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public Flow(FObj parent) {
  +        super(parent);
           this.name = getElementName();
  +    }
   
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           if (parent.getName().equals("fo:page-sequence")) {
               this.pageSequence = (PageSequence)parent;
           } else {
  @@ -74,14 +66,11 @@
                                      + "page-sequence, not "
                                      + parent.getName());
           }
  -        setFlowName(getProperty("flow-name").getString());
  -
           // according to communication from Paul Grosso (XSL-List,
           // 001228, Number 406), confusion in spec section 6.4.5 about
           // multiplicity of fo:flow in XSL 1.0 is cleared up - one (1)
           // fo:flow per fo:page-sequence only.
  -
  -        if (pageSequence.isFlowSet()) {
  +/*        if (pageSequence.isFlowSet()) {
               if (this.name.equals("fo:flow")) {
                   throw new FOPException("Only a single fo:flow permitted"
                                          + " per fo:page-sequence");
  @@ -90,6 +79,8 @@
                                          + " not allowed after fo:flow");
               }
           }
  +*/
  +        setFlowName(getProperty("flow-name").getString());
           pageSequence.addFlow(this);
       }
   
  
  
  
  1.7       +3 -16     xml-fop/src/org/apache/fop/fo/flow/Footnote.java
  
  Index: Footnote.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Footnote.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Footnote.java	2001/09/11 10:04:24	1.6
  +++ Footnote.java	2001/11/06 08:34:51	1.7
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Footnote.java,v 1.6 2001/09/11 10:04:24 keiron Exp $
  + * $Id: Footnote.java,v 1.7 2001/11/06 08:34:51 keiron 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.
  @@ -20,21 +20,8 @@
   
   public class Footnote extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Footnote(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Footnote.Maker();
  -    }
  -
  -    public Footnote(FObj parent,
  -                    PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public Footnote(FObj parent) {
  +        super(parent);
           this.name = "fo:footnote";
       }
   
  
  
  
  1.7       +4 -17     xml-fop/src/org/apache/fop/fo/flow/FootnoteBody.java
  
  Index: FootnoteBody.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/FootnoteBody.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FootnoteBody.java	2001/07/30 20:29:23	1.6
  +++ FootnoteBody.java	2001/11/06 08:34:51	1.7
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FootnoteBody.java,v 1.6 2001/07/30 20:29:23 tore Exp $
  + * $Id: FootnoteBody.java,v 1.7 2001/11/06 08:34:51 keiron 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.
  @@ -27,26 +27,13 @@
       int endIndent;
       int textIndent;
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new FootnoteBody(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new FootnoteBody.Maker();
  -    }
  -
  -    public FootnoteBody(FObj parent,
  -                        PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public FootnoteBody(FObj parent) {
  +        super(parent);
           this.name = "fo:footnote-body";
  -        this.areaClass = AreaClass.setAreaClass(AreaClass.XSL_FOOTNOTE);
       }
   
       public Status layout(Area area) throws FOPException {
  +        this.areaClass = AreaClass.setAreaClass(AreaClass.XSL_FOOTNOTE);
           if (this.marker == START) {
               this.marker = 0;
           }
  
  
  
  1.5       +3 -16     xml-fop/src/org/apache/fop/fo/flow/InitialPropertySet.java
  
  Index: InitialPropertySet.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/InitialPropertySet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- InitialPropertySet.java	2001/08/20 11:19:23	1.4
  +++ InitialPropertySet.java	2001/11/06 08:34:51	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: InitialPropertySet.java,v 1.4 2001/08/20 11:19:23 keiron Exp $
  + * $Id: InitialPropertySet.java,v 1.5 2001/11/06 08:34:51 keiron 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.
  @@ -19,21 +19,8 @@
    */
   public class InitialPropertySet extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new InitialPropertySet(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new InitialPropertySet.Maker();
  -    }
  -
  -    protected InitialPropertySet(FObj parent, PropertyList propertyList)
  -            throws FOPException {
  -        super(parent, propertyList);
  +    public InitialPropertySet(FObj parent) {
  +        super(parent);
           this.name = "fo:initial-property-set";
       }
   
  
  
  
  1.9       +10 -16    xml-fop/src/org/apache/fop/fo/flow/Inline.java
  
  Index: Inline.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Inline.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Inline.java	2001/09/16 13:42:49	1.8
  +++ Inline.java	2001/11/06 08:34:51	1.9
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Inline.java,v 1.8 2001/09/16 13:42:49 keiron Exp $
  + * $Id: Inline.java,v 1.9 2001/11/06 08:34:51 keiron 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.
  @@ -16,19 +16,9 @@
   // Java
   import java.util.Enumeration;
   
  -public class Inline extends FObjMixed {
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Inline(parent, propertyList);
  -        }
  +import org.xml.sax.Attributes;
   
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Inline.Maker();
  -    }
  +public class Inline extends FObjMixed {
   
       // Textdecoration
       protected boolean underlined = false;
  @@ -36,10 +26,14 @@
       protected boolean lineThrough = false;
   
   
  -    public Inline(FObj parent,
  -                  PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public Inline(FObj parent) {
  +        super(parent);
           this.name = "fo:inline";
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
  +
           if (parent.getName().equals("fo:flow")) {
               throw new FOPException("inline formatting objects cannot"
                                      + " be directly under flow");
  
  
  
  1.5       +8 -16     xml-fop/src/org/apache/fop/fo/flow/InlineContainer.java
  
  Index: InlineContainer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/InlineContainer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- InlineContainer.java	2001/08/20 11:19:23	1.4
  +++ InlineContainer.java	2001/11/06 08:34:51	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: InlineContainer.java,v 1.4 2001/08/20 11:19:23 keiron Exp $
  + * $Id: InlineContainer.java,v 1.5 2001/11/06 08:34:51 keiron 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.
  @@ -14,27 +14,19 @@
   import org.apache.fop.layout.*;
   import org.apache.fop.apps.FOPException;
   
  +import org.xml.sax.Attributes;
  +
   /**
    */
   public class InlineContainer extends ToBeImplementedElement {
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new InlineContainer(parent, propertyList);
  -        }
  -
  -    }
   
  -    public static FObj.Maker maker() {
  -        return new InlineContainer.Maker();
  -    }
  -
  -    protected InlineContainer(FObj parent,
  -                              PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public InlineContainer(FObj parent) {
  +        super(parent);
           this.name = "fo:inline-container";
  +    }
   
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           // Common Border, Padding, and Background Properties
           BorderAndPadding bap = propMgr.getBorderAndPadding();
           BackgroundProps bProps = propMgr.getBackgroundProps();
  
  
  
  1.15      +3 -32     xml-fop/src/org/apache/fop/fo/flow/InstreamForeignObject.java
  
  Index: InstreamForeignObject.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/InstreamForeignObject.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- InstreamForeignObject.java	2001/08/06 09:12:59	1.14
  +++ InstreamForeignObject.java	2001/11/06 08:34:51	1.15
  @@ -1,5 +1,5 @@
   /*
  - * $Id: InstreamForeignObject.java,v 1.14 2001/08/06 09:12:59 keiron Exp $
  + * $Id: InstreamForeignObject.java,v 1.15 2001/11/06 08:34:51 keiron 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.
  @@ -21,35 +21,6 @@
   
   public class InstreamForeignObject extends FObj {
   
  -    /**
  -     * inner class for making SVG objects.
  -     */
  -    public static class Maker extends FObj.Maker {
  -
  -        /**
  -         * make an SVG object.
  -         *
  -         * @param parent the parent formatting object
  -         * @param propertyList the explicit properties of this object
  -         *
  -         * @return the SVG object
  -         */
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new InstreamForeignObject(parent, propertyList);
  -        }
  -
  -    }
  -
  -    /**
  -     * returns the maker for this object.
  -     *
  -     * @return the maker for SVG objects
  -     */
  -    public static FObj.Maker maker() {
  -        return new InstreamForeignObject.Maker();
  -    }
  -
       int breakBefore;
       int breakAfter;
       int scaling;
  @@ -74,8 +45,8 @@
        * @param parent the parent formatting object
        * @param propertyList the explicit properties of this object
        */
  -    public InstreamForeignObject(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public InstreamForeignObject(FObj parent) {
  +        super(parent);
           this.name = "fo:instream-foreign-object";
       }
   
  
  
  
  1.14      +3 -16     xml-fop/src/org/apache/fop/fo/flow/Leader.java
  
  Index: Leader.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Leader.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Leader.java	2001/09/16 13:42:49	1.13
  +++ Leader.java	2001/11/06 08:34:51	1.14
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Leader.java,v 1.13 2001/09/16 13:42:49 keiron Exp $
  + * $Id: Leader.java,v 1.14 2001/11/06 08:34:51 keiron 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.
  @@ -23,23 +23,10 @@
    * The following patterns are treated: rule, space, dots.
    * The pattern use-content is ignored, i.e. it still must be implemented.
    */
  -
   public class Leader extends FObjMixed {
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Leader(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Leader.Maker();
  -    }
   
  -    public Leader(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public Leader(FObj parent) {
  +        super(parent);
           this.name = "fo:leader";
       }
   
  
  
  
  1.22      +3 -15     xml-fop/src/org/apache/fop/fo/flow/ListBlock.java
  
  Index: ListBlock.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/ListBlock.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- ListBlock.java	2001/08/20 11:19:23	1.21
  +++ ListBlock.java	2001/11/06 08:34:51	1.22
  @@ -1,5 +1,5 @@
   /*
  - * $Id: ListBlock.java,v 1.21 2001/08/20 11:19:23 keiron Exp $
  + * $Id: ListBlock.java,v 1.22 2001/11/06 08:34:51 keiron 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.
  @@ -21,18 +21,6 @@
   
   public class ListBlock extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new ListBlock(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new ListBlock.Maker();
  -    }
  -
       int align;
       int alignLast;
       int breakBefore;
  @@ -45,8 +33,8 @@
       int spaceBetweenListRows = 0;
       ColorType backgroundColor;
   
  -    public ListBlock(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public ListBlock(FObj parent) {
  +        super(parent);
           this.name = "fo:list-block";
       }
   
  
  
  
  1.17      +3 -15     xml-fop/src/org/apache/fop/fo/flow/ListItem.java
  
  Index: ListItem.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/ListItem.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ListItem.java	2001/08/06 09:12:59	1.16
  +++ ListItem.java	2001/11/06 08:34:51	1.17
  @@ -1,5 +1,5 @@
   /*
  - * $Id: ListItem.java,v 1.16 2001/08/06 09:12:59 keiron Exp $
  + * $Id: ListItem.java,v 1.17 2001/11/06 08:34:51 keiron 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.
  @@ -20,18 +20,6 @@
   
   public class ListItem extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new ListItem(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new ListItem.Maker();
  -    }
  -
       int align;
       int alignLast;
       int breakBefore;
  @@ -44,8 +32,8 @@
       String id;
       BlockArea blockArea;
   
  -    public ListItem(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public ListItem(FObj parent) {
  +        super(parent);
           this.name = "fo:list-item";
       }
   
  
  
  
  1.12      +3 -15     xml-fop/src/org/apache/fop/fo/flow/ListItemBody.java
  
  Index: ListItemBody.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/ListItemBody.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ListItemBody.java	2001/08/06 09:12:59	1.11
  +++ ListItemBody.java	2001/11/06 08:34:51	1.12
  @@ -1,5 +1,5 @@
   /*
  - * $Id: ListItemBody.java,v 1.11 2001/08/06 09:12:59 keiron Exp $
  + * $Id: ListItemBody.java,v 1.12 2001/11/06 08:34:51 keiron 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.
  @@ -19,20 +19,8 @@
   
   public class ListItemBody extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new ListItemBody(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new ListItemBody.Maker();
  -    }
  -
  -    public ListItemBody(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public ListItemBody(FObj parent) {
  +        super(parent);
           this.name = "fo:list-item-body";
       }
   
  
  
  
  1.12      +3 -15     xml-fop/src/org/apache/fop/fo/flow/ListItemLabel.java
  
  Index: ListItemLabel.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/ListItemLabel.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ListItemLabel.java	2001/08/06 09:12:59	1.11
  +++ ListItemLabel.java	2001/11/06 08:34:51	1.12
  @@ -1,5 +1,5 @@
   /*
  - * $Id: ListItemLabel.java,v 1.11 2001/08/06 09:12:59 keiron Exp $
  + * $Id: ListItemLabel.java,v 1.12 2001/11/06 08:34:51 keiron 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.
  @@ -19,20 +19,8 @@
   
   public class ListItemLabel extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new ListItemLabel(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new ListItemLabel.Maker();
  -    }
  -
  -    public ListItemLabel(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public ListItemLabel(FObj parent) {
  +        super(parent);
           this.name = "fo:list-item-label";
       }
   
  
  
  
  1.7       +8 -15     xml-fop/src/org/apache/fop/fo/flow/Marker.java
  
  Index: Marker.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Marker.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Marker.java	2001/09/21 09:08:38	1.6
  +++ Marker.java	2001/11/06 08:34:51	1.7
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Marker.java,v 1.6 2001/09/21 09:08:38 keiron Exp $
  + * $Id: Marker.java,v 1.7 2001/11/06 08:34:51 keiron 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.
  @@ -14,27 +14,20 @@
   import org.apache.fop.datatypes.*;
   import org.apache.fop.apps.FOPException;
   
  +import org.xml.sax.Attributes;
  +
   public class Marker extends FObjMixed {
   
       private String markerClassName;
       private Area registryArea;
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Marker(parent, propertyList);
  -        }
  -
  -    }
   
  -    public static FObj.Maker maker() {
  -        return new Marker.Maker();
  -    }
  -
  -    public Marker(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public Marker(FObj parent) {
  +        super(parent);
           this.name = "fo:marker";
  +    }
   
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           // do check to see that 'this' is under fo:flow
   
           this.markerClassName =
  
  
  
  1.5       +3 -16     xml-fop/src/org/apache/fop/fo/flow/MultiCase.java
  
  Index: MultiCase.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/MultiCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MultiCase.java	2001/08/20 11:19:23	1.4
  +++ MultiCase.java	2001/11/06 08:34:51	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: MultiCase.java,v 1.4 2001/08/20 11:19:23 keiron Exp $
  + * $Id: MultiCase.java,v 1.5 2001/11/06 08:34:51 keiron 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.
  @@ -18,21 +18,8 @@
    */
   public class MultiCase extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new MultiCase(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new MultiCase.Maker();
  -    }
  -
  -    protected MultiCase(FObj parent,
  -                        PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public MultiCase(FObj parent) {
  +        super(parent);
           this.name = "fo:multi-case";
       }
   
  
  
  
  1.5       +3 -16     xml-fop/src/org/apache/fop/fo/flow/MultiProperties.java
  
  Index: MultiProperties.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/MultiProperties.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MultiProperties.java	2001/08/20 11:19:23	1.4
  +++ MultiProperties.java	2001/11/06 08:34:51	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: MultiProperties.java,v 1.4 2001/08/20 11:19:23 keiron Exp $
  + * $Id: MultiProperties.java,v 1.5 2001/11/06 08:34:51 keiron 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.
  @@ -18,21 +18,8 @@
    */
   public class MultiProperties extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new MultiProperties(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new MultiProperties.Maker();
  -    }
  -
  -    protected MultiProperties(FObj parent,
  -                              PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public MultiProperties(FObj parent) {
  +        super(parent);
           this.name = "fo:multi-properties";
       }
   
  
  
  
  1.5       +3 -16     xml-fop/src/org/apache/fop/fo/flow/MultiPropertySet.java
  
  Index: MultiPropertySet.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/MultiPropertySet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MultiPropertySet.java	2001/08/20 11:19:23	1.4
  +++ MultiPropertySet.java	2001/11/06 08:34:51	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: MultiPropertySet.java,v 1.4 2001/08/20 11:19:23 keiron Exp $
  + * $Id: MultiPropertySet.java,v 1.5 2001/11/06 08:34:51 keiron 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.
  @@ -18,21 +18,8 @@
    */
   public class MultiPropertySet extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new MultiPropertySet(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new MultiPropertySet.Maker();
  -    }
  -
  -    protected MultiPropertySet(FObj parent, PropertyList propertyList)
  -            throws FOPException {
  -        super(parent, propertyList);
  +    public MultiPropertySet(FObj parent) {
  +        super(parent);
           this.name = "fo:multi-property-set";
       }
   
  
  
  
  1.5       +3 -16     xml-fop/src/org/apache/fop/fo/flow/MultiSwitch.java
  
  Index: MultiSwitch.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/MultiSwitch.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MultiSwitch.java	2001/08/20 11:19:23	1.4
  +++ MultiSwitch.java	2001/11/06 08:34:51	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: MultiSwitch.java,v 1.4 2001/08/20 11:19:23 keiron Exp $
  + * $Id: MultiSwitch.java,v 1.5 2001/11/06 08:34:51 keiron 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.
  @@ -18,21 +18,8 @@
    */
   public class MultiSwitch extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new MultiSwitch(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new MultiSwitch.Maker();
  -    }
  -
  -    protected MultiSwitch(FObj parent,
  -                          PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public MultiSwitch(FObj parent) {
  +        super(parent);
           this.name = "fo:multi-switch";
       }
   
  
  
  
  1.5       +3 -16     xml-fop/src/org/apache/fop/fo/flow/MultiToggle.java
  
  Index: MultiToggle.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/MultiToggle.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MultiToggle.java	2001/08/20 11:19:23	1.4
  +++ MultiToggle.java	2001/11/06 08:34:51	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: MultiToggle.java,v 1.4 2001/08/20 11:19:23 keiron Exp $
  + * $Id: MultiToggle.java,v 1.5 2001/11/06 08:34:51 keiron 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.
  @@ -18,21 +18,8 @@
    */
   public class MultiToggle extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new MultiToggle(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new MultiToggle.Maker();
  -    }
  -
  -    protected MultiToggle(FObj parent,
  -                          PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public MultiToggle(FObj parent) {
  +        super(parent);
           this.name = "fo:multi-toggle";
       }
   
  
  
  
  1.22      +3 -15     xml-fop/src/org/apache/fop/fo/flow/PageNumber.java
  
  Index: PageNumber.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/PageNumber.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- PageNumber.java	2001/09/11 10:04:24	1.21
  +++ PageNumber.java	2001/11/06 08:34:51	1.22
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PageNumber.java,v 1.21 2001/09/11 10:04:24 keiron Exp $
  + * $Id: PageNumber.java,v 1.22 2001/11/06 08:34:51 keiron 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.
  @@ -20,18 +20,6 @@
   
   public class PageNumber extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new PageNumber(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new PageNumber.Maker();
  -    }
  -
       float red;
       float green;
       float blue;
  @@ -39,8 +27,8 @@
       int whiteSpaceCollapse;
       TextState ts;
   
  -    public PageNumber(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public PageNumber(FObj parent) {
  +        super(parent);
           this.name = "fo:page-number";
       }
   
  
  
  
  1.20      +3 -16     xml-fop/src/org/apache/fop/fo/flow/PageNumberCitation.java
  
  Index: PageNumberCitation.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/PageNumberCitation.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- PageNumberCitation.java	2001/09/11 10:04:24	1.19
  +++ PageNumberCitation.java	2001/11/06 08:34:51	1.20
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PageNumberCitation.java,v 1.19 2001/09/11 10:04:24 keiron Exp $
  + * $Id: PageNumberCitation.java,v 1.20 2001/11/06 08:34:51 keiron 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.
  @@ -72,18 +72,6 @@
    */
   public class PageNumberCitation extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new PageNumberCitation(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new PageNumberCitation.Maker();
  -    }
  -
       float red;
       float green;
       float blue;
  @@ -96,11 +84,10 @@
       TextState ts;
   
   
  -    public PageNumberCitation(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public PageNumberCitation(FObj parent) {
  +        super(parent);
           this.name = "fo:page-number-citation";
       }
  -
   
       public Status layout(Area area) throws FOPException {
           if (!(area instanceof BlockArea)) {
  
  
  
  1.7       +8 -15     xml-fop/src/org/apache/fop/fo/flow/RetrieveMarker.java
  
  Index: RetrieveMarker.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/RetrieveMarker.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- RetrieveMarker.java	2001/08/20 11:19:23	1.6
  +++ RetrieveMarker.java	2001/11/06 08:34:51	1.7
  @@ -1,5 +1,5 @@
   /*
  - * $Id: RetrieveMarker.java,v 1.6 2001/08/20 11:19:23 keiron Exp $
  + * $Id: RetrieveMarker.java,v 1.7 2001/11/06 08:34:51 keiron 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.
  @@ -17,28 +17,21 @@
   // Java
   import java.util.Vector;
   
  +import org.xml.sax.Attributes;
  +
   public class RetrieveMarker extends FObjMixed {
   
       private String retrieveClassName;
       private int retrievePosition;
       private int retrieveBoundary;
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new RetrieveMarker(parent, propertyList);
  -        }
  -
  -    }
   
  -    public static FObj.Maker maker() {
  -        return new RetrieveMarker.Maker();
  -    }
  -
  -    public RetrieveMarker(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public RetrieveMarker(FObj parent) {
  +        super(parent);
           this.name = "fo:retrieve-marker";
  +    }
   
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           this.retrieveClassName =
               this.properties.get("retrieve-class-name").getString();
           this.retrievePosition =
  
  
  
  1.19      +3 -16     xml-fop/src/org/apache/fop/fo/flow/StaticContent.java
  
  Index: StaticContent.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/StaticContent.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- StaticContent.java	2001/10/14 20:39:54	1.18
  +++ StaticContent.java	2001/11/06 08:34:51	1.19
  @@ -1,5 +1,5 @@
   /*
  - * $Id: StaticContent.java,v 1.18 2001/10/14 20:39:54 klease Exp $
  + * $Id: StaticContent.java,v 1.19 2001/11/06 08:34:51 keiron 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.
  @@ -19,21 +19,8 @@
   
   public class StaticContent extends Flow {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new StaticContent(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new StaticContent.Maker();
  -    }
  -
  -    protected StaticContent(FObj parent,
  -                            PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public StaticContent(FObj parent) {
  +        super(parent);
           ((PageSequence)parent).setIsFlowSet(false);    // hacquery of sorts
       }
   
  
  
  
  1.40      +3 -15     xml-fop/src/org/apache/fop/fo/flow/Table.java
  
  Index: Table.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Table.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- Table.java	2001/10/14 20:43:32	1.39
  +++ Table.java	2001/11/06 08:34:51	1.40
  @@ -1,5 +1,5 @@
   /*
  - * -- $Id: Table.java,v 1.39 2001/10/14 20:43:32 klease Exp $ --
  + * -- $Id: Table.java,v 1.40 2001/11/06 08:34:51 keiron 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.
  @@ -20,18 +20,6 @@
   
   public class Table extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Table(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Table.Maker();
  -    }
  -
       private static final int MINCOLWIDTH = 10000; // 10pt
       int breakBefore;
       int breakAfter;
  @@ -59,8 +47,8 @@
   
       AreaContainer areaContainer;
   
  -    public Table(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public Table(FObj parent) {
  +        super(parent);
           this.name = "fo:table";
       }
   
  
  
  
  1.5       +3 -16     xml-fop/src/org/apache/fop/fo/flow/TableAndCaption.java
  
  Index: TableAndCaption.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/TableAndCaption.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TableAndCaption.java	2001/08/20 11:19:23	1.4
  +++ TableAndCaption.java	2001/11/06 08:34:51	1.5
  @@ -1,5 +1,5 @@
   /*
  - * -- $Id: TableAndCaption.java,v 1.4 2001/08/20 11:19:23 keiron Exp $ --
  + * -- $Id: TableAndCaption.java,v 1.5 2001/11/06 08:34:51 keiron 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.
  @@ -18,21 +18,8 @@
    */
   public class TableAndCaption extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new TableAndCaption(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new TableAndCaption.Maker();
  -    }
  -
  -    protected TableAndCaption(FObj parent,
  -                              PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public TableAndCaption(FObj parent) {
  +        super(parent);
           this.name = "fo:table-and-caption";
       }
   
  
  
  
  1.39      +3 -15     xml-fop/src/org/apache/fop/fo/flow/TableBody.java
  
  Index: TableBody.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/TableBody.java,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- TableBody.java	2001/08/06 09:12:59	1.38
  +++ TableBody.java	2001/11/06 08:34:51	1.39
  @@ -1,5 +1,5 @@
   /*
  - * $Id: TableBody.java,v 1.38 2001/08/06 09:12:59 keiron Exp $
  + * $Id: TableBody.java,v 1.39 2001/11/06 08:34:51 keiron 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.
  @@ -20,18 +20,6 @@
   
   public class TableBody extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new TableBody(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new TableBody.Maker();
  -    }
  -
       int spaceBefore;
       int spaceAfter;
       ColorType backgroundColor;
  @@ -42,8 +30,8 @@
   
       AreaContainer areaContainer;
   
  -    public TableBody(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public TableBody(FObj parent) {
  +        super(parent);
           this.name = "fo:table-body";
       }
   
  
  
  
  1.5       +3 -16     xml-fop/src/org/apache/fop/fo/flow/TableCaption.java
  
  Index: TableCaption.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/TableCaption.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TableCaption.java	2001/08/20 11:19:23	1.4
  +++ TableCaption.java	2001/11/06 08:34:51	1.5
  @@ -1,5 +1,5 @@
   /*
  - * -- $Id: TableCaption.java,v 1.4 2001/08/20 11:19:23 keiron Exp $ --
  + * -- $Id: TableCaption.java,v 1.5 2001/11/06 08:34:51 keiron 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.
  @@ -18,21 +18,8 @@
    */
   public class TableCaption extends ToBeImplementedElement {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new TableCaption(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new TableCaption.Maker();
  -    }
  -
  -    protected TableCaption(FObj parent,
  -                           PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public TableCaption(FObj parent) {
  +        super(parent);
           this.name = "fo:table-caption";
       }
   
  
  
  
  1.40      +9 -15     xml-fop/src/org/apache/fop/fo/flow/TableCell.java
  
  Index: TableCell.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/TableCell.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- TableCell.java	2001/10/14 20:42:04	1.39
  +++ TableCell.java	2001/11/06 08:34:51	1.40
  @@ -1,5 +1,5 @@
   /*
  - * -- $Id: TableCell.java,v 1.39 2001/10/14 20:42:04 klease Exp $ --
  + * -- $Id: TableCell.java,v 1.40 2001/11/06 08:34:51 keiron 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.
  @@ -14,19 +14,9 @@
   import org.apache.fop.apps.FOPException;
   import org.apache.fop.datatypes.*;
   
  -public class TableCell extends FObj {
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new TableCell(parent, propertyList);
  -        }
  -
  -    }
  +import org.xml.sax.Attributes;
   
  -    public static FObj.Maker maker() {
  -        return new TableCell.Maker();
  -    }
  +public class TableCell extends FObj {
   
       // int spaceBefore;
       // int spaceAfter;
  @@ -96,9 +86,13 @@
   
       AreaContainer cellArea;
   
  -    public TableCell(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public TableCell(FObj parent) {
  +        super(parent);
           this.name = "fo:table-cell";
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           doSetup();    // init some basic property values
       }
   
  
  
  
  1.21      +3 -15     xml-fop/src/org/apache/fop/fo/flow/TableColumn.java
  
  Index: TableColumn.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/TableColumn.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- TableColumn.java	2001/10/14 20:43:32	1.20
  +++ TableColumn.java	2001/11/06 08:34:51	1.21
  @@ -1,5 +1,5 @@
   /*
  - * $Id: TableColumn.java,v 1.20 2001/10/14 20:43:32 klease Exp $
  + * $Id: TableColumn.java,v 1.21 2001/11/06 08:34:51 keiron 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.
  @@ -28,20 +28,8 @@
   
       AreaContainer areaContainer;
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new TableColumn(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new TableColumn.Maker();
  -    }
  -
  -    public TableColumn(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public TableColumn(FObj parent) {
  +        super(parent);
           this.name = "fo:table-column";
       }
   
  
  
  
  1.4       +3 -19     xml-fop/src/org/apache/fop/fo/flow/TableFooter.java
  
  Index: TableFooter.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/TableFooter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TableFooter.java	2001/07/30 20:29:23	1.3
  +++ TableFooter.java	2001/11/06 08:34:51	1.4
  @@ -1,5 +1,5 @@
   /*
  - * $Id: TableFooter.java,v 1.3 2001/07/30 20:29:23 tore Exp $
  + * $Id: TableFooter.java,v 1.4 2001/11/06 08:34:51 keiron 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.
  @@ -14,20 +14,8 @@
   import org.apache.fop.layout.*;
   import org.apache.fop.apps.FOPException;
   
  -// Java
  -import java.util.Vector;
  -import java.util.Enumeration;
  -
   public class TableFooter extends TableBody {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new TableFooter(parent, propertyList);
  -        }
  -
  -    }
  -
       public int getYPosition() {
           return areaContainer.getCurrentYPosition() - spaceBefore;
       }
  @@ -35,13 +23,9 @@
       public void setYPosition(int value) {
           areaContainer.setYPosition(value + 2 * spaceBefore);
       }
  -
  -    public static FObj.Maker maker() {
  -        return new TableFooter.Maker();
  -    }
   
  -    public TableFooter(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public TableFooter(FObj parent) {
  +        super(parent);
           this.name = "fo:table-footer";
       }
   
  
  
  
  1.3       +3 -19     xml-fop/src/org/apache/fop/fo/flow/TableHeader.java
  
  Index: TableHeader.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/TableHeader.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TableHeader.java	2001/07/30 20:29:23	1.2
  +++ TableHeader.java	2001/11/06 08:34:51	1.3
  @@ -1,5 +1,5 @@
   /*
  - * $Id: TableHeader.java,v 1.2 2001/07/30 20:29:23 tore Exp $
  + * $Id: TableHeader.java,v 1.3 2001/11/06 08:34:51 keiron 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.
  @@ -14,26 +14,10 @@
   import org.apache.fop.layout.*;
   import org.apache.fop.apps.FOPException;
   
  -// Java
  -import java.util.Vector;
  -import java.util.Enumeration;
  -
   public class TableHeader extends TableBody {
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new TableHeader(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new TableHeader.Maker();
  -    }
   
  -    public TableHeader(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public TableHeader(FObj parent) {
  +        super(parent);
           this.name = "fo:table-header";
       }
   
  
  
  
  1.52      +3 -15     xml-fop/src/org/apache/fop/fo/flow/TableRow.java
  
  Index: TableRow.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/TableRow.java,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- TableRow.java	2001/08/20 11:19:23	1.51
  +++ TableRow.java	2001/11/06 08:34:51	1.52
  @@ -1,5 +1,5 @@
   /*
  - * -- $Id: TableRow.java,v 1.51 2001/08/20 11:19:23 keiron Exp $ --
  + * -- $Id: TableRow.java,v 1.52 2001/11/06 08:34:51 keiron 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.
  @@ -20,18 +20,6 @@
   
   public class TableRow extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new TableRow(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new TableRow.Maker();
  -    }
  -
       boolean setup = false;
   
       int breakAfter;
  @@ -172,8 +160,8 @@
       }
   
   
  -    public TableRow(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public TableRow(FObj parent) {
  +        super(parent);
           this.name = "fo:table-row";
       }
   
  
  
  
  1.5       +3 -15     xml-fop/src/org/apache/fop/fo/flow/Wrapper.java
  
  Index: Wrapper.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Wrapper.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Wrapper.java	2001/09/16 13:42:49	1.4
  +++ Wrapper.java	2001/11/06 08:34:51	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Wrapper.java,v 1.4 2001/09/16 13:42:49 keiron Exp $
  + * $Id: Wrapper.java,v 1.5 2001/11/06 08:34:51 keiron 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.
  @@ -23,20 +23,8 @@
    */
   public class Wrapper extends FObjMixed {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Wrapper(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Wrapper.Maker();
  -    }
  -
  -    public Wrapper(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList);
  +    public Wrapper(FObj parent) {
  +        super(parent);
           // check that this occurs inside an fo:flow
       }
   
  
  
  
  1.6       +9 -18     xml-fop/src/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java
  
  Index: ConditionalPageMasterReference.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ConditionalPageMasterReference.java	2001/09/11 10:04:25	1.5
  +++ ConditionalPageMasterReference.java	2001/11/06 08:34:53	1.6
  @@ -1,5 +1,5 @@
   /*
  - * $Id: ConditionalPageMasterReference.java,v 1.5 2001/09/11 10:04:25 keiron Exp $
  + * $Id: ConditionalPageMasterReference.java,v 1.6 2001/11/06 08:34:53 keiron 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.
  @@ -11,19 +11,9 @@
   import org.apache.fop.fo.properties.*;
   import org.apache.fop.apps.FOPException;
   
  -public class ConditionalPageMasterReference extends FObj {
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new ConditionalPageMasterReference(parent, propertyList);
  -        }
  +import org.xml.sax.Attributes;
   
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new ConditionalPageMasterReference.Maker();
  -    }
  +public class ConditionalPageMasterReference extends FObj {
   
       private RepeatablePageMasterAlternatives repeatablePageMasterAlternatives;
   
  @@ -33,11 +23,14 @@
       private int oddOrEven;
       private int blankOrNotBlank;
   
  -    public ConditionalPageMasterReference(FObj parent, PropertyList propertyList)
  -            throws FOPException {
  -        super(parent, propertyList);
  +    public ConditionalPageMasterReference(FObj parent) {
  +        super(parent);
   
           this.name = getElementName();
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           if (getProperty("master-name") != null) {
               setMasterName(getProperty("master-name").getString());
           }
  @@ -47,8 +40,6 @@
           setPagePosition(this.properties.get("page-position").getEnum());
           setOddOrEven(this.properties.get("odd-or-even").getEnum());
           setBlankOrNotBlank(this.properties.get("blank-or-not-blank").getEnum());
  -
  -
       }
   
       protected void setMasterName(String masterName) {
  
  
  
  1.11      +8 -16     xml-fop/src/org/apache/fop/fo/pagination/LayoutMasterSet.java
  
  Index: LayoutMasterSet.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/LayoutMasterSet.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- LayoutMasterSet.java	2001/07/30 20:29:25	1.10
  +++ LayoutMasterSet.java	2001/11/06 08:34:53	1.11
  @@ -1,5 +1,5 @@
   /*
  - * $Id: LayoutMasterSet.java,v 1.10 2001/07/30 20:29:25 tore Exp $
  + * $Id: LayoutMasterSet.java,v 1.11 2001/11/06 08:34:53 keiron 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.
  @@ -16,19 +16,9 @@
   // Java
   import java.util.*;
   
  -public class LayoutMasterSet extends FObj {
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new LayoutMasterSet(parent, propertyList);
  -        }
  -
  -    }
  +import org.xml.sax.Attributes;
   
  -    public static FObj.Maker maker() {
  -        return new LayoutMasterSet.Maker();
  -    }
  +public class LayoutMasterSet extends FObj {
   
       private Hashtable simplePageMasters;
       private Hashtable pageSequenceMasters;
  @@ -36,11 +26,13 @@
   
       private Root root;
   
  -    protected LayoutMasterSet(FObj parent,
  -                              PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public LayoutMasterSet(FObj parent) {
  +        super(parent);
           this.name = "fo:layout-master-set";
  +    }
   
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           this.simplePageMasters = new Hashtable();
           this.pageSequenceMasters = new Hashtable();
   
  
  
  
  1.6       +9 -4      xml-fop/src/org/apache/fop/fo/pagination/PageMasterReference.java
  
  Index: PageMasterReference.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/PageMasterReference.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PageMasterReference.java	2001/09/11 10:04:25	1.5
  +++ PageMasterReference.java	2001/11/06 08:34:53	1.6
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PageMasterReference.java,v 1.5 2001/09/11 10:04:25 keiron Exp $
  + * $Id: PageMasterReference.java,v 1.6 2001/11/06 08:34:53 keiron 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.
  @@ -11,6 +11,8 @@
   import org.apache.fop.fo.properties.*;
   import org.apache.fop.apps.FOPException;
   
  +import org.xml.sax.Attributes;
  +
   /**
    * Base PageMasterReference class. Provides implementation for handling the
    * master-name attribute and containment within a PageSequenceMaster
  @@ -21,10 +23,13 @@
       private String _masterName;
       private PageSequenceMaster _pageSequenceMaster;
   
  -    public PageMasterReference(FObj parent, PropertyList propertyList)
  -            throws FOPException {
  -        super(parent, propertyList);
  +    public PageMasterReference(FObj parent) {
  +        super(parent);
           this.name = getElementName();
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           if (getProperty("master-name") != null) {
               setMasterName(getProperty("master-name").getString());
           }
  
  
  
  1.41      +9 -19     xml-fop/src/org/apache/fop/fo/pagination/PageSequence.java
  
  Index: PageSequence.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/PageSequence.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- PageSequence.java	2001/11/02 07:45:17	1.40
  +++ PageSequence.java	2001/11/06 08:34:53	1.41
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PageSequence.java,v 1.40 2001/11/02 07:45:17 keiron Exp $
  + * $Id: PageSequence.java,v 1.41 2001/11/06 08:34:53 keiron 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.
  @@ -28,6 +28,8 @@
   // Java
   import java.util.*;
   
  +import org.xml.sax.Attributes;
  +
   /**
    * This provides pagination of flows onto pages. Much of the
    * logic for paginating flows is contained in this class.
  @@ -35,21 +37,6 @@
    */
   public class PageSequence extends FObj {
       //
  -    // Factory methods
  -    //
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new PageSequence(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new PageSequence.Maker();
  -    }
  -
  -    //
       // intial-page-number types
       //
       private static final int EXPLICIT = 0;
  @@ -134,10 +121,13 @@
       private String currentPageMasterName;
   
   
  -    protected PageSequence(FObj parent,
  -                           PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public PageSequence(FObj parent) {
  +        super(parent);
           this.name = "fo:page-sequence";
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
   
           if (parent.getName().equals("fo:root")) {
               this.root = (Root)parent;
  
  
  
  1.7       +9 -16     xml-fop/src/org/apache/fop/fo/pagination/PageSequenceMaster.java
  
  Index: PageSequenceMaster.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/PageSequenceMaster.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- PageSequenceMaster.java	2001/09/11 10:04:25	1.6
  +++ PageSequenceMaster.java	2001/11/06 08:34:53	1.7
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PageSequenceMaster.java,v 1.6 2001/09/11 10:04:25 keiron Exp $
  + * $Id: PageSequenceMaster.java,v 1.7 2001/11/06 08:34:53 keiron 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.
  @@ -16,19 +16,9 @@
   // Java
   import java.util.*;
   
  -public class PageSequenceMaster extends FObj {
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new PageSequenceMaster(parent, propertyList);
  -        }
  -
  -    }
  +import org.xml.sax.Attributes;
   
  -    public static FObj.Maker maker() {
  -        return new PageSequenceMaster.Maker();
  -    }
  +public class PageSequenceMaster extends FObj {
   
       LayoutMasterSet layoutMasterSet;
       Vector subSequenceSpecifiers;
  @@ -40,10 +30,13 @@
       // references to page-masters. So the methods use the former
       // terminology ('sub-sequence-specifiers', or SSS),
       // but the actual FO's are MasterReferences.
  -    protected PageSequenceMaster(FObj parent, PropertyList propertyList)
  -            throws FOPException {
  -        super(parent, propertyList);
  +    public PageSequenceMaster(FObj parent) {
  +        super(parent);
           this.name = "fo:page-sequence-master";
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
   
           subSequenceSpecifiers = new Vector();
   
  
  
  
  1.6       +9 -4      xml-fop/src/org/apache/fop/fo/pagination/Region.java
  
  Index: Region.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/Region.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Region.java	2001/07/30 20:29:25	1.5
  +++ Region.java	2001/11/06 08:34:53	1.6
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Region.java,v 1.5 2001/07/30 20:29:25 tore Exp $
  + * $Id: Region.java,v 1.6 2001/11/06 08:34:53 keiron 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.
  @@ -13,6 +13,8 @@
   import org.apache.fop.apps.FOPException;
   import org.apache.fop.layout.RegionArea;
   
  +import org.xml.sax.Attributes;
  +
   /**
    * This is an abstract base class for pagination regions
    */
  @@ -22,10 +24,13 @@
       private SimplePageMaster _layoutMaster;
       private String _regionName;
   
  -    protected Region(FObj parent,
  -                     PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    protected Region(FObj parent) {
  +        super(parent);
           this.name = getElementName();
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
   
           // regions may have name, or default
           if (null == this.properties.get(PROP_REGION_NAME)) {
  
  
  
  1.10      +9 -16     xml-fop/src/org/apache/fop/fo/pagination/RegionAfter.java
  
  Index: RegionAfter.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/RegionAfter.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- RegionAfter.java	2001/07/30 20:29:25	1.9
  +++ RegionAfter.java	2001/11/06 08:34:53	1.10
  @@ -1,5 +1,5 @@
   /*
  - * $Id: RegionAfter.java,v 1.9 2001/07/30 20:29:25 tore Exp $
  + * $Id: RegionAfter.java,v 1.10 2001/11/06 08:34:53 keiron 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.
  @@ -15,27 +15,20 @@
   import org.apache.fop.layout.BorderAndPadding;
   import org.apache.fop.layout.BackgroundProps;
   
  -public class RegionAfter extends Region {
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new RegionAfter(parent, propertyList);
  -        }
  -
  -    }
  +import org.xml.sax.Attributes;
   
  -    public static FObj.Maker maker() {
  -        return new RegionAfter.Maker();
  -    }
  +public class RegionAfter extends Region {
   
       public static final String REGION_CLASS = "after";
   
       private int precedence;
  +
  +    public RegionAfter(FObj parent) {
  +        super(parent);
  +    }
   
  -    protected RegionAfter(FObj parent,
  -                          PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           precedence = this.properties.get("precedence").getEnum();
       }
   
  
  
  
  1.10      +9 -17     xml-fop/src/org/apache/fop/fo/pagination/RegionBefore.java
  
  Index: RegionBefore.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/RegionBefore.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- RegionBefore.java	2001/07/30 20:29:25	1.9
  +++ RegionBefore.java	2001/11/06 08:34:53	1.10
  @@ -1,5 +1,5 @@
   /*
  - * $Id: RegionBefore.java,v 1.9 2001/07/30 20:29:25 tore Exp $
  + * $Id: RegionBefore.java,v 1.10 2001/11/06 08:34:53 keiron 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.
  @@ -15,30 +15,22 @@
   import org.apache.fop.layout.BackgroundProps;
   import org.apache.fop.apps.FOPException;
   
  -public class RegionBefore extends Region {
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new RegionBefore(parent, propertyList);
  -        }
  +import org.xml.sax.Attributes;
   
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new RegionBefore.Maker();
  -    }
  +public class RegionBefore extends Region {
   
       public static final String REGION_CLASS = "before";
   
       private int precedence;
   
  -    protected RegionBefore(FObj parent,
  -                           PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  -        precedence = this.properties.get("precedence").getEnum();
  +    public RegionBefore(FObj parent) {
  +        super(parent);
       }
   
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
  +        precedence = this.properties.get("precedence").getEnum();
  +    }
   
       RegionArea makeRegionArea(int allocationRectangleXPosition,
                                 int allocationRectangleYPosition,
  
  
  
  1.12      +3 -17     xml-fop/src/org/apache/fop/fo/pagination/RegionBody.java
  
  Index: RegionBody.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/RegionBody.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- RegionBody.java	2001/08/20 11:19:24	1.11
  +++ RegionBody.java	2001/11/06 08:34:53	1.12
  @@ -1,5 +1,5 @@
   /*
  - * $Id: RegionBody.java,v 1.11 2001/08/20 11:19:24 keiron Exp $
  + * $Id: RegionBody.java,v 1.12 2001/11/06 08:34:53 keiron 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.
  @@ -21,26 +21,12 @@
   
   public class RegionBody extends Region {
   
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new RegionBody(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new RegionBody.Maker();
  -    }
  -
       public static final String REGION_CLASS = "body";
   
       ColorType backgroundColor;
   
  -    protected RegionBody(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public RegionBody(FObj parent) {
  +        super(parent);
       }
   
       RegionArea makeRegionArea(int allocationRectangleXPosition,
  
  
  
  1.4       +3 -17     xml-fop/src/org/apache/fop/fo/pagination/RegionEnd.java
  
  Index: RegionEnd.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/RegionEnd.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RegionEnd.java	2001/07/30 20:29:25	1.3
  +++ RegionEnd.java	2001/11/06 08:34:53	1.4
  @@ -1,5 +1,5 @@
   /*
  - * $Id: RegionEnd.java,v 1.3 2001/07/30 20:29:25 tore Exp $
  + * $Id: RegionEnd.java,v 1.4 2001/11/06 08:34:53 keiron 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.
  @@ -17,26 +17,12 @@
   
   public class RegionEnd extends Region {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new RegionEnd(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new RegionEnd.Maker();
  -    }
  -
       public static final String REGION_CLASS = "end";
   
   
  -    protected RegionEnd(FObj parent,
  -                        PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public RegionEnd(FObj parent) {
  +        super(parent);
       }
  -
   
       RegionArea makeRegionArea(int allocationRectangleXPosition,
                                 int allocationRectangleYPosition,
  
  
  
  1.4       +3 -17     xml-fop/src/org/apache/fop/fo/pagination/RegionStart.java
  
  Index: RegionStart.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/RegionStart.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RegionStart.java	2001/07/30 20:29:25	1.3
  +++ RegionStart.java	2001/11/06 08:34:53	1.4
  @@ -1,5 +1,5 @@
   /*
  - * $Id: RegionStart.java,v 1.3 2001/07/30 20:29:25 tore Exp $
  + * $Id: RegionStart.java,v 1.4 2001/11/06 08:34:53 keiron 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."
  @@ -17,26 +17,12 @@
   
   public class RegionStart extends Region {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new RegionStart(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new RegionStart.Maker();
  -    }
  -
       public static final String REGION_CLASS = "start";
   
   
  -    protected RegionStart(FObj parent,
  -                          PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  +    public RegionStart(FObj parent) {
  +        super(parent);
       }
  -
   
       RegionArea makeRegionArea(int allocationRectangleXPosition,
                                 int allocationRectangleYPosition,
  
  
  
  1.8       +9 -17     xml-fop/src/org/apache/fop/fo/pagination/RepeatablePageMasterAlternatives.java
  
  Index: RepeatablePageMasterAlternatives.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/RepeatablePageMasterAlternatives.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- RepeatablePageMasterAlternatives.java	2001/08/20 11:19:24	1.7
  +++ RepeatablePageMasterAlternatives.java	2001/11/06 08:34:53	1.8
  @@ -1,5 +1,5 @@
   /*
  - * $Id: RepeatablePageMasterAlternatives.java,v 1.7 2001/08/20 11:19:24 keiron Exp $
  + * $Id: RepeatablePageMasterAlternatives.java,v 1.8 2001/11/06 08:34:53 keiron 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.
  @@ -13,24 +13,13 @@
   // Java
   import java.util.Vector;
   
  +import org.xml.sax.Attributes;
  +
   public class RepeatablePageMasterAlternatives extends FObj
       implements SubSequenceSpecifier {
   
       private static final int INFINITE = -1;
   
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new RepeatablePageMasterAlternatives(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new RepeatablePageMasterAlternatives.Maker();
  -    }
  -
       private PageSequenceMaster pageSequenceMaster;
   
       /**
  @@ -42,10 +31,13 @@
   
       private Vector conditionalPageMasterRefs;
   
  -    public RepeatablePageMasterAlternatives(FObj parent, PropertyList propertyList)
  -            throws FOPException {
  -        super(parent, propertyList);
  +    public RepeatablePageMasterAlternatives(FObj parent) {
  +        super(parent);
           this.name = "fo:repeatable-page-master-alternatives";
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
   
           conditionalPageMasterRefs = new Vector();
   
  
  
  
  1.4       +9 -17     xml-fop/src/org/apache/fop/fo/pagination/RepeatablePageMasterReference.java
  
  Index: RepeatablePageMasterReference.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/RepeatablePageMasterReference.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RepeatablePageMasterReference.java	2001/07/30 20:29:25	1.3
  +++ RepeatablePageMasterReference.java	2001/11/06 08:34:53	1.4
  @@ -1,5 +1,5 @@
   /*
  - * $Id: RepeatablePageMasterReference.java,v 1.3 2001/07/30 20:29:25 tore Exp $
  + * $Id: RepeatablePageMasterReference.java,v 1.4 2001/11/06 08:34:53 keiron 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.
  @@ -10,32 +10,24 @@
   import org.apache.fop.fo.*;
   import org.apache.fop.apps.FOPException;
   
  +import org.xml.sax.Attributes;
  +
   public class RepeatablePageMasterReference extends PageMasterReference
       implements SubSequenceSpecifier {
   
       private static final int INFINITE = -1;
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new RepeatablePageMasterReference(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new RepeatablePageMasterReference.Maker();
  -    }
  -
  -
       private PageSequenceMaster pageSequenceMaster;
   
       private int maximumRepeats;
       private int numberConsumed = 0;
  +
  +    public RepeatablePageMasterReference(FObj parent) {
  +        super(parent);
  +    }
   
  -    public RepeatablePageMasterReference(FObj parent, PropertyList propertyList)
  -            throws FOPException {
  -        super(parent, propertyList);
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
   
           String mr = getProperty("maximum-repeats").getString();
           if (mr.equals("no-limit")) {
  
  
  
  1.17      +4 -36     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.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Root.java	2001/08/21 08:26:11	1.16
  +++ Root.java	2001/11/06 08:34:53	1.17
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Root.java,v 1.16 2001/08/21 08:26:11 keiron Exp $
  + * $Id: Root.java,v 1.17 2001/11/06 08:34:53 keiron 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.
  @@ -25,18 +25,6 @@
    */
   public class Root extends FObj {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new Root(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new Root.Maker();
  -    }
  -
       LayoutMasterSet layoutMasterSet;
       Vector pageSequences;
   
  @@ -45,17 +33,15 @@
        */
       private int runningPageNumberCounter = 0;
   
  -    protected Root(FObj parent,
  -                   PropertyList propertyList) throws FOPException {
  -        super(parent, propertyList);
  -        this.name = "fo:root";
  +    public Root(FObj parent) {
  +        super(parent);
   
           // this.properties.get("media-usage");
   
           pageSequences = new Vector();
   
           if (parent != null) {
  -            throw new FOPException("root must be root element");
  +            //throw new FOPException("root must be root element");
           }
       }
   
  @@ -101,22 +87,4 @@
       public void setLayoutMasterSet(LayoutMasterSet layoutMasterSet) {
           this.layoutMasterSet = layoutMasterSet;
       }
  -/*
  -    public void format(AreaTree areaTree) throws FOPException {
  -        // log.debug(" Root[" + marker + "] ");
  -        if (layoutMasterSet == null) {
  -            throw new FOPException("No layout master set.");
  -        }
  -
  -        Enumeration e = children.elements();
  -        while (e.hasMoreElements()) {
  -            Object o = e.nextElement();
  -            if (o instanceof PageSequence) {
  -                ((PageSequence)o).format(areaTree);
  -            } else if (o instanceof ExtensionObj) {
  -                ((ExtensionObj)o).format(areaTree);
  -            }
  -        }
  -    }
  -*/
   }
  
  
  
  1.16      +9 -17     xml-fop/src/org/apache/fop/fo/pagination/SimplePageMaster.java
  
  Index: SimplePageMaster.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/SimplePageMaster.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- SimplePageMaster.java	2001/09/11 10:04:25	1.15
  +++ SimplePageMaster.java	2001/11/06 08:34:53	1.16
  @@ -1,5 +1,5 @@
   /*
  - * $Id: SimplePageMaster.java,v 1.15 2001/09/11 10:04:25 keiron Exp $
  + * $Id: SimplePageMaster.java,v 1.16 2001/11/06 08:34:53 keiron 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.
  @@ -18,26 +18,15 @@
   
   import java.util.*;
   
  -public class SimplePageMaster extends FObj {
  -
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new SimplePageMaster(parent, propertyList);
  -        }
  +import org.xml.sax.Attributes;
   
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new SimplePageMaster.Maker();
  -    }
  +public class SimplePageMaster extends FObj {
   
       /**
        * Page regions (regionClass, Region)
        */
       private Hashtable _regions;
   
  -
       LayoutMasterSet layoutMasterSet;
       PageMaster pageMaster;
       String masterName;
  @@ -48,10 +37,13 @@
       boolean afterPrecedence;
       int afterHeight;
   
  -    protected SimplePageMaster(FObj parent, PropertyList propertyList)
  -            throws FOPException {
  -        super(parent, propertyList);
  +    public SimplePageMaster(FObj parent) {
  +        super(parent);
           this.name = "fo:simple-page-master";
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
   
           if (parent.getName().equals("fo:layout-master-set")) {
               this.layoutMasterSet = (LayoutMasterSet)parent;
  
  
  
  1.5       +3 -17     xml-fop/src/org/apache/fop/fo/pagination/SinglePageMasterReference.java
  
  Index: SinglePageMasterReference.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/SinglePageMasterReference.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SinglePageMasterReference.java	2001/08/20 11:19:24	1.4
  +++ SinglePageMasterReference.java	2001/11/06 08:34:53	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: SinglePageMasterReference.java,v 1.4 2001/08/20 11:19:24 keiron Exp $
  + * $Id: SinglePageMasterReference.java,v 1.5 2001/11/06 08:34:53 keiron 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.
  @@ -12,28 +12,14 @@
   public class SinglePageMasterReference extends PageMasterReference
       implements SubSequenceSpecifier {
   
  -    public static class Maker extends FObj.Maker {
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new SinglePageMasterReference(parent, propertyList);
  -        }
  -
  -    }
  -
  -    public static FObj.Maker maker() {
  -        return new SinglePageMasterReference.Maker();
  -    }
  -
       private static final int FIRST = 0;
       private static final int DONE = 1;
   
       private int state;
   
  -    public SinglePageMasterReference(FObj parent, PropertyList propertyList)
  -            throws FOPException {
  -        super(parent, propertyList);
  +    public SinglePageMasterReference(FObj parent) {
  +        super(parent);
           this.state = FIRST;
  -
       }
   
       public String getNextPageMaster(int currentPageNumber,
  
  
  
  1.22      +8 -2      xml-fop/src/org/apache/fop/svg/PDFGraphics2D.java
  
  Index: PDFGraphics2D.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFGraphics2D.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- PDFGraphics2D.java	2001/11/02 11:06:08	1.21
  +++ PDFGraphics2D.java	2001/11/06 08:34:53	1.22
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PDFGraphics2D.java,v 1.21 2001/11/02 11:06:08 keiron Exp $
  + * $Id: PDFGraphics2D.java,v 1.22 2001/11/06 08:34:53 keiron 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.
  @@ -43,7 +43,7 @@
    * implementing a <tt>Graphic2D</tt> piece-meal.
    *
    * @author <a href="mailto:keiron@aftexsw.com">Keiron Liddle</a>
  - * @version $Id: PDFGraphics2D.java,v 1.21 2001/11/02 11:06:08 keiron Exp $
  + * @version $Id: PDFGraphics2D.java,v 1.22 2001/11/06 08:34:53 keiron Exp $
    * @see org.apache.batik.ext.awt.g2d.AbstractGraphics2D
    */
   public class PDFGraphics2D extends AbstractGraphics2D {
  @@ -1250,6 +1250,12 @@
               return new PDFGraphicsDevice(this);
           }
   
  +/*
  +// for jdk1.4
  +public java.awt.image.VolatileImage createCompatibleVolatileImage(int width, int height) {
  +return null;
  +}
  +*/
       }
   
       /**
  
  
  
  1.17      +8 -31     xml-fop/src/org/apache/fop/svg/SVGElement.java
  
  Index: SVGElement.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/SVGElement.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- SVGElement.java	2001/10/11 09:16:24	1.16
  +++ SVGElement.java	2001/11/06 08:34:53	1.17
  @@ -1,5 +1,5 @@
   /*
  - * $Id: SVGElement.java,v 1.16 2001/10/11 09:16:24 keiron Exp $
  + * $Id: SVGElement.java,v 1.17 2001/11/06 08:34:53 keiron 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.
  @@ -21,6 +21,7 @@
   import org.w3c.dom.*;
   import org.w3c.dom.svg.*;
   import org.w3c.dom.svg.SVGLength;
  +import org.xml.sax.Attributes;
   import org.apache.batik.bridge.*;
   import org.apache.batik.swing.svg.*;
   import org.apache.batik.swing.gvt.*;
  @@ -43,34 +44,6 @@
    */
   public class SVGElement extends SVGObj {
   
  -    /**
  -     * inner class for making SVG objects.
  -     */
  -    public static class Maker extends FObj.Maker {
  -
  -        /**
  -         * make an SVG object.
  -         *
  -         * @param parent the parent formatting object
  -         * @param propertyList the explicit properties of this object
  -         *
  -         * @return the SVG object
  -         */
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new SVGElement(parent, propertyList);
  -        }
  -    }
  -
  -    /**
  -     * returns the maker for this object.
  -     *
  -     * @return the maker for SVG objects
  -     */
  -    public static FObj.Maker maker() {
  -        return new SVGElement.Maker();
  -    }
  -
       FontState fs;
   
       /**
  @@ -79,8 +52,12 @@
        * @param parent the parent formatting object
        * @param propertyList the explicit properties of this object
        */
  -    public SVGElement(FObj parent, PropertyList propertyList) {
  -        super(parent, propertyList, "svg");
  +    public SVGElement(FObj parent) {
  +        super(parent);
  +    }
  +
  +    public void handleAttrs(Attributes attlist) throws FOPException {
  +        super.handleAttrs(attlist);
           init();
       }
   
  
  
  
  1.19      +16 -59    xml-fop/src/org/apache/fop/svg/SVGElementMapping.java
  
  Index: SVGElementMapping.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/SVGElementMapping.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- SVGElementMapping.java	2001/11/02 07:45:18	1.18
  +++ SVGElementMapping.java	2001/11/06 08:34:53	1.19
  @@ -1,5 +1,5 @@
   /*
  - * $Id: SVGElementMapping.java,v 1.18 2001/11/02 07:45:18 keiron Exp $
  + * $Id: SVGElementMapping.java,v 1.19 2001/11/06 08:34:53 keiron 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.
  @@ -10,8 +10,7 @@
   import java.util.Enumeration;
   import java.util.HashMap;
   
  -import org.apache.fop.fo.DirectPropertyListBuilder;
  -import org.apache.fop.fo.TreeBuilder;
  +import org.apache.fop.fo.FObj;
   import org.apache.fop.fo.FOTreeBuilder;
   import org.apache.fop.fo.ElementMapping;
   import org.apache.fop.apps.Driver;
  @@ -23,7 +22,7 @@
   
       private static HashMap foObjs = null;
   
  -    public synchronized void addToBuilder(TreeBuilder builder) {
  +    public synchronized void addToBuilder(FOTreeBuilder builder) {
           try {
               if (foObjs == null) {
                   // this sets the parser that will be used
  @@ -33,68 +32,26 @@
                     Driver.getParserClassName());
   
                   foObjs = new HashMap();
  -                foObjs.put("svg", SVGElement.maker());
  -                foObjs.put("rect", SVGObj.maker("rect"));
  -                foObjs.put("line", SVGObj.maker("line"));
  -                foObjs.put("text", SVGObj.maker("text"));
  -
  -                foObjs.put("desc", SVGObj.maker("desc"));
  -                foObjs.put("title", SVGObj.maker("title"));
  -                foObjs.put("circle", SVGObj.maker("circle"));
  -                foObjs.put("ellipse", SVGObj.maker("ellipse"));
  -                foObjs.put("g", SVGObj.maker("g"));
  -                foObjs.put("polyline", SVGObj.maker("polyline"));
  -                foObjs.put("polygon", SVGObj.maker("polygon"));
  -                foObjs.put("defs", SVGObj.maker("defs"));
  -                foObjs.put("path", SVGObj.maker("path"));
  -                foObjs.put("use", SVGObj.maker("use"));
  -                foObjs.put("tspan", SVGObj.maker("tspan"));
  -                foObjs.put("tref", SVGObj.maker("tref"));
  -                foObjs.put("image", SVGObj.maker("image"));
  -                foObjs.put("style", SVGObj.maker("style"));
  -
  -                foObjs.put("textPath", SVGObj.maker("textPath"));
  -                foObjs.put("clipPath", SVGObj.maker("clipPath"));
  -                foObjs.put("mask", SVGObj.maker("mask"));
  -                foObjs.put("linearGradient", SVGObj.maker("linearGradient"));
  -                foObjs.put("radialGradient", SVGObj.maker("radialGradient"));
  -                foObjs.put("stop", SVGObj.maker("stop"));
  -                foObjs.put("a", SVGObj.maker("a"));
  -                foObjs.put("switch", SVGObj.maker("switch"));
  -                foObjs.put("symbol", SVGObj.maker("symbol"));
  -
  -                foObjs.put("pattern", SVGObj.maker("pattern"));
  -
  -                foObjs.put("marker", SVGObj.maker("marker"));
  -                foObjs.put("animate", SVGObj.maker("animate"));
  -                foObjs.put("altGlyph", SVGObj.maker("altGlyph"));
  -                foObjs.put("font", SVGObj.maker("font"));
  -                foObjs.put("glyph", SVGObj.maker("glyph"));
  -                foObjs.put("missing-glyph", SVGObj.maker("missing-glyph"));
  -                foObjs.put("hkern", SVGObj.maker("hkern"));
  -                foObjs.put("vkern", SVGObj.maker("vkern"));
  -                foObjs.put("set", SVGObj.maker("set"));
  -                foObjs.put("animateMotion", SVGObj.maker("animateMotion"));
  -                foObjs.put("animateColor", SVGObj.maker("animateColor"));
  -                foObjs.put("animateTransform", SVGObj.maker("animateTransform"));
  -                foObjs.put("cursor", SVGObj.maker("cursor"));
  -                foObjs.put("filter", SVGObj.maker("filter"));
  -
  -                foObjs.put("feFlood", SVGObj.maker("feFlood"));
  -                foObjs.put("feGaussianBlur", SVGObj.maker("feGaussianBlur"));
  -                foObjs.put("feOffset", SVGObj.maker("feOffset"));
  -                foObjs.put("feMerge", SVGObj.maker("feMerge"));
  -                foObjs.put("feMergeNode", SVGObj.maker("feMergeNode"));
  +                foObjs.put("svg", new SE());
  +                foObjs.put("<default>", new SVGMaker());
               }
   
               String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI;
               builder.addMapping(svgNS, foObjs);
  -
  -            builder.addPropertyListBuilder(svgNS,
  -                                           new DirectPropertyListBuilder());
           } catch (Throwable t) {
               // if the classes are not available
           }
       }
   
  +    class SVGMaker extends ElementMapping.Maker {
  +        public FObj make(FObj parent) {
  +            return new SVGObj(parent);
  +        }
  +    }
  +
  +    class SE extends ElementMapping.Maker {
  +        public FObj make(FObj parent) {
  +            return new SVGElement(parent);
  +        }
  +    }
   }
  
  
  
  1.8       +4 -37     xml-fop/src/org/apache/fop/svg/SVGObj.java
  
  Index: SVGObj.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/SVGObj.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SVGObj.java	2001/09/12 09:28:13	1.7
  +++ SVGObj.java	2001/11/06 08:34:53	1.8
  @@ -1,5 +1,5 @@
   /*
  - * $Id: SVGObj.java,v 1.7 2001/09/12 09:28:13 keiron Exp $
  + * $Id: SVGObj.java,v 1.8 2001/11/06 08:34:53 keiron 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.
  @@ -16,51 +16,18 @@
   
   public class SVGObj extends XMLObj {
       /**
  -     * inner class for making svg objects.
  -     */
  -    public static class Maker extends FObj.Maker {
  -        String tag;
  -
  -        Maker(String str) {
  -            tag = str;
  -        }
  -
  -        /**
  -         * make an svg object.
  -         *
  -         * @param parent the parent formatting object
  -         * @param propertyList the explicit properties of this object
  -         *
  -         * @return the svg object
  -         */
  -        public FObj make(FObj parent,
  -                         PropertyList propertyList) throws FOPException {
  -            return new SVGObj(parent, propertyList, tag);
  -        }
  -    }
  -
  -    /**
  -     * returns the maker for this object.
  -     *
  -     * @return the maker for an svg object
  -     */
  -    public static FObj.Maker maker(String str) {
  -        return new SVGObj.Maker(str);
  -    }
  -
  -    /**
        * constructs an svg object (called by Maker).
        *
        * @param parent the parent formatting object
        * @param propertyList the explicit properties of this object
        */
  -    protected SVGObj(FObj parent, PropertyList propertyList, String tag) {
  -        super(parent, propertyList, tag);
  -        this.name = "svg:" + tag;
  +    public SVGObj(FObj parent) {
  +        super(parent);
       }
   
       public String getNameSpace() {
           return "http://www.w3.org/2000/svg";
       }
  +
   }
   
  
  
  

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