diff options
author | Peter Hancock <phancock@apache.org> | 2012-02-10 16:51:08 +0000 |
---|---|---|
committer | Peter Hancock <phancock@apache.org> | 2012-02-10 16:51:08 +0000 |
commit | a21ecc5e13be09393036efe90f4ab63a7ee09fab (patch) | |
tree | 2ed0c7fd447b36aa00c17342f2074300bcb07399 /src/java/org/apache/fop/render/xml/XMLRenderer.java | |
parent | 098ac1879ef71df08ee43eb263f5efac77d4e352 (diff) | |
parent | 65e12053cb81114db964534f7e974c338a8a467b (diff) | |
download | xmlgraphics-fop-a21ecc5e13be09393036efe90f4ab63a7ee09fab.tar.gz xmlgraphics-fop-a21ecc5e13be09393036efe90f4ab63a7ee09fab.zip |
Merged in Temp_ImproveAccessibility
revs 1187234, 1188205, 1205935, 1236718, 1238313, 1240963
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1242848 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/xml/XMLRenderer.java')
-rw-r--r-- | src/java/org/apache/fop/render/xml/XMLRenderer.java | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/java/org/apache/fop/render/xml/XMLRenderer.java b/src/java/org/apache/fop/render/xml/XMLRenderer.java index d2cd55abe..504133c09 100644 --- a/src/java/org/apache/fop/render/xml/XMLRenderer.java +++ b/src/java/org/apache/fop/render/xml/XMLRenderer.java @@ -35,8 +35,6 @@ import javax.xml.transform.sax.TransformerHandler; import javax.xml.transform.stream.StreamResult; import org.w3c.dom.Document; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; import org.xml.sax.SAXException; import org.apache.xmlgraphics.util.QName; @@ -82,15 +80,12 @@ import org.apache.fop.area.inline.TextArea; import org.apache.fop.area.inline.WordArea; import org.apache.fop.fo.Constants; import org.apache.fop.fo.extensions.ExtensionAttachment; -import org.apache.fop.fo.extensions.ExtensionElementMapping; -import org.apache.fop.fo.extensions.InternalElementMapping; import org.apache.fop.fonts.FontInfo; import org.apache.fop.fonts.FontTriplet; import org.apache.fop.render.Renderer; import org.apache.fop.render.RendererContext; import org.apache.fop.render.XMLHandler; import org.apache.fop.util.ColorUtil; -import org.apache.fop.util.DOM2SAX; /** * Renderer that renders areas to XML for debugging purposes. @@ -110,8 +105,6 @@ public class XMLRenderer extends AbstractXMLRenderer { /** If not null, the XMLRenderer will mimic another renderer by using its font setup. */ protected Renderer mimic; - private int pageSequenceIndex; - /** * @param userAgent the user agent that contains configuration details. This cannot be null. */ @@ -452,29 +445,6 @@ public class XMLRenderer extends AbstractXMLRenderer { } transferForeignObjects(pageSequence); startElement("pageSequence", atts); - if (this.getUserAgent().isAccessibilityEnabled()) { - String structureTreeElement = "structureTree"; - startElement(structureTreeElement); - try { - this.handler.startPrefixMapping("foi", InternalElementMapping.URI); - this.handler.startPrefixMapping("fox", ExtensionElementMapping.URI); - NodeList nodes = getUserAgent().getStructureTree().getPageSequence( - pageSequenceIndex++); - for (int i = 0, n = nodes.getLength(); i < n; i++) { - Node node = nodes.item(i); - try { - new DOM2SAX(handler).writeFragment(node); - } catch (SAXException e) { - handleSAXException(e); - } - } - this.handler.endPrefixMapping("fox"); - this.handler.endPrefixMapping("foi"); - } catch (SAXException se) { - handleSAXException(se); - } - endElement(structureTreeElement); - } handleExtensionAttachments(pageSequence.getExtensionAttachments()); LineArea seqTitle = pageSequence.getTitle(); if (seqTitle != null) { |