keiron 01/06/13 09:06:23 Modified: src/org/apache/fop/svg SVGObj.java Log: prevents class cast exceptions when these methods are called not relevent for these objects Revision Changes Path 1.4 +28 -4 xml-fop/src/org/apache/fop/svg/SVGObj.java Index: SVGObj.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/SVGObj.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- SVGObj.java 2001/05/17 11:02:15 1.3 +++ SVGObj.java 2001/06/13 16:06:21 1.4 @@ -1,7 +1,7 @@ -/* $Id: SVGObj.java,v 1.3 2001/05/17 11:02:15 keiron Exp $ +/* $Id: SVGObj.java,v 1.4 2001/06/13 16:06:21 keiron Exp $ * 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.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 @@ } 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), @@ -90,6 +89,31 @@ /* 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) { } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]