// Java
import java.util.Map;
import java.io.IOException;
+import java.util.Set;
+import java.util.HashSet;
+
// FOP
import org.apache.fop.area.AreaTree;
private Bookmarks bookmarks = null;
+ /**
+ * The current set of id's in the FO tree.
+ * This is used so we know if the FO tree contains duplicates.
+ */
+ private Set idReferences = new HashSet();
+
/**
* Main constructor
* @param driver the Driver object that is the "parent" of this Document
return bookmarks;
}
+ /**
+ * Retuns the set of ID references.
+ * @return the ID references
+ */
+ public Set getIDReferences() {
+ return idReferences;
+ }
+
}
*/
package org.apache.fop.fo;
-// Java
-import java.util.Set;
-import java.util.HashSet;
-
// Avalon
import org.apache.avalon.framework.logger.AbstractLogEnabled;
* as our MIF and RTF output targets.
*/
public abstract class FOInputHandler extends AbstractLogEnabled {
- /**
- * The current set of id's in the FO tree.
- * This is used so we know if the FO tree contains duplicates.
- */
- private Set idReferences = new HashSet();
-
/**
* The FOTreeControl object that is controlling the FO Tree being built
*/
this.foTreeControl = foTreeControl;
}
- /**
- * Retuns the set of ID references.
- * @return the ID references
- */
- public Set getIDReferences() {
- return idReferences;
- }
-
/**
* Returns the FontInfo object associated with this FOInputHandler.
* @return the FontInof object
// Java
import java.util.Map;
+import java.util.Set;
// FOP
import org.apache.fop.fo.extensions.Bookmarks;
*/
Bookmarks getBookmarks();
+ /**
+ * Returns the set of ID references found in the FO Tree.
+ * @return the ID references
+ */
+ Set getIDReferences();
+
}
if (prop != null) {
String str = prop.getString();
if (str != null && !str.equals("")) {
- Set idrefs = foInputHandler.getIDReferences();
+ Set idrefs = getFOTreeControl().getIDReferences();
if (!idrefs.contains(str)) {
id = str;
idrefs.add(id);