1 51 package org.apache.fop.extensions; 52 53 import org.apache.fop.fo.*; 54 import org.apache.fop.layout.*; 55 import org.apache.fop.apps.FOPException; 56 57 60 public abstract class ExtensionObj extends FObj { 61 62 67 public ExtensionObj(FObj parent, PropertyList propertyList, 68 String systemId, int line, int column) { 69 super(parent, propertyList, systemId, line, column); 70 } 71 72 79 public int layout(Area area) throws FOPException { 80 ExtensionArea extArea = new ExtensionArea(this); 81 area.addChild(extArea); 82 return Status.OK; 83 } 84 85 86 93 public void format(AreaTree areaTree) throws FOPException { 94 ExtensionArea extArea = new ExtensionArea(this); 95 areaTree.addExtension(this); 96 } 97 98 } 99 | Popular Tags |