From a02dba544228b829f47bc21b759738859a1b1532 Mon Sep 17 00:00:00 2001 From: Karen Lease Date: Fri, 10 Nov 2000 21:51:24 +0000 Subject: [PATCH] New property-related XSL files git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193762 13f79535-47bb-0310-9956-ffa450edef68 --- src/codegen/enumgen.xsl | 45 ++++++++++++++++ src/codegen/propinc.xsl | 79 ++++++++++++++++++++++++++++ src/codegen/propmap.xsl | 114 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 238 insertions(+) create mode 100644 src/codegen/enumgen.xsl create mode 100644 src/codegen/propinc.xsl create mode 100644 src/codegen/propmap.xsl diff --git a/src/codegen/enumgen.xsl b/src/codegen/enumgen.xsl new file mode 100644 index 000000000..5b1cb9a64 --- /dev/null +++ b/src/codegen/enumgen.xsl @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + +package org.apache.fop.fo.properties; + + + public interface + + extends .Enums + { + + public final static int = ; + + } + + + + + + diff --git a/src/codegen/propinc.xsl b/src/codegen/propinc.xsl new file mode 100644 index 000000000..e25755aa6 --- /dev/null +++ b/src/codegen/propinc.xsl @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Property + + + + + + + + + + + + + + No datatype found for property: + + + + + + + + + + + + + + + + + + + false + + + + \ No newline at end of file diff --git a/src/codegen/propmap.xsl b/src/codegen/propmap.xsl new file mode 100644 index 000000000..bd832a9d1 --- /dev/null +++ b/src/codegen/propmap.xsl @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + Maker + + + + + Maker + + + + .put("", .maker("")); + + + + + + +package org.apache.fop.fo.properties; + +import java.util.Hashtable; +import java.util.Enumeration; +import org.apache.fop.svg.*; + +public class PropertyMapping { + + private static Hashtable s_htGeneric = new Hashtable(200); + private static Hashtable s_htElementLists = new Hashtable(10); + + private static Hashtable s_ht; + + + + public static Hashtable getGenericMappings() { + return s_htGeneric; + } + + public static Enumeration getElementMappings() { + return s_htElementLists.keys(); + } + + public static Hashtable getElementMapping(String elemName) { + return (Hashtable)s_htElementLists.get(elemName); + } +} + + + + static { + // Generate the generic mapping + + + + } + + + + + static { + s_ht = new Hashtable(); + + s_htElementLists.put("", s_ht); + + + + s_ht + + } + + + + + + + + + + + + + + + + + + + + + + + /* PROPCLASS = */ + + + + + -- 2.39.5