aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/svg
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-06-13 16:06:21 +0000
committerKeiron Liddle <keiron@apache.org>2001-06-13 16:06:21 +0000
commit02990cfee364ae9fdf106f815a4772d438928a8c (patch)
treed84c222d0e2d7f4d5db72addd67c2f2a92f8aae6 /src/org/apache/fop/svg
parentd1d4f1ac1381f7b5971e72e57a769b161657fc7c (diff)
downloadxmlgraphics-fop-02990cfee364ae9fdf106f815a4772d438928a8c.tar.gz
xmlgraphics-fop-02990cfee364ae9fdf106f815a4772d438928a8c.zip
prevents class cast exceptions when these methods are called
not relevent for these objects git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194288 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/svg')
-rw-r--r--src/org/apache/fop/svg/SVGObj.java30
1 files changed, 27 insertions, 3 deletions
diff --git a/src/org/apache/fop/svg/SVGObj.java b/src/org/apache/fop/svg/SVGObj.java
index 8f8384449..ca518e2ae 100644
--- a/src/org/apache/fop/svg/SVGObj.java
+++ b/src/org/apache/fop/svg/SVGObj.java
@@ -1,7 +1,7 @@
/* $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;
@@ -11,6 +11,7 @@ import org.apache.fop.fo.*;
import org.apache.fop.layout.Area;
import org.apache.fop.layout.FontState;
import org.apache.fop.apps.FOPException;
+import org.apache.fop.layout.LinkSet;
import org.apache.batik.dom.svg.*;
@@ -52,11 +53,9 @@ public abstract class SVGObj extends FObj {
} else {
String pref = props[count].substring(0,
props[count].indexOf(":"));
- System.out.println(pref);
if (pref.equals("xmlns")) {
ns.put(props[count].substring(
props[count].indexOf(":") + 1), rf);
- System.out.println(ns);
}
ns.put("xlink", "http://www.w3.org/1999/xlink");
element.setAttributeNS((String) ns.get(pref),
@@ -91,5 +90,30 @@ public abstract class SVGObj extends FObj {
/* return status */
return new Status(Status.OK);
}
+
+ /**
+ * These method overrides prevent problems with the different types.
+ */
+ public void setIsInTableCell() {
+ }
+
+ public void forceStartOffset(int offset) {
+ }
+
+ public void forceWidth(int width) {
+ }
+
+ public void resetMarker() {
+ }
+
+ public void setLinkSet(LinkSet linkSet) {
+ }
+
+ public Vector getMarkerSnapshot(Vector snapshot) {
+ return snapshot;
+ }
+
+ public void rollback(Vector snapshot) {
+ }
}