} else if (unit.equals("mm")) {
dvalue = dvalue * 2.83464567;
} else if (unit.equals("pt")) {
- dvalue = dvalue;
+ // Do nothing.
+ // dvalue = dvalue;
} else if (unit.equals("pc")) {
dvalue = dvalue * 12;
/*
package org.apache.fop.fo;
// FOP
-import org.apache.fop.apps.FOPException;
-
-// Java
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
-// SAX
-import org.xml.sax.helpers.DefaultHandler;
-import org.xml.sax.SAXException;
-import org.xml.sax.Attributes;
-
-// Avalon
import org.apache.avalon.framework.logger.Logger;
-import org.apache.fop.fo.ElementMapping.*;
-import org.apache.fop.fo.ElementMapping.*;
+import org.apache.fop.apps.FOPException;
+import org.apache.fop.fo.ElementMapping.Maker;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.DefaultHandler;
/**
* SAX Handler that builds the formatting object tree.
package org.apache.fop.pdf;
import java.io.ByteArrayOutputStream;
-import java.io.UnsupportedEncodingException;
import org.apache.avalon.framework.CascadingRuntimeException;
package org.apache.fop.rtf.renderer;
// Java
+import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
-import java.io.IOException;
-// XML
-import org.xml.sax.SAXException;
-
-// FOP
-import org.apache.fop.layout.FontInfo;
import org.apache.fop.apps.FOPException;
-import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.StructureHandler;
-import org.apache.fop.fo.pagination.PageSequence;
-import org.apache.fop.fo.properties.Constants;
import org.apache.fop.fo.flow.Block;
-import org.apache.fop.fo.flow.Flow;
import org.apache.fop.fo.flow.ExternalGraphic;
+import org.apache.fop.fo.flow.Flow;
import org.apache.fop.fo.flow.InstreamForeignObject;
import org.apache.fop.fo.flow.Leader;
import org.apache.fop.fo.flow.ListBlock;
import org.apache.fop.fo.flow.TableBody;
import org.apache.fop.fo.flow.TableCell;
import org.apache.fop.fo.flow.TableRow;
-
-// JFOR
+import org.apache.fop.fo.pagination.PageSequence;
+import org.apache.fop.fo.properties.Constants;
+import org.apache.fop.layout.FontInfo;
import org.apache.fop.rtf.rtflib.rtfdoc.RtfAttributes;
+import org.apache.fop.rtf.rtflib.rtfdoc.RtfDocumentArea;
import org.apache.fop.rtf.rtflib.rtfdoc.RtfFile;
+import org.apache.fop.rtf.rtflib.rtfdoc.RtfParagraph;
import org.apache.fop.rtf.rtflib.rtfdoc.RtfSection;
import org.apache.fop.rtf.rtflib.rtfdoc.RtfText;
-import org.apache.fop.rtf.rtflib.rtfdoc.RtfParagraph;
-import org.apache.fop.rtf.rtflib.rtfdoc.RtfDocumentArea;
+import org.xml.sax.SAXException;
/**
* RTF Handler: generates RTF output using the structure events from
package org.apache.fop.rtf.rtflib.rtfdoc;
-import java.io.Writer;
-import java.io.*;
-import java.util.*;
import java.io.IOException;
+import java.io.Writer;
+
/** Specifies rtf control words. Is the container for page attributes.
- * Overrides okToWriteRtf.
+ * Overrides okToWriteRtf.
* @author Christopher Scott, scottc@westinghouse.com
*/
*/
package org.apache.fop.svg;
-import java.awt.Dimension;
-
+import java.awt.Color;
import java.awt.geom.AffineTransform;
-import java.awt.geom.Dimension2D;
import java.awt.geom.Rectangle2D;
-
-import java.awt.Color;
-
+import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
-import java.io.IOException;
-
import org.apache.avalon.framework.configuration.Configurable;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.container.ContainerUtil;
-import org.apache.avalon.framework.logger.AbstractLogEnabled;
import org.apache.batik.bridge.BridgeContext;
import org.apache.batik.bridge.BridgeException;
import org.apache.batik.bridge.GVTBuilder;
-import org.apache.batik.bridge.UserAgent;
-import org.apache.batik.bridge.UserAgentAdapter;
import org.apache.batik.bridge.ViewBox;
-
-import org.apache.batik.dom.svg.SAXSVGDocumentFactory;
-import org.apache.batik.dom.svg.SVGDOMImplementation;
import org.apache.batik.dom.svg.SVGOMDocument;
-import org.apache.batik.dom.util.DocumentFactory;
-
import org.apache.batik.gvt.GraphicsNode;
-
-import org.apache.batik.transcoder.ErrorHandler;
+import org.apache.batik.gvt.TextPainter;
+import org.apache.batik.gvt.renderer.StrokingTextPainter;
import org.apache.batik.transcoder.TranscoderException;
import org.apache.batik.transcoder.TranscoderOutput;
-import org.apache.batik.transcoder.XMLAbstractTranscoder;
-import org.apache.batik.transcoder.image.resources.Messages;
-
import org.apache.batik.transcoder.image.ImageTranscoder;
-
-import org.apache.batik.util.SVGConstants;
-import org.apache.batik.util.XMLResourceDescriptor;
-
-import org.apache.batik.gvt.TextPainter;
-import org.apache.batik.gvt.renderer.StrokingTextPainter;
-
-import org.w3c.dom.DOMImplementation;
+import org.apache.batik.transcoder.image.resources.Messages;
import org.w3c.dom.Document;
import org.w3c.dom.svg.SVGDocument;
import org.w3c.dom.svg.SVGSVGElement;