xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbry...@apache.org
Subject svn commit: r524600 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/area/AreaTreeHandler.java
Date Sun, 01 Apr 2007 14:46:00 GMT
Author: jbryant
Date: Sun Apr  1 07:45:59 2007
New Revision: 524600

URL: http://svn.apache.org/viewvc?view=rev&rev=524600
Log:
changes to support named destination

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/area/AreaTreeHandler.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/AreaTreeHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/AreaTreeHandler.java?view=diff&rev=524600&r1=524599&r2=524600
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/AreaTreeHandler.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/AreaTreeHandler.java Sun Apr  1 07:45:59
2007
@@ -48,6 +48,9 @@
 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 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) {



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message