diff options
author | Jeremias Maerki <jeremias@apache.org> | 2003-11-22 17:11:14 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2003-11-22 17:11:14 +0000 |
commit | 43361d3ec139336ba9b6e45a695203e40772cbe9 (patch) | |
tree | 731edef4702c0216dbe1b2947b92437303135c3f /src/java/org/apache/fop/fo | |
parent | 7e22a8c09b279fe24f666062d7b5c42d9fd24504 (diff) | |
download | xmlgraphics-fop-43361d3ec139336ba9b6e45a695203e40772cbe9.tar.gz xmlgraphics-fop-43361d3ec139336ba9b6e45a695203e40772cbe9.zip |
RTF output: Support for fo:list-block
Submitted by: Peter Herweg <pherweg.at.web.de>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197019 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/ListBlock.java | 17 | ||||
-rw-r--r-- | src/java/org/apache/fop/fo/flow/ListItem.java | 19 | ||||
-rw-r--r-- | src/java/org/apache/fop/fo/flow/ListItemLabel.java | 18 |
3 files changed, 54 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/flow/ListBlock.java b/src/java/org/apache/fop/fo/flow/ListBlock.java index 4cecd3da4..d0d5f0223 100644 --- a/src/java/org/apache/fop/fo/flow/ListBlock.java +++ b/src/java/org/apache/fop/fo/flow/ListBlock.java @@ -50,6 +50,9 @@ */ package org.apache.fop.fo.flow; +// XML +import org.xml.sax.Attributes; + // FOP import org.apache.fop.apps.FOPException; import org.apache.fop.datatypes.ColorType; @@ -157,5 +160,19 @@ public class ListBlock extends FObj { fotv.serveListBlock(this); } + /** + * @see org.apache.fop.fo.FObj#handleAttrs + */ + public void handleAttrs(Attributes attlist) throws FOPException { + super.handleAttrs(attlist); + + getFOTreeControl().getFOInputHandler().startList(this); + } + + protected void end() { + super.end(); + + getFOTreeControl().getFOInputHandler().endList(this); + } } diff --git a/src/java/org/apache/fop/fo/flow/ListItem.java b/src/java/org/apache/fop/fo/flow/ListItem.java index 8b1d58719..1d4e7e11c 100644 --- a/src/java/org/apache/fop/fo/flow/ListItem.java +++ b/src/java/org/apache/fop/fo/flow/ListItem.java @@ -50,6 +50,11 @@ */ package org.apache.fop.fo.flow; +// XML +import org.xml.sax.Attributes; + +// FOP +import org.apache.fop.apps.FOPException; import org.apache.fop.fo.FONode; import org.apache.fop.fo.FOTreeVisitor; import org.apache.fop.fo.FObj; @@ -165,5 +170,19 @@ public class ListItem extends FObj { fotv.serveListItem(this); } + /** + * @see org.apache.fop.fo.FObj#handleAttrs + */ + public void handleAttrs(Attributes attlist) throws FOPException { + super.handleAttrs(attlist); + + getFOTreeControl().getFOInputHandler().startListItem(this); + } + + protected void end() { + super.end(); + + getFOTreeControl().getFOInputHandler().endListItem(this); + } } diff --git a/src/java/org/apache/fop/fo/flow/ListItemLabel.java b/src/java/org/apache/fop/fo/flow/ListItemLabel.java index baa712be8..a4cad1de0 100644 --- a/src/java/org/apache/fop/fo/flow/ListItemLabel.java +++ b/src/java/org/apache/fop/fo/flow/ListItemLabel.java @@ -50,7 +50,11 @@ */ package org.apache.fop.fo.flow; +// XML +import org.xml.sax.Attributes; + // FOP +import org.apache.fop.apps.FOPException; import org.apache.fop.fo.FONode; import org.apache.fop.fo.FObj; import org.apache.fop.fo.FOTreeVisitor; @@ -103,5 +107,19 @@ public class ListItemLabel extends FObj { fotv.serveListItemLabel(this); } + /** + * @see org.apache.fop.fo.FObj#handleAttrs + */ + public void handleAttrs(Attributes attlist) throws FOPException { + super.handleAttrs(attlist); + + getFOTreeControl().getFOInputHandler().startListLabel(); + } + + protected void end() { + super.end(); + + getFOTreeControl().getFOInputHandler().endListLabel(); + } } |