vmote       2003/10/06 09:06:11

  Modified:    src/java/org/apache/fop/area AreaTree.java
  Log:
  cleanup bookmark logic and doc a bit
  
  Revision  Changes    Path
  1.4       +5 -7      xml-fop/src/java/org/apache/fop/area/AreaTree.java
  
  Index: AreaTree.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/area/AreaTree.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AreaTree.java     6 Oct 2003 15:52:46 -0000       1.3
  +++ AreaTree.java     6 Oct 2003 16:06:11 -0000       1.4
  @@ -239,9 +239,7 @@
       }
   
       /**
  -     * 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 @@
               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 @@
        * 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) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to