git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196756 13f79535-47bb-0310-9956-ffa450edef68tags/Root_Temp_KnuthStylePageBreaking
@@ -57,7 +57,7 @@ import java.awt.print.PrinterJob; | |||
import org.apache.fop.fo.ElementMapping; | |||
import org.apache.fop.fo.FOTreeBuilder; | |||
import org.apache.fop.fo.FOUserAgent; | |||
import org.apache.fop.fo.StructureHandler; | |||
import org.apache.fop.fo.FOInputHandler; | |||
import org.apache.fop.layoutmgr.LayoutHandler; | |||
import org.apache.fop.mif.MIFHandler; | |||
import org.apache.fop.render.Renderer; | |||
@@ -203,7 +203,7 @@ public class Driver implements LogEnabled { | |||
/** | |||
* the structure handler | |||
*/ | |||
private StructureHandler structHandler; | |||
private FOInputHandler foInputHandler; | |||
/** | |||
* the source of the FO file | |||
@@ -432,7 +432,7 @@ public class Driver implements LogEnabled { | |||
setRenderer("org.apache.fop.render.txt.TXTRenderer()"); | |||
break; | |||
case RENDER_MIF: | |||
//structHandler will be set later | |||
//foInputHandler will be set later | |||
break; | |||
case RENDER_XML: | |||
setRenderer("org.apache.fop.render.xml.XMLRenderer"); | |||
@@ -441,7 +441,7 @@ public class Driver implements LogEnabled { | |||
setRenderer("org.apache.fop.render.svg.SVGRenderer"); | |||
break; | |||
case RENDER_RTF: | |||
//structHandler will be set later | |||
//foInputHandler will be set later | |||
break; | |||
default: | |||
throw new IllegalArgumentException("Unknown renderer type"); | |||
@@ -543,29 +543,29 @@ public class Driver implements LogEnabled { | |||
if (!isInitialized()) { | |||
initialize(); | |||
} | |||
if (rendererType != RENDER_PRINT && rendererType != RENDER_AWT) { | |||
validateOutputStream(); | |||
} | |||
// TODO: - do this stuff in a better way | |||
// PIJ: I guess the structure handler should be created by the renderer. | |||
if (rendererType == RENDER_MIF) { | |||
structHandler = new MIFHandler(stream); | |||
foInputHandler = new MIFHandler(stream); | |||
} else if (rendererType == RENDER_RTF) { | |||
structHandler = new RTFHandler(stream); | |||
foInputHandler = new RTFHandler(stream); | |||
} else { | |||
if (renderer == null) { | |||
throw new IllegalStateException( | |||
"Renderer not set when using standard structHandler"); | |||
"Renderer not set when using standard foInputHandler"); | |||
} | |||
structHandler = new LayoutHandler(stream, renderer, true); | |||
foInputHandler = new LayoutHandler(stream, renderer, true); | |||
} | |||
structHandler.enableLogging(getLogger()); | |||
foInputHandler.enableLogging(getLogger()); | |||
treeBuilder.setUserAgent(getUserAgent()); | |||
treeBuilder.setStructHandler(structHandler); | |||
treeBuilder.setFOInputHandler(foInputHandler); | |||
return treeBuilder; | |||
} |
@@ -3,34 +3,34 @@ | |||
* ============================================================================ | |||
* The Apache Software License, Version 1.1 | |||
* ============================================================================ | |||
* | |||
* | |||
* Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved. | |||
* | |||
* | |||
* Redistribution and use in source and binary forms, with or without modifica- | |||
* tion, are permitted provided that the following conditions are met: | |||
* | |||
* | |||
* 1. Redistributions of source code must retain the above copyright notice, | |||
* this list of conditions and the following disclaimer. | |||
* | |||
* | |||
* 2. Redistributions in binary form must reproduce the above copyright notice, | |||
* this list of conditions and the following disclaimer in the documentation | |||
* and/or other materials provided with the distribution. | |||
* | |||
* | |||
* 3. The end-user documentation included with the redistribution, if any, must | |||
* include the following acknowledgment: "This product includes software | |||
* developed by the Apache Software Foundation (http://www.apache.org/)." | |||
* Alternately, this acknowledgment may appear in the software itself, if | |||
* and wherever such third-party acknowledgments normally appear. | |||
* | |||
* | |||
* 4. The names "FOP" and "Apache Software Foundation" must not be used to | |||
* endorse or promote products derived from this software without prior | |||
* written permission. For written permission, please contact | |||
* apache@apache.org. | |||
* | |||
* | |||
* 5. Products derived from this software may not be called "Apache", nor may | |||
* "Apache" appear in their name, without prior written permission of the | |||
* Apache Software Foundation. | |||
* | |||
* | |||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, | |||
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | |||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | |||
@@ -42,12 +42,12 @@ | |||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
* ============================================================================ | |||
* | |||
* | |||
* This software consists of voluntary contributions made by many individuals | |||
* on behalf of the Apache Software Foundation and was originally created by | |||
* James Tauber <jtauber@jtauber.com>. For more information on the Apache | |||
* Software Foundation, please see <http://www.apache.org/>. | |||
*/ | |||
*/ | |||
package org.apache.fop.extensions; | |||
import org.apache.fop.layoutmgr.LayoutHandler; | |||
@@ -108,8 +108,8 @@ public class Bookmarks extends ExtensionObj { | |||
data.addSubData(out.getData()); | |||
} | |||
// add data to area tree for resolving and handling | |||
if (structHandler instanceof LayoutHandler) { | |||
AreaTree at = ((LayoutHandler)structHandler).getAreaTree(); | |||
if (foInputHandler instanceof LayoutHandler) { | |||
AreaTree at = ((LayoutHandler)foInputHandler).getAreaTree(); | |||
at.addTreeExtension(data); | |||
data.setAreaTree(at); | |||
} |
@@ -80,7 +80,7 @@ import org.xml.sax.SAXException; | |||
* Sub-classes can then implement various methods to handle | |||
* the FO Tree when the SAX events occur. | |||
*/ | |||
public abstract class StructureHandler extends AbstractLogEnabled { | |||
public abstract class FOInputHandler extends AbstractLogEnabled { | |||
/** | |||
* The current set of id's in the FO tree. | |||
* This is used so we know if the FO tree contains duplicates. | |||
@@ -90,7 +90,7 @@ public abstract class StructureHandler extends AbstractLogEnabled { | |||
/** | |||
* Main constructor | |||
*/ | |||
public StructureHandler() { | |||
public FOInputHandler() { | |||
} | |||
/** | |||
@@ -102,7 +102,7 @@ public abstract class StructureHandler extends AbstractLogEnabled { | |||
} | |||
/** | |||
* Returns the FontInfo object associated with this StructureHandler. | |||
* Returns the FontInfo object associated with this FOInputHandler. | |||
* @return the FontInof object | |||
*/ | |||
public FontInfo getFontInfo() { |
@@ -118,9 +118,9 @@ public abstract class FONode { | |||
/** | |||
* Sets the structure handler to send events to. | |||
* @param st StructureHandler instance | |||
* @param foih FOInputHandler instance | |||
*/ | |||
public void setStructHandler(StructureHandler st) { | |||
public void setFOInputHandler(FOInputHandler foih) { | |||
} | |||
/** |
@@ -133,9 +133,9 @@ public class FOText extends FObj { | |||
textTransform(); | |||
} | |||
public void setStructHandler(StructureHandler st) { | |||
super.setStructHandler(st); | |||
structHandler.characters(ca, start, length); | |||
public void setFOInputHandler(FOInputHandler foih) { | |||
super.setFOInputHandler(foih); | |||
foInputHandler.characters(ca, start, length); | |||
} | |||
/** |
@@ -111,7 +111,7 @@ public class FOTreeBuilder extends DefaultHandler { | |||
* The class that handles formatting and rendering to a stream | |||
* (mark-fop@inomial.com) | |||
*/ | |||
private StructureHandler structHandler; | |||
private FOInputHandler foInputHandler; | |||
private FOUserAgent userAgent; | |||
@@ -140,10 +140,10 @@ public class FOTreeBuilder extends DefaultHandler { | |||
/** | |||
* Sets the structure handler to receive events. | |||
* @param sh StructureHandler instance | |||
* @param foih FOInputHandler instance | |||
*/ | |||
public void setStructHandler(StructureHandler sh) { | |||
this.structHandler = sh; | |||
public void setFOInputHandler(FOInputHandler foih) { | |||
this.foInputHandler = foih; | |||
} | |||
/** | |||
@@ -237,7 +237,7 @@ public class FOTreeBuilder extends DefaultHandler { | |||
if (getLogger().isDebugEnabled()) { | |||
getLogger().debug("Building formatting object tree"); | |||
} | |||
structHandler.startDocument(); | |||
foInputHandler.startDocument(); | |||
} | |||
/** | |||
@@ -250,7 +250,7 @@ public class FOTreeBuilder extends DefaultHandler { | |||
if (getLogger().isDebugEnabled()) { | |||
getLogger().debug("Parsing of document complete"); | |||
} | |||
structHandler.endDocument(); | |||
foInputHandler.endDocument(); | |||
} | |||
/** | |||
@@ -272,7 +272,7 @@ public class FOTreeBuilder extends DefaultHandler { | |||
fobj.setUserAgent(userAgent); | |||
// set the structure handler so that appropriate | |||
// elements can signal structure events | |||
fobj.setStructHandler(structHandler); | |||
fobj.setFOInputHandler(foInputHandler); | |||
fobj.handleAttrs(attlist); | |||
} catch (FOPException e) { | |||
@@ -330,7 +330,7 @@ public class FOTreeBuilder extends DefaultHandler { | |||
public void reset() { | |||
currentFObj = null; | |||
rootFObj = null; | |||
structHandler = null; | |||
foInputHandler = null; | |||
} | |||
/** |
@@ -82,7 +82,7 @@ public class FObj extends FONode { | |||
* Structure handler used to notify structure events | |||
* such as start end element. | |||
*/ | |||
protected StructureHandler structHandler; | |||
protected FOInputHandler foInputHandler; | |||
/** | |||
* Formatting properties for this fo element. | |||
@@ -256,8 +256,8 @@ public class FObj extends FONode { | |||
* | |||
* @param st the structure handler | |||
*/ | |||
public void setStructHandler(StructureHandler st) { | |||
structHandler = st; | |||
public void setFOInputHandler(FOInputHandler foih) { | |||
foInputHandler = foih; | |||
} | |||
/** | |||
@@ -281,7 +281,7 @@ public class FObj extends FONode { | |||
if (prop != null) { | |||
String str = prop.getString(); | |||
if (str != null && !str.equals("")) { | |||
Set idrefs = structHandler.getIDReferences(); | |||
Set idrefs = foInputHandler.getIDReferences(); | |||
if (!idrefs.contains(str)) { | |||
id = str; | |||
idrefs.add(id); |
@@ -74,11 +74,11 @@ public class FObjMixed extends FObj { | |||
} | |||
/** | |||
* @param st StructureHandler to set | |||
* @param foih FOInputHandler to set | |||
*/ | |||
public void setStructHandler(StructureHandler st) { | |||
super.setStructHandler(st); | |||
fontInfo = st.getFontInfo(); | |||
public void setFOInputHandler(FOInputHandler foih) { | |||
super.setFOInputHandler(foih); | |||
fontInfo = foih.getFontInfo(); | |||
} | |||
/** | |||
@@ -110,7 +110,7 @@ public class FObjMixed extends FObj { | |||
FOText ft = new FOText(data, start, length, textInfo, this); | |||
ft.setUserAgent(userAgent); | |||
ft.setStructHandler(structHandler); | |||
ft.setFOInputHandler(foInputHandler); | |||
addChild(ft); | |||
} | |||
@@ -147,7 +147,7 @@ public class Block extends FObjMixed { | |||
setupID(); | |||
structHandler.startBlock(this); | |||
foInputHandler.startBlock(this); | |||
} | |||
private void setup() { | |||
@@ -286,7 +286,7 @@ public class Block extends FObjMixed { | |||
*/ | |||
public void end() { | |||
handleWhiteSpace(); | |||
structHandler.endBlock(this); | |||
foInputHandler.endBlock(this); | |||
} | |||
private void handleWhiteSpace() { |
@@ -64,7 +64,7 @@ import org.apache.fop.datatypes.Length; | |||
import org.apache.fop.datatypes.PercentLength; | |||
import org.apache.fop.fo.FONode; | |||
import org.apache.fop.fo.FObjMixed; | |||
import org.apache.fop.fo.StructureHandler; | |||
import org.apache.fop.fo.FOInputHandler; | |||
import org.apache.fop.fo.properties.LeaderPattern; | |||
import org.apache.fop.layout.AccessibilityProps; | |||
import org.apache.fop.layout.AuralProps; | |||
@@ -213,11 +213,11 @@ public class Leader extends FObjMixed { | |||
} | |||
/** | |||
* @param st StructureHandler to set | |||
* @param foih FOInputHandler to set | |||
*/ | |||
public void setStructHandler(StructureHandler st) { | |||
super.setStructHandler(st); | |||
fontInfo = st.getFontInfo(); | |||
public void setFOInputHandler(FOInputHandler foih) { | |||
super.setFOInputHandler(foih); | |||
fontInfo = foih.getFontInfo(); | |||
} | |||
private void setup() { |
@@ -73,7 +73,7 @@ import org.apache.fop.area.inline.Word; | |||
import org.apache.fop.datatypes.ColorType; | |||
import org.apache.fop.fo.FONode; | |||
import org.apache.fop.fo.FObj; | |||
import org.apache.fop.fo.StructureHandler; | |||
import org.apache.fop.fo.FOInputHandler; | |||
import org.apache.fop.area.Trait; | |||
/** | |||
@@ -100,11 +100,11 @@ public class PageNumber extends FObj { | |||
} | |||
/** | |||
* @param st StructureHandler to be set | |||
* @param foih FOInputHandler to be set | |||
*/ | |||
public void setStructHandler(StructureHandler st) { | |||
super.setStructHandler(st); | |||
fontInfo = st.getFontInfo(); | |||
public void setFOInputHandler(FOInputHandler foih) { | |||
super.setFOInputHandler(foih); | |||
fontInfo = foih.getFontInfo(); | |||
} | |||
/** |
@@ -63,7 +63,7 @@ import org.apache.fop.area.inline.Word; | |||
import org.apache.fop.datatypes.ColorType; | |||
import org.apache.fop.fo.FONode; | |||
import org.apache.fop.fo.FObj; | |||
import org.apache.fop.fo.StructureHandler; | |||
import org.apache.fop.fo.FOInputHandler; | |||
import org.apache.fop.layout.AccessibilityProps; | |||
import org.apache.fop.layout.AuralProps; | |||
import org.apache.fop.layout.BackgroundProps; | |||
@@ -113,9 +113,9 @@ public class PageNumberCitation extends FObj { | |||
/** | |||
* @param st StuctureHandler object to set | |||
*/ | |||
public void setStructHandler(StructureHandler st) { | |||
super.setStructHandler(st); | |||
fontInfo = st.getFontInfo(); | |||
public void setFOInputHandler(FOInputHandler foih) { | |||
super.setFOInputHandler(foih); | |||
fontInfo = foih.getFontInfo(); | |||
} | |||
/** |
@@ -127,14 +127,14 @@ public class Flow extends FObj { | |||
// Now done in addChild of page-sequence | |||
//pageSequence.addFlow(this); | |||
structHandler.startFlow(this); | |||
foInputHandler.startFlow(this); | |||
} | |||
/** | |||
* Tell the StructureRenderer that we are at the end of the flow. | |||
*/ | |||
public void end() { | |||
structHandler.endFlow(this); | |||
foInputHandler.endFlow(this); | |||
} | |||
/** |
@@ -337,7 +337,7 @@ public class PageSequence extends FObj { | |||
*/ | |||
private void startStructuredPageSequence() { | |||
if (!sequenceStarted) { | |||
structHandler.startPageSequence(this); | |||
foInputHandler.startPageSequence(this); | |||
sequenceStarted = true; | |||
} | |||
} | |||
@@ -349,7 +349,7 @@ public class PageSequence extends FObj { | |||
*/ | |||
public void end() { | |||
try { | |||
this.structHandler.endPageSequence(this); | |||
this.foInputHandler.endPageSequence(this); | |||
} catch (FOPException fopex) { | |||
getLogger().error("Error in PageSequence.end(): " | |||
+ fopex.getMessage(), fopex); |
@@ -120,7 +120,7 @@ public class Title extends FObjMixed { | |||
BackgroundProps bProps = propMgr.getBackgroundProps(); | |||
// Common Font Properties | |||
FontState fontState = propMgr.getFontState(structHandler.getFontInfo()); | |||
FontState fontState = propMgr.getFontState(foInputHandler.getFontInfo()); | |||
// Common Margin Properties-Inline | |||
MarginInlineProps mProps = propMgr.getMarginInlineProps(); |
@@ -65,7 +65,7 @@ import org.apache.fop.area.AreaTreeModel; | |||
import org.apache.fop.area.StorePagesModel; | |||
import org.apache.fop.area.Title; | |||
import org.apache.fop.area.TreeExt; | |||
import org.apache.fop.fo.StructureHandler; | |||
import org.apache.fop.fo.FOInputHandler; | |||
import org.apache.fop.fo.flow.Block; | |||
import org.apache.fop.fo.flow.ExternalGraphic; | |||
import org.apache.fop.fo.flow.InstreamForeignObject; | |||
@@ -86,7 +86,7 @@ import org.apache.fop.render.Renderer; | |||
* This initiates layout processes and corresponding | |||
* rendering processes such as start/end. | |||
*/ | |||
public class LayoutHandler extends StructureHandler { | |||
public class LayoutHandler extends FOInputHandler { | |||
// TODO: Collecting of statistics should be configurable | |||
private final boolean collectStatistics = true; | |||
@@ -277,219 +277,219 @@ public class LayoutHandler extends StructureHandler { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startFlow(Flow) | |||
* @see org.apache.fop.fo.FOInputHandler#startFlow(Flow) | |||
*/ | |||
public void startFlow(Flow fl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endFlow(Flow) | |||
* @see org.apache.fop.fo.FOInputHandler#endFlow(Flow) | |||
*/ | |||
public void endFlow(Flow fl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startBlock(Block) | |||
* @see org.apache.fop.fo.FOInputHandler#startBlock(Block) | |||
*/ | |||
public void startBlock(Block bl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endBlock(Block) | |||
* @see org.apache.fop.fo.FOInputHandler#endBlock(Block) | |||
*/ | |||
public void endBlock(Block bl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startTable(Table) | |||
* @see org.apache.fop.fo.FOInputHandler#startTable(Table) | |||
*/ | |||
public void startTable(Table tbl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endTable(Table) | |||
* @see org.apache.fop.fo.FOInputHandler#endTable(Table) | |||
*/ | |||
public void endTable(Table tbl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startHeader(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#startHeader(TableBody) | |||
*/ | |||
public void startHeader(TableBody th) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endHeader(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#endHeader(TableBody) | |||
*/ | |||
public void endHeader(TableBody th) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startFooter(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#startFooter(TableBody) | |||
*/ | |||
public void startFooter(TableBody tf) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endFooter(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#endFooter(TableBody) | |||
*/ | |||
public void endFooter(TableBody tf) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startBody(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#startBody(TableBody) | |||
*/ | |||
public void startBody(TableBody tb) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endBody(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#endBody(TableBody) | |||
*/ | |||
public void endBody(TableBody tb) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startRow(TableRow) | |||
* @see org.apache.fop.fo.FOInputHandler#startRow(TableRow) | |||
*/ | |||
public void startRow(TableRow tr) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endRow(TableRow) | |||
* @see org.apache.fop.fo.FOInputHandler#endRow(TableRow) | |||
*/ | |||
public void endRow(TableRow tr) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startCell(TableCell) | |||
* @see org.apache.fop.fo.FOInputHandler#startCell(TableCell) | |||
*/ | |||
public void startCell(TableCell tc) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endCell(TableCell) | |||
* @see org.apache.fop.fo.FOInputHandler#endCell(TableCell) | |||
*/ | |||
public void endCell(TableCell tc) { | |||
} | |||
// Lists | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startList(ListBlock) | |||
* @see org.apache.fop.fo.FOInputHandler#startList(ListBlock) | |||
*/ | |||
public void startList(ListBlock lb) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endList(ListBlock) | |||
* @see org.apache.fop.fo.FOInputHandler#endList(ListBlock) | |||
*/ | |||
public void endList(ListBlock lb) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startListItem(ListItem) | |||
* @see org.apache.fop.fo.FOInputHandler#startListItem(ListItem) | |||
*/ | |||
public void startListItem(ListItem li) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endListItem(ListItem) | |||
* @see org.apache.fop.fo.FOInputHandler#endListItem(ListItem) | |||
*/ | |||
public void endListItem(ListItem li) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startListLabel() | |||
* @see org.apache.fop.fo.FOInputHandler#startListLabel() | |||
*/ | |||
public void startListLabel() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endListLabel() | |||
* @see org.apache.fop.fo.FOInputHandler#endListLabel() | |||
*/ | |||
public void endListLabel() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startListBody() | |||
* @see org.apache.fop.fo.FOInputHandler#startListBody() | |||
*/ | |||
public void startListBody() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endListBody() | |||
* @see org.apache.fop.fo.FOInputHandler#endListBody() | |||
*/ | |||
public void endListBody() { | |||
} | |||
// Static Regions | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startStatic() | |||
* @see org.apache.fop.fo.FOInputHandler#startStatic() | |||
*/ | |||
public void startStatic() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endStatic() | |||
* @see org.apache.fop.fo.FOInputHandler#endStatic() | |||
*/ | |||
public void endStatic() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startMarkup() | |||
* @see org.apache.fop.fo.FOInputHandler#startMarkup() | |||
*/ | |||
public void startMarkup() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endMarkup() | |||
* @see org.apache.fop.fo.FOInputHandler#endMarkup() | |||
*/ | |||
public void endMarkup() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startLink() | |||
* @see org.apache.fop.fo.FOInputHandler#startLink() | |||
*/ | |||
public void startLink() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endLink() | |||
* @see org.apache.fop.fo.FOInputHandler#endLink() | |||
*/ | |||
public void endLink() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#image(ExternalGraphic) | |||
* @see org.apache.fop.fo.FOInputHandler#image(ExternalGraphic) | |||
*/ | |||
public void image(ExternalGraphic eg) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#pageRef() | |||
* @see org.apache.fop.fo.FOInputHandler#pageRef() | |||
*/ | |||
public void pageRef() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#foreignObject(InstreamForeignObject) | |||
* @see org.apache.fop.fo.FOInputHandler#foreignObject(InstreamForeignObject) | |||
*/ | |||
public void foreignObject(InstreamForeignObject ifo) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#footnote() | |||
* @see org.apache.fop.fo.FOInputHandler#footnote() | |||
*/ | |||
public void footnote() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#leader(Leader) | |||
* @see org.apache.fop.fo.FOInputHandler#leader(Leader) | |||
*/ | |||
public void leader(Leader l) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#characters(char[], int, int) | |||
* @see org.apache.fop.fo.FOInputHandler#characters(char[], int, int) | |||
*/ | |||
public void characters(char[] data, int start, int length) { | |||
} |
@@ -58,7 +58,7 @@ import java.io.OutputStream; | |||
import org.xml.sax.SAXException; | |||
// FOP | |||
import org.apache.fop.fo.StructureHandler; | |||
import org.apache.fop.fo.FOInputHandler; | |||
import org.apache.fop.fo.flow.Block; | |||
import org.apache.fop.fo.pagination.Flow; | |||
import org.apache.fop.fo.pagination.PageSequence; | |||
@@ -84,7 +84,7 @@ import org.apache.fop.fo.flow.TableRow; | |||
* the FO Tree sent to this structure handler. | |||
* This builds an MIF file and writes it to the output. | |||
*/ | |||
public class MIFHandler extends StructureHandler { | |||
public class MIFHandler extends FOInputHandler { | |||
/** the MIFFile instance */ | |||
protected MIFFile mifFile; | |||
@@ -107,14 +107,14 @@ public class MIFHandler extends StructureHandler { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#getFontInfo() | |||
* @see org.apache.fop.fo.FOInputHandler#getFontInfo() | |||
*/ | |||
public FontInfo getFontInfo() { | |||
return fontInfo; | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startDocument() | |||
* @see org.apache.fop.fo.FOInputHandler#startDocument() | |||
*/ | |||
public void startDocument() throws SAXException { | |||
mifFile = new MIFFile(); | |||
@@ -126,7 +126,7 @@ public class MIFHandler extends StructureHandler { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endDocument() | |||
* @see org.apache.fop.fo.FOInputHandler#endDocument() | |||
*/ | |||
public void endDocument() throws SAXException { | |||
// finish all open elements | |||
@@ -143,7 +143,7 @@ public class MIFHandler extends StructureHandler { | |||
* Start the page sequence. | |||
* This creates the pages in the MIF document that will be used | |||
* by the following flows and static areas. | |||
* @see org.apache.fop.fo.StructureHandler | |||
* @see org.apache.fop.fo.FOInputHandler | |||
*/ | |||
public void startPageSequence(PageSequence pageSeq) { | |||
// get the layout master set | |||
@@ -190,14 +190,14 @@ public class MIFHandler extends StructureHandler { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endPageSequence(PageSequence) | |||
* @see org.apache.fop.fo.FOInputHandler#endPageSequence(PageSequence) | |||
*/ | |||
public void endPageSequence(PageSequence pageSeq) throws FOPException { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startFlow(Flow) | |||
* @see org.apache.fop.fo.FOInputHandler#startFlow(Flow) | |||
*/ | |||
public void startFlow(Flow fl) { | |||
// start text flow in body region | |||
@@ -205,7 +205,7 @@ public class MIFHandler extends StructureHandler { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endFlow(Flow) | |||
* @see org.apache.fop.fo.FOInputHandler#endFlow(Flow) | |||
*/ | |||
public void endFlow(Flow fl) { | |||
textFlow.finish(true); | |||
@@ -214,7 +214,7 @@ public class MIFHandler extends StructureHandler { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startBlock(Block) | |||
* @see org.apache.fop.fo.FOInputHandler#startBlock(Block) | |||
*/ | |||
public void startBlock(Block bl) { | |||
para = new MIFElement("Para"); | |||
@@ -223,7 +223,7 @@ public class MIFHandler extends StructureHandler { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endBlock(Block) | |||
* @see org.apache.fop.fo.FOInputHandler#endBlock(Block) | |||
*/ | |||
public void endBlock(Block bl) { | |||
para.finish(true); | |||
@@ -231,195 +231,195 @@ public class MIFHandler extends StructureHandler { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startTable(Table) | |||
* @see org.apache.fop.fo.FOInputHandler#startTable(Table) | |||
*/ | |||
public void startTable(Table tbl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endTable(Table) | |||
* @see org.apache.fop.fo.FOInputHandler#endTable(Table) | |||
*/ | |||
public void endTable(Table tbl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startHeader(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#startHeader(TableBody) | |||
*/ | |||
public void startHeader(TableBody th) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endHeader(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#endHeader(TableBody) | |||
*/ | |||
public void endHeader(TableBody th) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startFooter(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#startFooter(TableBody) | |||
*/ | |||
public void startFooter(TableBody tf) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endFooter(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#endFooter(TableBody) | |||
*/ | |||
public void endFooter(TableBody tf) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startBody(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#startBody(TableBody) | |||
*/ | |||
public void startBody(TableBody tb) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endBody(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#endBody(TableBody) | |||
*/ | |||
public void endBody(TableBody tb) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startRow(TableRow) | |||
* @see org.apache.fop.fo.FOInputHandler#startRow(TableRow) | |||
*/ | |||
public void startRow(TableRow tr) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endRow(TableRow) | |||
* @see org.apache.fop.fo.FOInputHandler#endRow(TableRow) | |||
*/ | |||
public void endRow(TableRow tr) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startCell(TableCell) | |||
* @see org.apache.fop.fo.FOInputHandler#startCell(TableCell) | |||
*/ | |||
public void startCell(TableCell tc) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endCell(TableCell) | |||
* @see org.apache.fop.fo.FOInputHandler#endCell(TableCell) | |||
*/ | |||
public void endCell(TableCell tc) { | |||
} | |||
// Lists | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startList(ListBlock) | |||
* @see org.apache.fop.fo.FOInputHandler#startList(ListBlock) | |||
*/ | |||
public void startList(ListBlock lb) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endList(ListBlock) | |||
* @see org.apache.fop.fo.FOInputHandler#endList(ListBlock) | |||
*/ | |||
public void endList(ListBlock lb) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startListItem(ListItem) | |||
* @see org.apache.fop.fo.FOInputHandler#startListItem(ListItem) | |||
*/ | |||
public void startListItem(ListItem li) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endListItem(ListItem) | |||
* @see org.apache.fop.fo.FOInputHandler#endListItem(ListItem) | |||
*/ | |||
public void endListItem(ListItem li) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startListLabel() | |||
* @see org.apache.fop.fo.FOInputHandler#startListLabel() | |||
*/ | |||
public void startListLabel() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endListLabel() | |||
* @see org.apache.fop.fo.FOInputHandler#endListLabel() | |||
*/ | |||
public void endListLabel() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startListBody() | |||
* @see org.apache.fop.fo.FOInputHandler#startListBody() | |||
*/ | |||
public void startListBody() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endListBody() | |||
* @see org.apache.fop.fo.FOInputHandler#endListBody() | |||
*/ | |||
public void endListBody() { | |||
} | |||
// Static Regions | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startStatic() | |||
* @see org.apache.fop.fo.FOInputHandler#startStatic() | |||
*/ | |||
public void startStatic() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endStatic() | |||
* @see org.apache.fop.fo.FOInputHandler#endStatic() | |||
*/ | |||
public void endStatic() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startMarkup() | |||
* @see org.apache.fop.fo.FOInputHandler#startMarkup() | |||
*/ | |||
public void startMarkup() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endMarkup() | |||
* @see org.apache.fop.fo.FOInputHandler#endMarkup() | |||
*/ | |||
public void endMarkup() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startLink() | |||
* @see org.apache.fop.fo.FOInputHandler#startLink() | |||
*/ | |||
public void startLink() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endLink() | |||
* @see org.apache.fop.fo.FOInputHandler#endLink() | |||
*/ | |||
public void endLink() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#image(ExternalGraphic) | |||
* @see org.apache.fop.fo.FOInputHandler#image(ExternalGraphic) | |||
*/ | |||
public void image(ExternalGraphic eg) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#pageRef() | |||
* @see org.apache.fop.fo.FOInputHandler#pageRef() | |||
*/ | |||
public void pageRef() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#foreignObject(InstreamForeignObject) | |||
* @see org.apache.fop.fo.FOInputHandler#foreignObject(InstreamForeignObject) | |||
*/ | |||
public void foreignObject(InstreamForeignObject ifo) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#footnote() | |||
* @see org.apache.fop.fo.FOInputHandler#footnote() | |||
*/ | |||
public void footnote() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#leader(Leader) | |||
* @see org.apache.fop.fo.FOInputHandler#leader(Leader) | |||
*/ | |||
public void leader(Leader l) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#characters(char[], int, int) | |||
* @see org.apache.fop.fo.FOInputHandler#characters(char[], int, int) | |||
*/ | |||
public void characters(char data[], int start, int length) { | |||
if (para != null) { |
@@ -57,7 +57,7 @@ import java.io.OutputStreamWriter; | |||
import org.apache.fop.apps.FOPException; | |||
import org.apache.fop.datatypes.ColorType; | |||
import org.apache.fop.fo.StructureHandler; | |||
import org.apache.fop.fo.FOInputHandler; | |||
import org.apache.fop.fo.flow.Block; | |||
import org.apache.fop.fo.flow.ExternalGraphic; | |||
import org.apache.fop.fo.flow.InstreamForeignObject; | |||
@@ -87,7 +87,7 @@ import org.xml.sax.SAXException; | |||
* | |||
* @author bdelacretaz@apache.org | |||
*/ | |||
public class RTFHandler extends StructureHandler { | |||
public class RTFHandler extends FOInputHandler { | |||
private FontInfo fontInfo = new FontInfo(); | |||
private RtfFile rtfFile; | |||
@@ -118,14 +118,14 @@ public class RTFHandler extends StructureHandler { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#getFontInfo() | |||
* @see org.apache.fop.fo.FOInputHandler#getFontInfo() | |||
*/ | |||
public FontInfo getFontInfo() { | |||
return this.fontInfo; | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startDocument() | |||
* @see org.apache.fop.fo.FOInputHandler#startDocument() | |||
*/ | |||
public void startDocument() throws SAXException { | |||
// FIXME sections should be created | |||
@@ -133,25 +133,25 @@ public class RTFHandler extends StructureHandler { | |||
rtfFile = new RtfFile(new OutputStreamWriter(os)); | |||
docArea = rtfFile.startDocumentArea(); | |||
} catch (IOException ioe) { | |||
// FIXME could we throw Exception in all StructureHandler events? | |||
// FIXME could we throw Exception in all FOInputHandler events? | |||
throw new SAXException("IOException: " + ioe); | |||
} | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endDocument() | |||
* @see org.apache.fop.fo.FOInputHandler#endDocument() | |||
*/ | |||
public void endDocument() throws SAXException { | |||
try { | |||
rtfFile.flush(); | |||
} catch (IOException ioe) { | |||
// FIXME could we throw Exception in all StructureHandler events? | |||
// FIXME could we throw Exception in all FOInputHandler events? | |||
throw new SAXException("IOException: " + ioe); | |||
} | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler | |||
* @see org.apache.fop.fo.FOInputHandler | |||
*/ | |||
public void startPageSequence(PageSequence pageSeq) { | |||
try { | |||
@@ -161,31 +161,31 @@ public class RTFHandler extends StructureHandler { | |||
warned = true; | |||
} | |||
} catch (IOException ioe) { | |||
// FIXME could we throw Exception in all StructureHandler events? | |||
// FIXME could we throw Exception in all FOInputHandler events? | |||
throw new Error("IOException: " + ioe); | |||
} | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endPageSequence(PageSequence) | |||
* @see org.apache.fop.fo.FOInputHandler#endPageSequence(PageSequence) | |||
*/ | |||
public void endPageSequence(PageSequence pageSeq) throws FOPException { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startFlow(Flow) | |||
* @see org.apache.fop.fo.FOInputHandler#startFlow(Flow) | |||
*/ | |||
public void startFlow(Flow fl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endFlow(Flow) | |||
* @see org.apache.fop.fo.FOInputHandler#endFlow(Flow) | |||
*/ | |||
public void endFlow(Flow fl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startBlock(Block) | |||
* @see org.apache.fop.fo.FOInputHandler#startBlock(Block) | |||
*/ | |||
public void startBlock(Block bl) { | |||
try { | |||
@@ -194,214 +194,214 @@ public class RTFHandler extends StructureHandler { | |||
attrBlockBackgroundColor(bl, rtfAttr); | |||
para = sect.newParagraph(rtfAttr); | |||
} catch (IOException ioe) { | |||
// FIXME could we throw Exception in all StructureHandler events? | |||
// FIXME could we throw Exception in all FOInputHandler events? | |||
throw new Error("IOException: " + ioe); | |||
} | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endBlock(Block) | |||
* @see org.apache.fop.fo.FOInputHandler#endBlock(Block) | |||
*/ | |||
public void endBlock(Block bl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startTable(Table) | |||
* @see org.apache.fop.fo.FOInputHandler#startTable(Table) | |||
*/ | |||
public void startTable(Table tbl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endTable(Table) | |||
* @see org.apache.fop.fo.FOInputHandler#endTable(Table) | |||
*/ | |||
public void endTable(Table tbl) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startHeader(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#startHeader(TableBody) | |||
*/ | |||
public void startHeader(TableBody th) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endHeader(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#endHeader(TableBody) | |||
*/ | |||
public void endHeader(TableBody th) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startFooter(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#startFooter(TableBody) | |||
*/ | |||
public void startFooter(TableBody tf) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endFooter(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#endFooter(TableBody) | |||
*/ | |||
public void endFooter(TableBody tf) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startBody(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#startBody(TableBody) | |||
*/ | |||
public void startBody(TableBody tb) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endBody(TableBody) | |||
* @see org.apache.fop.fo.FOInputHandler#endBody(TableBody) | |||
*/ | |||
public void endBody(TableBody tb) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startRow(TableRow) | |||
* @see org.apache.fop.fo.FOInputHandler#startRow(TableRow) | |||
*/ | |||
public void startRow(TableRow tr) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endRow(TableRow) | |||
* @see org.apache.fop.fo.FOInputHandler#endRow(TableRow) | |||
*/ | |||
public void endRow(TableRow tr) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startCell(TableCell) | |||
* @see org.apache.fop.fo.FOInputHandler#startCell(TableCell) | |||
*/ | |||
public void startCell(TableCell tc) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endCell(TableCell) | |||
* @see org.apache.fop.fo.FOInputHandler#endCell(TableCell) | |||
*/ | |||
public void endCell(TableCell tc) { | |||
} | |||
// Lists | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startList(ListBlock) | |||
* @see org.apache.fop.fo.FOInputHandler#startList(ListBlock) | |||
*/ | |||
public void startList(ListBlock lb) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endList(ListBlock) | |||
* @see org.apache.fop.fo.FOInputHandler#endList(ListBlock) | |||
*/ | |||
public void endList(ListBlock lb) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startListItem(ListItem) | |||
* @see org.apache.fop.fo.FOInputHandler#startListItem(ListItem) | |||
*/ | |||
public void startListItem(ListItem li) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endListItem(ListItem) | |||
* @see org.apache.fop.fo.FOInputHandler#endListItem(ListItem) | |||
*/ | |||
public void endListItem(ListItem li) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startListLabel() | |||
* @see org.apache.fop.fo.FOInputHandler#startListLabel() | |||
*/ | |||
public void startListLabel() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endListLabel() | |||
* @see org.apache.fop.fo.FOInputHandler#endListLabel() | |||
*/ | |||
public void endListLabel() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startListBody() | |||
* @see org.apache.fop.fo.FOInputHandler#startListBody() | |||
*/ | |||
public void startListBody() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endListBody() | |||
* @see org.apache.fop.fo.FOInputHandler#endListBody() | |||
*/ | |||
public void endListBody() { | |||
} | |||
// Static Regions | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startStatic() | |||
* @see org.apache.fop.fo.FOInputHandler#startStatic() | |||
*/ | |||
public void startStatic() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endStatic() | |||
* @see org.apache.fop.fo.FOInputHandler#endStatic() | |||
*/ | |||
public void endStatic() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startMarkup() | |||
* @see org.apache.fop.fo.FOInputHandler#startMarkup() | |||
*/ | |||
public void startMarkup() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endMarkup() | |||
* @see org.apache.fop.fo.FOInputHandler#endMarkup() | |||
*/ | |||
public void endMarkup() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#startLink() | |||
* @see org.apache.fop.fo.FOInputHandler#startLink() | |||
*/ | |||
public void startLink() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#endLink() | |||
* @see org.apache.fop.fo.FOInputHandler#endLink() | |||
*/ | |||
public void endLink() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#image(ExternalGraphic) | |||
* @see org.apache.fop.fo.FOInputHandler#image(ExternalGraphic) | |||
*/ | |||
public void image(ExternalGraphic eg) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#pageRef() | |||
* @see org.apache.fop.fo.FOInputHandler#pageRef() | |||
*/ | |||
public void pageRef() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#foreignObject(InstreamForeignObject) | |||
* @see org.apache.fop.fo.FOInputHandler#foreignObject(InstreamForeignObject) | |||
*/ | |||
public void foreignObject(InstreamForeignObject ifo) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#footnote() | |||
* @see org.apache.fop.fo.FOInputHandler#footnote() | |||
*/ | |||
public void footnote() { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#leader(Leader) | |||
* @see org.apache.fop.fo.FOInputHandler#leader(Leader) | |||
*/ | |||
public void leader(Leader l) { | |||
} | |||
/** | |||
* @see org.apache.fop.fo.StructureHandler#characters(char[], int, int) | |||
* @see org.apache.fop.fo.FOInputHandler#characters(char[], int, int) | |||
*/ | |||
public void characters(char data[], int start, int length) { | |||
try { | |||
para.newText(new String(data, start, length)); | |||
} catch (IOException ioe) { | |||
// FIXME could we throw Exception in all StructureHandler events? | |||
// FIXME could we throw Exception in all FOInputHandler events? | |||
throw new Error("IOException: " + ioe); | |||
} | |||
} |