From 5fc896f3078a6c27f02bce44b1763c64d4a10729 Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Tue, 16 Sep 2003 17:33:07 +0000 Subject: [PATCH] add structure for handling table columns in fo/FOInputHandler and its subclasses -- submitted by Peter Herweg, see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23085 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196916 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/FOInputHandler.java | 13 +++++++++++++ src/java/org/apache/fop/fo/FOTreeHandler.java | 15 +++++++++++++++ src/java/org/apache/fop/mif/MIFHandler.java | 15 +++++++++++++++ .../org/apache/fop/rtf/renderer/RTFHandler.java | 15 +++++++++++++++ 4 files changed, 58 insertions(+) diff --git a/src/java/org/apache/fop/fo/FOInputHandler.java b/src/java/org/apache/fop/fo/FOInputHandler.java index 679ec3fe8..7a2b1a281 100644 --- a/src/java/org/apache/fop/fo/FOInputHandler.java +++ b/src/java/org/apache/fop/fo/FOInputHandler.java @@ -62,6 +62,7 @@ import org.apache.fop.fo.flow.Leader; import org.apache.fop.fo.flow.ListBlock; import org.apache.fop.fo.flow.ListItem; import org.apache.fop.fo.flow.Table; +import org.apache.fop.fo.flow.TableColumn; import org.apache.fop.fo.flow.TableBody; import org.apache.fop.fo.flow.TableCell; import org.apache.fop.fo.flow.TableRow; @@ -167,6 +168,18 @@ public abstract class FOInputHandler extends AbstractLogEnabled { */ public abstract void endTable(Table tbl); + /** + * + * @param tc TableColumn that is starting; + */ + public abstract void startColumn(TableColumn tc); + + /** + * + * @param tc TableColumn that is ending; + */ + public abstract void endColumn(TableColumn tc); + /** * * @param th TableBody that is starting; diff --git a/src/java/org/apache/fop/fo/FOTreeHandler.java b/src/java/org/apache/fop/fo/FOTreeHandler.java index 90fc2278d..a205f263d 100644 --- a/src/java/org/apache/fop/fo/FOTreeHandler.java +++ b/src/java/org/apache/fop/fo/FOTreeHandler.java @@ -66,6 +66,7 @@ import org.apache.fop.fo.flow.Leader; import org.apache.fop.fo.flow.ListBlock; import org.apache.fop.fo.flow.ListItem; import org.apache.fop.fo.flow.Table; +import org.apache.fop.fo.flow.TableColumn; import org.apache.fop.fo.flow.TableBody; import org.apache.fop.fo.flow.TableCell; import org.apache.fop.fo.flow.TableRow; @@ -249,6 +250,20 @@ public class FOTreeHandler extends FOInputHandler { public void endTable(Table tbl) { } + /** + * + * @param tc TableColumn that is starting; + */ + public void startColumn(TableColumn tc) { + } + + /** + * + * @param tc TableColumn that is ending; + */ + public void endColumn(TableColumn tc) { + } + /** * @see org.apache.fop.fo.FOInputHandler#startHeader(TableBody) */ diff --git a/src/java/org/apache/fop/mif/MIFHandler.java b/src/java/org/apache/fop/mif/MIFHandler.java index c1a77b57d..fbb714e63 100644 --- a/src/java/org/apache/fop/mif/MIFHandler.java +++ b/src/java/org/apache/fop/mif/MIFHandler.java @@ -73,6 +73,7 @@ import org.apache.fop.fo.flow.Leader; import org.apache.fop.fo.flow.ListBlock; import org.apache.fop.fo.flow.ListItem; import org.apache.fop.fo.flow.Table; +import org.apache.fop.fo.flow.TableColumn; import org.apache.fop.fo.flow.TableBody; import org.apache.fop.fo.flow.TableCell; import org.apache.fop.fo.flow.TableRow; @@ -236,6 +237,20 @@ public class MIFHandler extends FOInputHandler { public void endTable(Table tbl) { } + /** + * + * @param tc TableColumn that is starting; + */ + public void startColumn(TableColumn tc) { + } + + /** + * + * @param tc TableColumn that is ending; + */ + public void endColumn(TableColumn tc) { + } + /** * @see org.apache.fop.fo.FOInputHandler#startHeader(TableBody) */ diff --git a/src/java/org/apache/fop/rtf/renderer/RTFHandler.java b/src/java/org/apache/fop/rtf/renderer/RTFHandler.java index 54386ca90..2de35ed58 100644 --- a/src/java/org/apache/fop/rtf/renderer/RTFHandler.java +++ b/src/java/org/apache/fop/rtf/renderer/RTFHandler.java @@ -66,6 +66,7 @@ import org.apache.fop.fo.flow.Leader; import org.apache.fop.fo.flow.ListBlock; import org.apache.fop.fo.flow.ListItem; import org.apache.fop.fo.flow.Table; +import org.apache.fop.fo.flow.TableColumn; import org.apache.fop.fo.flow.TableBody; import org.apache.fop.fo.flow.TableCell; import org.apache.fop.fo.flow.TableRow; @@ -251,6 +252,20 @@ public class RTFHandler extends FOInputHandler { public void endBody(TableBody tb) { } + /** + * + * @param tc TableColumn that is starting; + */ + public void startColumn(TableColumn tc) { + } + + /** + * + * @param tc TableColumn that is ending; + */ + public void endColumn(TableColumn tc) { + } + /** * @see org.apache.fop.fo.FOInputHandler#startRow(TableRow) */ -- 2.39.5