diff options
author | Keiron Liddle <keiron@apache.org> | 2001-07-12 13:03:39 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-07-12 13:03:39 +0000 |
commit | c21d7fce7a9130dddc219ded54b1ac2b20d68685 (patch) | |
tree | 85098837a409953825ca67a30d9aeef1d2dbbfd1 /src/org/apache/fop/svg/SVGElementMapping.java | |
parent | 4f7b15971b532f85ab1b9831694d9f055b2e19f9 (diff) | |
download | xmlgraphics-fop-c21d7fce7a9130dddc219ded54b1ac2b20d68685.tar.gz xmlgraphics-fop-c21d7fce7a9130dddc219ded54b1ac2b20d68685.zip |
combined property list setting into element setting
also always get parser class name from one place
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194349 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/svg/SVGElementMapping.java')
-rw-r--r-- | src/org/apache/fop/svg/SVGElementMapping.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/org/apache/fop/svg/SVGElementMapping.java b/src/org/apache/fop/svg/SVGElementMapping.java index eb47c0865..3ff03ec5c 100644 --- a/src/org/apache/fop/svg/SVGElementMapping.java +++ b/src/org/apache/fop/svg/SVGElementMapping.java @@ -1,11 +1,14 @@ /* $Id$ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the - * LICENSE file included with these sources." + * LICENSE file included with these sources. */ package org.apache.fop.svg; +import java.util.Enumeration; + +import org.apache.fop.fo.properties.SVGPropertyMapping; import org.apache.fop.fo.TreeBuilder; import org.apache.fop.fo.FOTreeBuilder; import org.apache.fop.fo.ElementMapping; @@ -67,5 +70,16 @@ public class SVGElementMapping implements ElementMapping { builder.addMapping(uri, "feOffset", FeOffset.maker()); builder.addMapping(uri, "feMerge", FeMerge.maker()); builder.addMapping(uri, "feMergeNode", FeMergeNode.maker()); + + + builder.addPropertyList(uri, + SVGPropertyMapping.getGenericMappings()); + /* Add any element mappings */ + for (Enumeration e = SVGPropertyMapping.getElementMappings(); + e.hasMoreElements();) { + String elem = (String) e.nextElement(); + builder.addElementPropertyList(uri, elem, + SVGPropertyMapping.getElementMapping(elem)); + } } } |