From 09aeb982edfdeafc0148bf7abdf1db3d3cde7feb Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 18 May 2006 15:42:39 +0000 Subject: [PATCH] Forgot to upload the new PCLElementMapping. Used so the PCL extension attributes are working. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407572 13f79535-47bb-0310-9956-ffa450edef68 --- .../pcl/extensions/PCLElementMapping.java | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/sandbox/org/apache/fop/render/pcl/extensions/PCLElementMapping.java diff --git a/src/sandbox/org/apache/fop/render/pcl/extensions/PCLElementMapping.java b/src/sandbox/org/apache/fop/render/pcl/extensions/PCLElementMapping.java new file mode 100644 index 000000000..b25ab9321 --- /dev/null +++ b/src/sandbox/org/apache/fop/render/pcl/extensions/PCLElementMapping.java @@ -0,0 +1,51 @@ +/* + * Copyright 2006 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* $Id: AFPElementMapping.java 397875 2006-04-28 11:58:33Z manuel $ */ + +package org.apache.fop.render.pcl.extensions; + +import java.util.HashMap; + +import org.apache.fop.fo.ElementMapping; + +/** + * PCL-specific extensions for Apache FOP. + */ +public class PCLElementMapping extends ElementMapping { + + /** The namespace used for PCL extensions */ + public static final String NAMESPACE = "http://xmlgraphics.apache.org/fop/extensions/pcl"; + + /** The usual namespace prefix used for PCL extensions */ + public static final String NAMESPACE_PREFIX = "pcl"; + + /** Main constructor */ + public PCLElementMapping() { + this.namespaceURI = NAMESPACE; + } + + /** @see org.apache.fop.fo.ElementMapping#initialize() */ + protected void initialize() { + + if (foObjs == null) { + foObjs = new HashMap(); + //No extension elements, yet, only attributes + } + + } + +} -- 2.39.5