aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow/Character.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/flow/Character.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/flow/Character.java')
-rw-r--r--src/java/org/apache/fop/fo/flow/Character.java20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Character.java b/src/java/org/apache/fop/fo/flow/Character.java
index 147c9823f..02bf291e1 100644
--- a/src/java/org/apache/fop/fo/flow/Character.java
+++ b/src/java/org/apache/fop/fo/flow/Character.java
@@ -58,6 +58,7 @@ import org.apache.fop.fo.CharIterator;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.OneCharIterator;
+import org.apache.fop.fo.FOTreeVisitor;
import org.apache.fop.fo.properties.CommonAural;
import org.apache.fop.fo.properties.CommonBorderAndPadding;
import org.apache.fop.fo.properties.CommonBackground;
@@ -97,21 +98,7 @@ public class Character extends FObj {
super(parent);
}
- /**
- * @see org.apache.fop.fo.FObj#addLayoutManager
- */
- public void addLayoutManager(List list) {
- InlineArea inline = getInlineArea();
- if (inline != null) {
- LeafNodeLayoutManager lm = new LeafNodeLayoutManager();
- lm.setUserAgent(getUserAgent());
- lm.setFObj(this);
- lm.setCurrentArea(inline);
- list.add(lm);
- }
- }
-
- protected InlineArea getInlineArea() {
+ public InlineArea getInlineArea() {
String str = this.properties.get("character").getString();
if (str.length() == 1) {
org.apache.fop.area.inline.Character ch =
@@ -177,5 +164,8 @@ public class Character extends FObj {
// But what it the character is ignored due to white space handling?
}
+ public void acceptVisitor(FOTreeVisitor fotv) {
+ fotv.serveVisitor(this);
+ }
}