From 13da3fc6ed957f04204fe0dca3c3e92512b5ad56 Mon Sep 17 00:00:00 2001 From: Jay Bryant Date: Sun, 1 Apr 2007 14:45:59 +0000 Subject: changes to support named destination git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@524600 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/area/AreaTreeHandler.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/java/org/apache/fop') diff --git a/src/java/org/apache/fop/area/AreaTreeHandler.java b/src/java/org/apache/fop/area/AreaTreeHandler.java index 91a5d603d..e7f6effe0 100644 --- a/src/java/org/apache/fop/area/AreaTreeHandler.java +++ b/src/java/org/apache/fop/area/AreaTreeHandler.java @@ -48,6 +48,9 @@ import org.apache.fop.layoutmgr.PageSequenceLayoutManager; import org.apache.fop.layoutmgr.LayoutManagerMaker; import org.apache.fop.layoutmgr.LayoutManagerMapping; +import org.apache.fop.area.DestinationData; +import org.apache.fop.fo.extensions.destination.Destination; + /** * Area tree handler for formatting objects. * @@ -412,6 +415,15 @@ public class AreaTreeHandler extends FOEventHandler { public void endDocument() throws SAXException { finishPrevPageSequence(null); + // process fox:destination elements + ArrayList destinationList = rootFObj.getDestinationList(); + if (destinationList != null) { + while(destinationList.size() > 0) { + Destination destination = (Destination)destinationList.remove(0); + DestinationData destinationData = new DestinationData(destination); + addOffDocumentItem(destinationData); + } + } // process fo:bookmark-tree BookmarkTree bookmarkTree = rootFObj.getBookmarkTree(); if (bookmarkTree != null) { -- cgit v1.2.3