1 17 18 19 20 package org.apache.fop.layoutmgr.inline; 21 22 import org.apache.fop.area.Area; 23 import org.apache.fop.area.inline.ForeignObject; 24 import org.apache.fop.fo.XMLObj; 25 import org.apache.fop.fo.flow.InstreamForeignObject; 26 27 30 public class InstreamForeignObjectLM extends AbstractGraphicsLayoutManager { 31 32 private InstreamForeignObject fobj; 33 34 38 public InstreamForeignObjectLM(InstreamForeignObject node) { 39 super(node); 40 fobj = node; 41 } 42 43 48 protected Area getChildArea() { 49 XMLObj child = (XMLObj) fobj.getChildXMLObj(); 50 51 org.w3c.dom.Document doc = child.getDOMDocument(); 52 String ns = child.getNamespaceURI(); 53 54 return new ForeignObject(doc, ns); 55 } 56 57 } 58 59 | Popular Tags |