diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2009-10-07 17:31:13 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2009-10-07 17:31:13 +0000 |
commit | b59502d64ede1cf0737187a9a50623980668af70 (patch) | |
tree | 45df2d158ea81741823869677dc57e1352313057 /src/java/org/apache/fop/render/intermediate/extensions | |
parent | 834d6b586229731a5a81c8d8e21a8c40c5d809b5 (diff) | |
download | xmlgraphics-fop-b59502d64ede1cf0737187a9a50623980668af70.tar.gz xmlgraphics-fop-b59502d64ede1cf0737187a9a50623980668af70.zip |
Fixed support for links and images in the Intermediate Format
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@822808 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/intermediate/extensions')
-rw-r--r-- | src/java/org/apache/fop/render/intermediate/extensions/DocumentNavigationHandler.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/intermediate/extensions/DocumentNavigationHandler.java b/src/java/org/apache/fop/render/intermediate/extensions/DocumentNavigationHandler.java index 376130838..6a27a929d 100644 --- a/src/java/org/apache/fop/render/intermediate/extensions/DocumentNavigationHandler.java +++ b/src/java/org/apache/fop/render/intermediate/extensions/DocumentNavigationHandler.java @@ -48,6 +48,8 @@ public class DocumentNavigationHandler extends DefaultHandler private IFDocumentNavigationHandler navHandler; + private String accessibilityPointer; + /** * Main constructor. * @param navHandler the navigation handler that will receive the events @@ -96,6 +98,7 @@ public class DocumentNavigationHandler extends DefaultHandler throw new SAXException(localName + " must be the root element!"); } Rectangle targetRect = XMLUtil.getAttributeAsRectangle(attributes, "rect"); + accessibilityPointer = attributes.getValue("ptr"); Link link = new Link(null, targetRect); objectStack.push(link); } else if (GOTO_XY.getLocalName().equals(localName)) { @@ -118,6 +121,9 @@ public class DocumentNavigationHandler extends DefaultHandler } action = new GoToXYAction(id, pageIndex, location); } + if (accessibilityPointer != null) { + action.setPtr(accessibilityPointer); + } objectStack.push(action); } else if (GOTO_URI.getLocalName().equals(localName)) { String id = attributes.getValue("id"); @@ -128,6 +134,9 @@ public class DocumentNavigationHandler extends DefaultHandler if (id != null) { action.setID(id); } + if (accessibilityPointer != null) { + action.setPtr(accessibilityPointer); + } objectStack.push(action); } else { throw new SAXException( |