"Renderer not set when using standard foInputHandler");
}
foInputHandler = new FOTreeHandler(currentDocument, true);
- currentDocument.areaTree = new AreaTree(currentDocument);
+ currentDocument.areaTree = new AreaTree();
currentDocument.atModel = new RenderPagesModel(renderer);
//this.atModel = new CachedRenderPagesModel(renderer);
currentDocument.areaTree.setTreeModel(currentDocument.atModel);
package org.apache.fop.area;
-import org.apache.fop.apps.Document;
import org.apache.fop.area.extensions.BookmarkData;
import org.apache.fop.fo.extensions.Outline;
import org.apache.fop.fo.extensions.Bookmarks;
import java.util.HashSet;
import java.util.Iterator;
+// Commons-Logging
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
/**
* Area tree for formatting objects.
*
// allows for different models to deal with adding/rendering
// in different situations
private AreaTreeModel model;
- private Document document;
// hashmap of arraylists containing pages with id area
private Map idLocations = new HashMap();
private Map resolve = new HashMap();
private List treeExtensions = new ArrayList();
+ private static Log log = LogFactory.getLog(AreaTree.class);
+
/**
* Constructor.
- * @param document the apps.Document object controlling this AreaTree
*/
- public AreaTree (Document document) {
- this.document = document;
+ public AreaTree () {
}
return;
}
- document.getDriver().getLogger().debug("adding bookmarks to area tree");
+ log.debug("adding bookmarks to area tree");
BookmarkData data = new BookmarkData();
for (int count = 0; count < bookmarks.getOutlines().size(); count++) {
Outline out = (Outline)(bookmarks.getOutlines()).get(count);
return data;
}
- public Document getDocument() {
- return document;
- }
-
}