diff options
author | William Victor Mote <vmote@apache.org> | 2003-10-06 16:06:11 +0000 |
---|---|---|
committer | William Victor Mote <vmote@apache.org> | 2003-10-06 16:06:11 +0000 |
commit | acc70edc80cb823fa643a54171500a7f2685cc0f (patch) | |
tree | 2a98af17b67c36b5a20539c99e2649e99226b477 /src/java/org | |
parent | bc04dfeebbe1aa3efff53517903f70403b9cb773 (diff) | |
download | xmlgraphics-fop-acc70edc80cb823fa643a54171500a7f2685cc0f.tar.gz xmlgraphics-fop-acc70edc80cb823fa643a54171500a7f2685cc0f.zip |
cleanup bookmark logic and doc a bit
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196943 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/area/AreaTree.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/java/org/apache/fop/area/AreaTree.java b/src/java/org/apache/fop/area/AreaTree.java index c4f8ece85..2191be916 100644 --- a/src/java/org/apache/fop/area/AreaTree.java +++ b/src/java/org/apache/fop/area/AreaTree.java @@ -239,9 +239,7 @@ public class AreaTree { } /** - * When this element is finished then it can create - * the bookmark data from the child elements and add - * the extension to the area tree. + * Create the bookmark data in the area tree. */ public void addBookmarksToAreaTree(Document document) { if (document.getBookmarks() == null) { @@ -253,10 +251,8 @@ public class AreaTree { Outline out = (Outline)(document.getBookmarks().getOutlines()).get(count); data.addSubData(createBookmarkData(out)); } - // add data to area tree for resolving and handling - AreaTree at = document.getAreaTree(); - at.addTreeExtension(data); - data.setAreaTree(at); + addTreeExtension(data); + data.setAreaTree(this); } /** @@ -264,6 +260,8 @@ public class AreaTree { * This creates a bookmark data with the destination * and adds all the data from child outlines. * + * @param outline the Outline object for which a bookmark entry should be + * created * @return the new bookmark data */ public BookmarkData createBookmarkData(Outline outline) { |