1 17 18 19 20 package org.apache.fop.render.ps.extensions; 21 22 import org.apache.fop.fo.FONode; 23 import org.apache.fop.fo.ElementMapping; 24 25 28 public class PSExtensionElementMapping extends ElementMapping { 29 30 31 public static final String NAMESPACE = "http://xmlgraphics.apache.org/fop/postscript"; 32 33 34 public PSExtensionElementMapping() { 35 this.namespaceURI = NAMESPACE; 36 } 37 38 39 protected void initialize() { 40 if (foObjs == null) { 41 foObjs = new java.util.HashMap (); 42 foObjs.put("ps-setup-code", new PSSetupCodeMaker()); 43 foObjs.put("ps-page-setup-code", new PSPageSetupCodeMaker()); 44 } 45 } 46 47 static class PSSetupCodeMaker extends ElementMapping.Maker { 48 public FONode make(FONode parent) { 49 return new PSSetupCodeElement(parent); 50 } 51 } 52 53 static class PSPageSetupCodeMaker extends ElementMapping.Maker { 54 public FONode make(FONode parent) { 55 return new PSPageSetupCodeElement(parent); 56 } 57 } 58 59 } 60 | Popular Tags |