diff options
author | Jay Bryant <jbryant@apache.org> | 2007-04-01 14:45:59 +0000 |
---|---|---|
committer | Jay Bryant <jbryant@apache.org> | 2007-04-01 14:45:59 +0000 |
commit | 13da3fc6ed957f04204fe0dca3c3e92512b5ad56 (patch) | |
tree | 0f8d71c34f88fd662d16e3839d005dc15a564b88 /src/java/org/apache/fop/area | |
parent | 2f57593ccd81742a815a7f7915662e346954ce0d (diff) | |
download | xmlgraphics-fop-13da3fc6ed957f04204fe0dca3c3e92512b5ad56.tar.gz xmlgraphics-fop-13da3fc6ed957f04204fe0dca3c3e92512b5ad56.zip |
changes to support named destination
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@524600 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area')
-rw-r--r-- | src/java/org/apache/fop/area/AreaTreeHandler.java | 12 |
1 files changed, 12 insertions, 0 deletions
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) { |