aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/pagination/SimplePageMaster.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/fo/pagination/SimplePageMaster.java')
-rw-r--r--src/org/apache/fop/fo/pagination/SimplePageMaster.java24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/org/apache/fop/fo/pagination/SimplePageMaster.java b/src/org/apache/fop/fo/pagination/SimplePageMaster.java
index 92586593c..d50194889 100644
--- a/src/org/apache/fop/fo/pagination/SimplePageMaster.java
+++ b/src/org/apache/fop/fo/pagination/SimplePageMaster.java
@@ -18,26 +18,15 @@ import org.apache.fop.apps.FOPException;
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 @@ public class SimplePageMaster extends FObj {
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;