aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/FObjMixed.java
diff options
context:
space:
mode:
authorWilliam Victor Mote <vmote@apache.org>2003-08-19 00:53:55 +0000
committerWilliam Victor Mote <vmote@apache.org>2003-08-19 00:53:55 +0000
commit23c8e89aeb3e2e86cef67e4225b5e6991752c52c (patch)
tree718acaaac82891959adfc71001e1a4ac64687b3a /src/java/org/apache/fop/fo/FObjMixed.java
parent47daa474f7f92a928541f809058637d8cc4de499 (diff)
downloadxmlgraphics-fop-23c8e89aeb3e2e86cef67e4225b5e6991752c52c.tar.gz
xmlgraphics-fop-23c8e89aeb3e2e86cef67e4225b5e6991752c52c.zip
1. Remove fo/FOTreeExternal and layoutmgr/LMFOTreeExternal (in favor of Visitor concept, see item 2)
2. Add fo/FOTreeVisitor and layoutmgr/AddLMVisitor 3. Remove all occurrences of addLayoutManager in fo/FObj subclasses, replacing them with equivalent methods in AddLMVisitor git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196809 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/FObjMixed.java')
-rw-r--r--src/java/org/apache/fop/fo/FObjMixed.java17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/java/org/apache/fop/fo/FObjMixed.java b/src/java/org/apache/fop/fo/FObjMixed.java
index 58ba11288..d0320b6cc 100644
--- a/src/java/org/apache/fop/fo/FObjMixed.java
+++ b/src/java/org/apache/fop/fo/FObjMixed.java
@@ -82,20 +82,6 @@ public class FObjMixed extends FObj {
}
/**
- * @param lms the list to which the layout manager(s) should be added
- */
- public void addLayoutManager(List lms) {
- if (children != null) {
- InlineStackingLayoutManager lm;
- lm = new InlineStackingLayoutManager();
- lm.setUserAgent(getUserAgent());
- lm.setFObj(this);
- lm.setLMiter(new LMiter(children.listIterator()));
- lms.add(lm);
- }
- }
-
- /**
* @param data array of characters containing text to be added
* @param start starting array element to add
* @param length number of characters to add
@@ -127,5 +113,8 @@ public class FObjMixed extends FObj {
return new RecursiveCharIterator(this);
}
+ public void acceptVisitor(FOTreeVisitor fotv) {
+ fotv.serveVisitor(this);
+ }
}