1
2
3
4
5
6
7
8
9
10
11
12 package sk.uniba.euromath.foRenderer;
13
14 import java.util.HashMap;
15
16 import org.apache.fop.fo.ElementMapping;
17 import org.apache.fop.fo.FONode;
18
19 import sk.baka.ikslibs.splitted.SplittedDocHolder;
20 import sk.baka.xml.gene.ExportUtils;
21 import sk.uniba.euromath.Const;
22
23 /***
24 * @author Tomáš Studva 2.10.2005
25 */
26 public class MarkElementMapping extends ElementMapping {
27
28 public MarkElementMapping() {
29 namespaceURI = ExportUtils.GENE_ID_ATTRIBUTE_QNAME.getNamespaceURI();
30 }
31
32
33
34
35
36
37 @Override
38 protected void initialize() {
39 foObjs = new HashMap<String, Maker>();
40 foObjs.put(SplittedDocHolder.PI_GENEREF_TARGET, new MarkMaker());
41 foObjs.put(DEFAULT, new MarkMaker());
42 }
43
44
45 static class MarkMaker extends ElementMapping.Maker {
46 public FONode make(FONode parent) {
47 return new MarkObj(parent);
48 }
49 }
50
51 }