From acc70edc80cb823fa643a54171500a7f2685cc0f Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Mon, 6 Oct 2003 16:06:11 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/area/AreaTree.java | 12 +++++------- 1 file 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) { -- 2.39.5