From 31965968c68717055bbd096b709df3e72ceb8b40 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Tue, 6 Nov 2001 08:34:53 +0000 Subject: 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) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194536 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/pagination/PageSequence.java | 26 +++++++--------------- 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'src/org/apache/fop/fo/pagination/PageSequence.java') diff --git a/src/org/apache/fop/fo/pagination/PageSequence.java b/src/org/apache/fop/fo/pagination/PageSequence.java index 5b957d8a8..67d55212e 100644 --- a/src/org/apache/fop/fo/pagination/PageSequence.java +++ b/src/org/apache/fop/fo/pagination/PageSequence.java @@ -28,27 +28,14 @@ import org.apache.fop.apps.FOPException; // 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. * The main entry point is the format method. */ 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 // @@ -134,10 +121,13 @@ public class PageSequence extends FObj { 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; -- cgit v1.2.3