diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-09-02 07:56:08 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-09-02 07:56:08 +0000 |
commit | 77a2d704aa1708eb3e9e4e9cceda70f05af419a6 (patch) | |
tree | 40fdb3fbe1f22294544df8e04edea00a01d11ee3 /examples | |
parent | f58ac672756e995864a0e9ef5efaa80db1af088f (diff) | |
download | xmlgraphics-fop-77a2d704aa1708eb3e9e4e9cceda70f05af419a6.tar.gz xmlgraphics-fop-77a2d704aa1708eb3e9e4e9cceda70f05af419a6.zip |
Fixed getDocument() method (is now getDOMDocument()).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@266301 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'examples')
-rw-r--r-- | examples/mathml/src/org/apache/fop/mathml/MathMLElement.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java b/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java index 92501fe81..b6bd14188 100644 --- a/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java +++ b/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2004 The Apache Software Foundation. + * Copyright 1999-2005 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. @@ -104,12 +104,12 @@ public class MathMLElement extends MathMLObj { /** * Create the SVG from MathML. + * @param base the root element * @return the DOM document containing SVG */ public static Document createSVG(MathBase base) { - DOMImplementation impl = - SVGDOMImplementation.getDOMImplementation(); + DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI; Document svgdocument = impl.createDocument(svgNS, "svg", null); @@ -140,10 +140,8 @@ public class MathMLElement extends MathMLObj { } - /** - * @see org.apache.fop.fo.XMLObj#getDocument() - */ - public Document getDocument() { + /** @see org.apache.fop.fo.XMLObj#getDOMDocument() */ + public Document getDOMDocument() { convertToSVG(); return doc; } |