aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/FOText.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/fo/FOText.java')
-rw-r--r--src/java/org/apache/fop/fo/FOText.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/java/org/apache/fop/fo/FOText.java b/src/java/org/apache/fop/fo/FOText.java
index b94bf75f1..6c8ba742c 100644
--- a/src/java/org/apache/fop/fo/FOText.java
+++ b/src/java/org/apache/fop/fo/FOText.java
@@ -19,12 +19,13 @@
package org.apache.fop.fo;
// Java
+import java.util.List;
import java.util.NoSuchElementException;
// FOP
import org.apache.fop.fo.flow.Block;
import org.apache.fop.fo.pagination.Root;
-import org.apache.fop.layoutmgr.AddLMVisitor;
+import org.apache.fop.layoutmgr.TextLayoutManager;
/**
* A text node in the formatting object tree.
@@ -492,11 +493,11 @@ public class FOText extends FObj {
}
/**
- * This is a hook for the AddLMVisitor class to be able to access
- * this object.
- * @param aLMV the AddLMVisitor object that can access this object.
+ * @param list the list to which the layout manager(s) should be added
*/
- public void acceptVisitor(AddLMVisitor aLMV) {
- aLMV.serveFOText(this);
+ public void addLayoutManager(List list) {
+ if (endIndex - startIndex > 0) {
+ list.add(new TextLayoutManager(this));
+ }
}
}