import org.apache.fop.apps.FOPException;
import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.area.extensions.BookmarkData;
-import org.apache.fop.fo.FOInputHandler;
+import org.apache.fop.fo.FOEventHandler;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.extensions.Outline;
import org.apache.fop.fo.extensions.Bookmarks;
* The area tree pages are organized in a model that depends on the
* type of renderer.
*/
-public class AreaTreeHandler extends FOInputHandler {
+public class AreaTreeHandler extends FOEventHandler {
// TODO: Collecting of statistics should be configurable
private final boolean collectStatistics = true;
--- /dev/null
+/*
+ * Copyright 1999-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* $Id$ */
+
+package org.apache.fop.fo;
+
+// Java
+import java.util.HashSet;
+import java.util.Set;
+import org.xml.sax.SAXException;
+
+// Apache
+import org.apache.fop.apps.FOUserAgent;
+import org.apache.fop.apps.FOPException;
+import org.apache.fop.fo.flow.BasicLink;
+import org.apache.fop.fo.flow.Block;
+import org.apache.fop.fo.flow.ExternalGraphic;
+import org.apache.fop.fo.flow.Footnote;
+import org.apache.fop.fo.flow.FootnoteBody;
+import org.apache.fop.fo.flow.Inline;
+import org.apache.fop.fo.flow.InstreamForeignObject;
+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.PageNumber;
+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;
+import org.apache.fop.fo.pagination.Flow;
+import org.apache.fop.fo.pagination.PageSequence;
+import org.apache.fop.fonts.FontInfo;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+
+/**
+ * Abstract class defining what should be done with SAX events that map to
+ * XSL-FO input. The events are actually captured by fo/FOTreeBuilder, passed
+ * to the various fo Objects, which in turn, if needed, pass them to an instance
+ * of FOEventHandler.
+ *
+ * Sub-classes will generally fall into one of two categories:
+ * 1) a handler that actually builds an FO Tree from the events, or 2) a
+ * handler that builds a structured (as opposed to formatted) document, such
+ * as our MIF and RTF output targets.
+ */
+public abstract class FOEventHandler {
+
+ /**
+ * The FOUserAgent for this process
+ */
+ protected FOUserAgent foUserAgent;
+
+ /**
+ * The Font information relevant for this document
+ */
+ protected FontInfo fontInfo;
+
+ /** Logger for FOEventHandler-related messages **/
+ protected static Log logger = LogFactory.getLog(FOEventHandler.class);
+
+ /**
+ * The current set of id's in the FO tree.
+ * This is used so we know if the FO tree contains duplicates.
+ */
+ private Set idReferences = new HashSet();
+
+ /**
+ * Main constructor
+ * @param FOUserAgent the apps.FOUserAgent instance for this process
+ */
+ public FOEventHandler(FOUserAgent foUserAgent) {
+ this.foUserAgent = foUserAgent;
+ this.fontInfo = new FontInfo();
+ }
+
+ /**
+ * Retuns the set of ID references.
+ * @return the ID references
+ */
+ public Set getIDReferences() {
+ return idReferences;
+ }
+
+ /**
+ * Returns the Commons-Logging instance for this class
+ * @return The Commons-Logging instance
+ */
+ protected Log getLogger(Log logger) {
+ return logger;
+ }
+
+ /**
+ * Returns the User Agent object associated with this FOEventHandler.
+ * @return the User Agent object
+ */
+ public FOUserAgent getUserAgent() {
+ return foUserAgent;
+ }
+
+ /**
+ * Retrieve the font information for this document
+ * @return the FontInfo instance for this document
+ */
+ public FontInfo getFontInfo() {
+ return this.fontInfo;
+ }
+
+ /**
+ * This method is called to indicate the start of a new document run.
+ * @throws SAXException In case of a problem
+ */
+ public void startDocument() throws SAXException {
+ }
+
+ /**
+ * This method is called to indicate the end of a document run.
+ * @throws SAXException In case of a problem
+ */
+ public void endDocument() throws SAXException {
+ }
+
+ /**
+ *
+ * @param pageSeq PageSequence that is starting.
+ */
+ public void startPageSequence(PageSequence pageSeq) {
+ }
+
+ /**
+ * @param pageSeq PageSequence that is ending.
+ */
+ public void endPageSequence(PageSequence pageSeq) {
+ }
+
+ /**
+ *
+ * @param pagenum PageNumber that is starting.
+ */
+ public void startPageNumber(PageNumber pagenum) {
+ }
+
+ /**
+ *
+ * @param pagenum PageNumber that is ending.
+ */
+ public void endPageNumber(PageNumber pagenum) {
+ }
+
+ /**
+ * This method is called to indicate the start of a new fo:flow or fo:static-content.
+ * This method also handles fo:static-content tags, because the StaticContent class
+ * is derived from the Flow class.
+ *
+ * @param fl Flow that is starting.
+ */
+ public void startFlow(Flow fl) {
+ }
+
+ /**
+ *
+ * @param fl Flow that is ending.
+ */
+ public void endFlow(Flow fl) {
+ }
+
+ /**
+ *
+ * @param bl Block that is starting.
+ */
+ public void startBlock(Block bl) {
+ }
+
+ /**
+ *
+ * @param bl Block that is ending.
+ */
+ public void endBlock(Block bl) {
+ }
+
+ /**
+ *
+ * @param inl Inline that is starting.
+ */
+ public void startInline(Inline inl) {
+ }
+
+ /**
+ *
+ * @param inl Inline that is ending.
+ */
+ public void endInline(Inline inl) {
+ }
+
+ // Tables
+ /**
+ *
+ * @param tbl Table that is starting.
+ */
+ public void startTable(Table tbl) {
+ }
+
+ /**
+ *
+ * @param tbl Table that is ending.
+ */
+ 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) {
+ }
+
+ /**
+ *
+ * @param th TableBody that is starting;
+ */
+ public void startHeader(TableBody th) {
+ }
+
+ /**
+ *
+ * @param th TableBody that is ending.
+ */
+ public void endHeader(TableBody th) {
+ }
+
+ /**
+ *
+ * @param tf TableFooter that is starting.
+ */
+ public void startFooter(TableBody tf) {
+ }
+
+ /**
+ *
+ * @param tf TableFooter that is ending.
+ */
+ public void endFooter(TableBody tf) {
+ }
+
+ /**
+ *
+ * @param tb TableBody that is starting.
+ */
+ public void startBody(TableBody tb) {
+ }
+
+ /**
+ *
+ * @param tb TableBody that is ending.
+ */
+ public void endBody(TableBody tb) {
+ }
+
+ /**
+ *
+ * @param tr TableRow that is starting.
+ */
+ public void startRow(TableRow tr) {
+ }
+
+ /**
+ *
+ * @param tr TableRow that is ending.
+ */
+ public void endRow(TableRow tr) {
+ }
+
+ /**
+ *
+ * @param tc TableCell that is starting.
+ */
+ public void startCell(TableCell tc) {
+ }
+
+ /**
+ *
+ * @param tc TableCell that is ending.
+ */
+ public void endCell(TableCell tc) {
+ }
+
+
+ // Lists
+ /**
+ *
+ * @param lb ListBlock that is starting.
+ */
+ public void startList(ListBlock lb) {
+ }
+
+ /**
+ *
+ * @param lb ListBlock that is ending.
+ */
+ public void endList(ListBlock lb) {
+ }
+
+ /**
+ *
+ * @param li ListItem that is starting.
+ */
+ public void startListItem(ListItem li) {
+ }
+
+ /**
+ *
+ * @param li ListItem that is ending.
+ */
+ public void endListItem(ListItem li) {
+ }
+
+ /**
+ * Process start of a ListLabel.
+ */
+ public void startListLabel() {
+ }
+
+ /**
+ * Process end of a ListLabel.
+ */
+ public void endListLabel() {
+ }
+
+ /**
+ * Process start of a ListBody.
+ */
+ public void startListBody() {
+ }
+
+ /**
+ * Process end of a ListBody.
+ */
+ public void endListBody() {
+ }
+
+ // Static Regions
+ /**
+ * Process start of a Static.
+ */
+ public void startStatic() {
+ }
+
+ /**
+ * Process end of a Static.
+ */
+ public void endStatic() {
+ }
+
+
+ /**
+ * Process start of a Markup.
+ */
+ public void startMarkup() {
+ }
+
+ /**
+ * Process end of a Markup.
+ */
+ public void endMarkup() {
+ }
+
+ /**
+ * Process start of a Link.
+ * @param basicLink BasicLink that is ending
+ */
+ public void startLink(BasicLink basicLink) {
+ }
+
+ /**
+ * Process end of a Link.
+ */
+ public void endLink() {
+ }
+
+ /**
+ * Process an ExternalGraphic.
+ * @param eg ExternalGraphic to process.
+ */
+ public void image(ExternalGraphic eg) {
+ }
+
+ /**
+ * Process a pageRef.
+ */
+ public void pageRef() {
+ }
+
+ /**
+ * Process an InstreamForeignObject.
+ * @param ifo InstreamForeignObject to process.
+ */
+ public void foreignObject(InstreamForeignObject ifo) {
+ }
+
+ /**
+ * Process the start of a footnote.
+ * @param footnote Footnote that is starting
+ */
+ public void startFootnote(Footnote footnote) {
+ }
+
+ /**
+ * Process the ending of a footnote.
+ * @param footnote Footnote that is ending
+ */
+ public void endFootnote(Footnote footnote) {
+ }
+
+ /**
+ * Process the start of a footnote body.
+ * @param body FootnoteBody that is starting
+ */
+ public void startFootnoteBody(FootnoteBody body) {
+ }
+
+ /**
+ * Process the ending of a footnote body.
+ * @param body FootnoteBody that is ending
+ */
+ public void endFootnoteBody(FootnoteBody body) {
+ }
+
+ /**
+ * Process a Leader.
+ * @param l Leader to process.
+ */
+ public void leader(Leader l) {
+ }
+
+ /**
+ * Process character data.
+ * @param data Array of characters to process.
+ * @param start Offset for characters to process.
+ * @param length Portion of array to process.
+ */
+ public void characters(char data[], int start, int length) {
+ }
+
+}
+
+++ /dev/null
-/*
- * Copyright 1999-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/* $Id$ */
-
-package org.apache.fop.fo;
-
-// Java
-import java.util.HashSet;
-import java.util.Set;
-import org.xml.sax.SAXException;
-
-// Apache
-import org.apache.fop.apps.FOUserAgent;
-import org.apache.fop.apps.FOPException;
-import org.apache.fop.fo.flow.BasicLink;
-import org.apache.fop.fo.flow.Block;
-import org.apache.fop.fo.flow.ExternalGraphic;
-import org.apache.fop.fo.flow.Footnote;
-import org.apache.fop.fo.flow.FootnoteBody;
-import org.apache.fop.fo.flow.Inline;
-import org.apache.fop.fo.flow.InstreamForeignObject;
-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.PageNumber;
-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;
-import org.apache.fop.fo.pagination.Flow;
-import org.apache.fop.fo.pagination.PageSequence;
-import org.apache.fop.fonts.FontInfo;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-
-/**
- * Abstract class defining what should be done with SAX events that map to
- * XSL-FO input. The events are actually captured by fo/FOTreeBuilder, passed
- * to the various fo Objects, which in turn, if needed, pass them to an instance
- * of FOInputHandler.
- *
- * Sub-classes will generally fall into one of two categories:
- * 1) a handler that actually builds an FO Tree from the events, or 2) a
- * handler that builds a structured (as opposed to formatted) document, such
- * as our MIF and RTF output targets.
- */
-public abstract class FOInputHandler {
-
- /**
- * The FOUserAgent for this process
- */
- protected FOUserAgent foUserAgent;
-
- /**
- * The Font information relevant for this document
- */
- protected FontInfo fontInfo;
-
- /** Logger for FOInputHandler-related messages **/
- protected static Log logger = LogFactory.getLog(FOInputHandler.class);
-
- /**
- * The current set of id's in the FO tree.
- * This is used so we know if the FO tree contains duplicates.
- */
- private Set idReferences = new HashSet();
-
- /**
- * Main constructor
- * @param FOUserAgent the apps.FOUserAgent instance for this process
- */
- public FOInputHandler(FOUserAgent foUserAgent) {
- this.foUserAgent = foUserAgent;
- this.fontInfo = new FontInfo();
- }
-
- /**
- * Retuns the set of ID references.
- * @return the ID references
- */
- public Set getIDReferences() {
- return idReferences;
- }
-
- /**
- * Returns the Commons-Logging instance for this class
- * @return The Commons-Logging instance
- */
- protected Log getLogger(Log logger) {
- return logger;
- }
-
- /**
- * Returns the User Agent object associated with this FOInputHandler.
- * @return the User Agent object
- */
- public FOUserAgent getUserAgent() {
- return foUserAgent;
- }
-
- /**
- * Retrieve the font information for this document
- * @return the FontInfo instance for this document
- */
- public FontInfo getFontInfo() {
- return this.fontInfo;
- }
-
- /**
- * This method is called to indicate the start of a new document run.
- * @throws SAXException In case of a problem
- */
- public void startDocument() throws SAXException {
- }
-
- /**
- * This method is called to indicate the end of a document run.
- * @throws SAXException In case of a problem
- */
- public void endDocument() throws SAXException {
- }
-
- /**
- *
- * @param pageSeq PageSequence that is starting.
- */
- public void startPageSequence(PageSequence pageSeq) {
- }
-
- /**
- * @param pageSeq PageSequence that is ending.
- */
- public void endPageSequence(PageSequence pageSeq) {
- }
-
- /**
- *
- * @param pagenum PageNumber that is starting.
- */
- public void startPageNumber(PageNumber pagenum) {
- }
-
- /**
- *
- * @param pagenum PageNumber that is ending.
- */
- public void endPageNumber(PageNumber pagenum) {
- }
-
- /**
- * This method is called to indicate the start of a new fo:flow or fo:static-content.
- * This method also handles fo:static-content tags, because the StaticContent class
- * is derived from the Flow class.
- *
- * @param fl Flow that is starting.
- */
- public void startFlow(Flow fl) {
- }
-
- /**
- *
- * @param fl Flow that is ending.
- */
- public void endFlow(Flow fl) {
- }
-
- /**
- *
- * @param bl Block that is starting.
- */
- public void startBlock(Block bl) {
- }
-
- /**
- *
- * @param bl Block that is ending.
- */
- public void endBlock(Block bl) {
- }
-
- /**
- *
- * @param inl Inline that is starting.
- */
- public void startInline(Inline inl) {
- }
-
- /**
- *
- * @param inl Inline that is ending.
- */
- public void endInline(Inline inl) {
- }
-
- // Tables
- /**
- *
- * @param tbl Table that is starting.
- */
- public void startTable(Table tbl) {
- }
-
- /**
- *
- * @param tbl Table that is ending.
- */
- 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) {
- }
-
- /**
- *
- * @param th TableBody that is starting;
- */
- public void startHeader(TableBody th) {
- }
-
- /**
- *
- * @param th TableBody that is ending.
- */
- public void endHeader(TableBody th) {
- }
-
- /**
- *
- * @param tf TableFooter that is starting.
- */
- public void startFooter(TableBody tf) {
- }
-
- /**
- *
- * @param tf TableFooter that is ending.
- */
- public void endFooter(TableBody tf) {
- }
-
- /**
- *
- * @param tb TableBody that is starting.
- */
- public void startBody(TableBody tb) {
- }
-
- /**
- *
- * @param tb TableBody that is ending.
- */
- public void endBody(TableBody tb) {
- }
-
- /**
- *
- * @param tr TableRow that is starting.
- */
- public void startRow(TableRow tr) {
- }
-
- /**
- *
- * @param tr TableRow that is ending.
- */
- public void endRow(TableRow tr) {
- }
-
- /**
- *
- * @param tc TableCell that is starting.
- */
- public void startCell(TableCell tc) {
- }
-
- /**
- *
- * @param tc TableCell that is ending.
- */
- public void endCell(TableCell tc) {
- }
-
-
- // Lists
- /**
- *
- * @param lb ListBlock that is starting.
- */
- public void startList(ListBlock lb) {
- }
-
- /**
- *
- * @param lb ListBlock that is ending.
- */
- public void endList(ListBlock lb) {
- }
-
- /**
- *
- * @param li ListItem that is starting.
- */
- public void startListItem(ListItem li) {
- }
-
- /**
- *
- * @param li ListItem that is ending.
- */
- public void endListItem(ListItem li) {
- }
-
- /**
- * Process start of a ListLabel.
- */
- public void startListLabel() {
- }
-
- /**
- * Process end of a ListLabel.
- */
- public void endListLabel() {
- }
-
- /**
- * Process start of a ListBody.
- */
- public void startListBody() {
- }
-
- /**
- * Process end of a ListBody.
- */
- public void endListBody() {
- }
-
- // Static Regions
- /**
- * Process start of a Static.
- */
- public void startStatic() {
- }
-
- /**
- * Process end of a Static.
- */
- public void endStatic() {
- }
-
-
- /**
- * Process start of a Markup.
- */
- public void startMarkup() {
- }
-
- /**
- * Process end of a Markup.
- */
- public void endMarkup() {
- }
-
- /**
- * Process start of a Link.
- * @param basicLink BasicLink that is ending
- */
- public void startLink(BasicLink basicLink) {
- }
-
- /**
- * Process end of a Link.
- */
- public void endLink() {
- }
-
- /**
- * Process an ExternalGraphic.
- * @param eg ExternalGraphic to process.
- */
- public void image(ExternalGraphic eg) {
- }
-
- /**
- * Process a pageRef.
- */
- public void pageRef() {
- }
-
- /**
- * Process an InstreamForeignObject.
- * @param ifo InstreamForeignObject to process.
- */
- public void foreignObject(InstreamForeignObject ifo) {
- }
-
- /**
- * Process the start of a footnote.
- * @param footnote Footnote that is starting
- */
- public void startFootnote(Footnote footnote) {
- }
-
- /**
- * Process the ending of a footnote.
- * @param footnote Footnote that is ending
- */
- public void endFootnote(Footnote footnote) {
- }
-
- /**
- * Process the start of a footnote body.
- * @param body FootnoteBody that is starting
- */
- public void startFootnoteBody(FootnoteBody body) {
- }
-
- /**
- * Process the ending of a footnote body.
- * @param body FootnoteBody that is ending
- */
- public void endFootnoteBody(FootnoteBody body) {
- }
-
- /**
- * Process a Leader.
- * @param l Leader to process.
- */
- public void leader(Leader l) {
- }
-
- /**
- * Process character data.
- * @param data Array of characters to process.
- * @param start Offset for characters to process.
- * @param length Portion of array to process.
- */
- public void characters(char data[], int start, int length) {
- }
-
-}
-
protected static String FO_URI = FOElementMapping.URI;
/**
- * FOInputHandler that handles FO events occurring
+ * FOEventHandler that handles FO events occurring
* during FO Tree processing.
*/
- protected static FOInputHandler foInputHandler = null;
+ protected static FOEventHandler foEventHandler = null;
/** Parent FO node */
protected FONode parent;
}
/**
- * Sets the FOInputHandler that the FOTree processing fires events to
- * @param inputHandler the FOInputHandler subclass to send FO events to
+ * Sets the FOEventHandler that the FOTree processing fires events to
+ * @param eventHandler the FOEventHandler subclass to send FO events to
*/
- public static void setFOInputHandler(FOInputHandler inputHandler) {
- FONode.foInputHandler = inputHandler;
+ public static void setFOEventHandler(FOEventHandler eventHandler) {
+ FONode.foEventHandler = eventHandler;
}
/**
* Recursively goes up the FOTree hierarchy until the fo:root is found,
- * which returns the parent FOInputHandler.
- * @return the FOInputHandler object that is the parent of the FO Tree
+ * which returns the parent FOEventHandler.
+ * @return the FOEventHandler object that is the parent of the FO Tree
*/
- public FOInputHandler getFOInputHandler() {
- return FONode.foInputHandler;
+ public FOEventHandler getFOEventHandler() {
+ return FONode.foEventHandler;
}
/**
* @return FOUserAgent
*/
public FOUserAgent getUserAgent() {
- return getFOInputHandler().getUserAgent();
+ return getFOEventHandler().getUserAgent();
}
/**
* The class that handles formatting and rendering to a stream
* (mark-fop@inomial.com)
*/
- private FOInputHandler foInputHandler;
+ private FOEventHandler foEventHandler;
/** The SAX locator object managing the line and column counters */
private Locator locator;
}
if (renderType == Constants.RENDER_MIF) {
- foInputHandler = new MIFHandler(foUserAgent, stream);
+ foEventHandler = new MIFHandler(foUserAgent, stream);
} else if (renderType == Constants.RENDER_RTF) {
- foInputHandler = new RTFHandler(foUserAgent, stream);
+ foEventHandler = new RTFHandler(foUserAgent, stream);
} else {
if (renderType < Constants.RENDER_MIN_CONST
|| renderType > Constants.RENDER_MAX_CONST) {
"Invalid render ID#" + renderType);
}
- foInputHandler = new AreaTreeHandler(foUserAgent, renderType,
+ foEventHandler = new AreaTreeHandler(foUserAgent, renderType,
stream);
}
*/
public void startDocument() throws SAXException {
rootFObj = null; // allows FOTreeBuilder to be reused
- FONode.setFOInputHandler(foInputHandler);
+ FONode.setFOEventHandler(foEventHandler);
if (log.isDebugEnabled()) {
log.debug("Building formatting object tree");
}
- foInputHandler.startDocument();
+ foEventHandler.startDocument();
}
/**
if (log.isDebugEnabled()) {
log.debug("Parsing of document complete");
}
- foInputHandler.endDocument();
+ foEventHandler.endDocument();
}
/**
public void reset() {
currentFObj = null;
rootFObj = null;
- foInputHandler = null;
+ foEventHandler = null;
}
}
if (prop != null) {
String str = prop.getString();
if (str != null && !str.equals("")) {
- Set idrefs = getFOInputHandler().getIDReferences();
+ Set idrefs = getFOEventHandler().getIDReferences();
if (!idrefs.contains(str)) {
id = str;
idrefs.add(id);
if (textInfo == null) {
// Really only need one of these, but need to get fontInfo
// stored in propMgr for later use.
- propMgr.setFontInfo(getFOInputHandler().getFontInfo());
- textInfo = propMgr.getTextLayoutProps(getFOInputHandler().getFontInfo());
+ propMgr.setFontInfo(getFOEventHandler().getFontInfo());
+ textInfo = propMgr.getTextLayoutProps(getFOEventHandler().getFontInfo());
}
FOText ft = new FOText(data, start, length, textInfo, this);
ft.setLocator(locator);
- getFOInputHandler().characters(ft.ca, ft.startIndex, ft.endIndex);
+ getFOEventHandler().characters(ft.ca, ft.startIndex, ft.endIndex);
addChildNode(ft);
}
"internal-destination must be specified.");
}
- getFOInputHandler().startLink(this);
+ getFOEventHandler().startLink(this);
}
/**
*/
protected void endOfNode() throws SAXParseException {
super.endOfNode();
- getFOInputHandler().endLink();
+ getFOEventHandler().endLink();
}
/**
this.blockOrphans =
this.propertyList.get(PR_ORPHANS).getNumber().intValue();
- getFOInputHandler().startBlock(this);
+ getFOEventHandler().startBlock(this);
}
/**
*/
protected void endOfNode() throws SAXParseException {
handleWhiteSpace();
- getFOInputHandler().endBlock(this);
+ getFOEventHandler().endBlock(this);
}
private void handleWhiteSpace() {
*/
protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
- getFOInputHandler().image(this);
+ getFOEventHandler().image(this);
}
/**
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
*/
protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
- getFOInputHandler().startFootnote(this);
+ getFOEventHandler().startFootnote(this);
}
/**
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
if (inlineFO == null || footnoteBody == null) {
missingChildElementError("(inline,footnote-body)");
}
- getFOInputHandler().endFootnote(this);
+ getFOEventHandler().endFootnote(this);
}
/**
*/
protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
- getFOInputHandler().startFootnoteBody(this);
+ getFOEventHandler().startFootnoteBody(this);
}
/**
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
if (childNodes == null) {
missingChildElementError("(%block;)+");
}
- getFOInputHandler().endFootnoteBody(this);
+ getFOEventHandler().endFootnoteBody(this);
}
/**
}
}
- getFOInputHandler().startInline(this);
+ getFOEventHandler().startInline(this);
}
/**
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
- getFOInputHandler().endInline(this);
+ getFOEventHandler().endInline(this);
}
/**
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
*/
private void setup() {
// Common Font Properties
- this.fontState = propMgr.getFontState(getFOInputHandler().getFontInfo());
+ this.fontState = propMgr.getFontState(getFOEventHandler().getFontInfo());
// color properties
ColorType c = this.propertyList.get(PR_COLOR).getColorType();
*/
protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
- getFOInputHandler().startList(this);
+ getFOEventHandler().startList(this);
}
/**
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
if (!hasListItem) {
missingChildElementError("marker* (list-item)+");
}
- getFOInputHandler().endList(this);
+ getFOEventHandler().endList(this);
}
/**
*/
protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
- getFOInputHandler().startListItem(this);
+ getFOEventHandler().startListItem(this);
}
/**
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
if (label == null || body == null) {
missingChildElementError("marker* (list-item-label,list-item-body)");
}
- getFOInputHandler().endListItem(this);
+ getFOEventHandler().endListItem(this);
}
/**
*/
protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
- getFOInputHandler().startListLabel();
+ getFOEventHandler().startListLabel();
/*
* For calculating the lineage - The fo:list-item-label formatting object
* does not generate any areas. The fo:list-item-label formatting object
protected void endOfNode() throws SAXParseException {
super.endOfNode();
- getFOInputHandler().endListLabel();
+ getFOEventHandler().endListLabel();
}
public String getName() {
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
super.addProperties(attlist);
// Common Font Properties
- this.fontState = propMgr.getFontState(getFOInputHandler().getFontInfo());
+ this.fontState = propMgr.getFontState(getFOEventHandler().getFontInfo());
ColorType c = this.propertyList.get(PR_COLOR).getColorType();
this.red = c.getRed();
this.blue = c.getBlue();
this.wrapOption = getPropEnum(PR_WRAP_OPTION);
- getFOInputHandler().startPageNumber(this);
+ getFOEventHandler().startPageNumber(this);
}
/**
}
protected void endOfNode() throws SAXParseException {
- getFOInputHandler().endPageNumber(this);
+ getFOEventHandler().endPageNumber(this);
}
/**
== TableOmitHeaderAtBreak.TRUE;
this.omitFooterAtBreak = getPropEnum(PR_TABLE_OMIT_FOOTER_AT_BREAK)
== TableOmitFooterAtBreak.TRUE;
- getFOInputHandler().startTable(this);
+ getFOEventHandler().startTable(this);
}
protected void endOfNode() throws SAXParseException {
- getFOInputHandler().endTable(this);
+ getFOEventHandler().endTable(this);
}
/**
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
this.spaceAfter = getPropLength(PR_SPACE_AFTER | CP_OPTIMUM);
this.backgroundColor =
this.propertyList.get(PR_BACKGROUND_COLOR).getColorType();
- getFOInputHandler().startBody(this);
+ getFOEventHandler().startBody(this);
}
protected void endOfNode() throws SAXParseException {
- getFOInputHandler().endBody(this);
+ getFOEventHandler().endBody(this);
}
/**
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
}
this.minCellHeight = getPropLength(PR_HEIGHT);
- getFOInputHandler().startCell(this);
+ getFOEventHandler().startCell(this);
}
/**
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
if (!blockItemFound) {
missingChildElementError("marker* (%block;)+");
}
- getFOInputHandler().endCell(this);
+ getFOEventHandler().endCell(this);
}
/**
this.propertyList.get(PR_BACKGROUND_COLOR).getColorType();
columnWidth = this.propertyList.get(PR_COLUMN_WIDTH).getLength();
- getFOInputHandler().startColumn(this);
+ getFOEventHandler().startColumn(this);
}
/**
* @see org.apache.fop.fo.FONode#endOfNode
*/
protected void endOfNode() throws SAXParseException {
- getFOInputHandler().endColumn(this);
+ getFOEventHandler().endColumn(this);
}
/**
*/
protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
- getFOInputHandler().startRow(this);
+ getFOEventHandler().startRow(this);
}
protected void endOfNode() throws SAXParseException {
- getFOInputHandler().endRow(this);
+ getFOEventHandler().endRow(this);
}
/**
missingPropertyError("flow-name");
}
- getFOInputHandler().startFlow(this);
+ getFOEventHandler().startFlow(this);
}
/**
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
if (!blockItemFound) {
missingChildElementError("marker* (%block;)+");
}
- getFOInputHandler().endFlow(this);
+ getFOEventHandler().endFlow(this);
}
/**
missingChildElementError("(title?,static-content*,flow)");
}
- getFOInputHandler().endPageSequence(this);
+ getFOEventHandler().endPageSequence(this);
}
/**
*/
private void startStructuredPageSequence() {
if (!sequenceStarted) {
- getFOInputHandler().startPageSequence(this);
+ getFOEventHandler().startPageSequence(this);
sequenceStarted = true;
}
}
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.extensions.ExtensionElementMapping;
import org.apache.fop.fo.extensions.Bookmarks;
-import org.apache.fop.fo.FOInputHandler;
+import org.apache.fop.fo.FOEventHandler;
/**
* The fo:root formatting object. Contains page masters, page-sequences.
/**
* Make sure content model satisfied, if so then tell the
- * FOInputHandler that we are at the end of the flow.
+ * FOEventHandler that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void endOfNode() throws SAXParseException {
if (childNodes == null) {
missingChildElementError("(%block;)+");
}
- getFOInputHandler().endFlow(this);
+ getFOEventHandler().endFlow(this);
}
/**
proxyLMiter = new ProxyLMiter();
userAgent = inBlock.getUserAgent();
setBlockTextInfo(inBlock.getPropertyManager().getTextLayoutProps(
- inBlock.getFOInputHandler().getFontInfo()));
+ inBlock.getFOEventHandler().getFontInfo()));
}
private void setBlockTextInfo(TextInfo ti) {
setCurrentArea(inline);
textInfo = node.getPropertyManager().getTextLayoutProps
- (node.getFOInputHandler().getFontInfo());
+ (node.getFOEventHandler().getFontInfo());
SpaceVal ls = textInfo.letterSpacing;
letterSpaceIPD = new MinOptMax(ls.getSpace().min,
ls.getSpace().opt,
*/
public PageNumberCitationLayoutManager(PageNumberCitation node) {
super(node);
- font = node.getPropertyManager().getFontState(node.getFOInputHandler().getFontInfo());
+ font = node.getPropertyManager().getFontState(node.getFOEventHandler().getFontInfo());
pncNode = node;
}
import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.Constants;
-import org.apache.fop.fo.FOInputHandler;
+import org.apache.fop.fo.FOEventHandler;
import org.apache.fop.fo.flow.BasicLink;
import org.apache.fop.fo.flow.Block;
import org.apache.fop.fo.flow.ExternalGraphic;
* the FO Tree sent to this structure handler.
* This builds an MIF file and writes it to the output.
*/
-public class MIFHandler extends FOInputHandler {
+public class MIFHandler extends FOEventHandler {
/** the MIFFile instance */
protected MIFFile mifFile;
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startDocument()
+ * @see org.apache.fop.fo.FOEventHandler#startDocument()
*/
public void startDocument() throws SAXException {
mifFile = new MIFFile();
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endDocument()
+ * @see org.apache.fop.fo.FOEventHandler#endDocument()
*/
public void endDocument() throws SAXException {
// finish all open elements
* 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.FOInputHandler
+ * @see org.apache.fop.fo.FOEventHandler
*/
public void startPageSequence(PageSequence pageSeq) {
// get the layout master set
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endPageSequence(PageSequence)
+ * @see org.apache.fop.fo.FOEventHandler#endPageSequence(PageSequence)
*/
public void endPageSequence(PageSequence pageSeq) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startFlow(Flow)
+ * @see org.apache.fop.fo.FOEventHandler#startFlow(Flow)
*/
public void startFlow(Flow fl) {
// start text flow in body region
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endFlow(Flow)
+ * @see org.apache.fop.fo.FOEventHandler#endFlow(Flow)
*/
public void endFlow(Flow fl) {
textFlow.finish(true);
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startBlock(Block)
+ * @see org.apache.fop.fo.FOEventHandler#startBlock(Block)
*/
public void startBlock(Block bl) {
para = new MIFElement("Para");
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endBlock(Block)
+ * @see org.apache.fop.fo.FOEventHandler#endBlock(Block)
*/
public void endBlock(Block bl) {
para.finish(true);
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startTable(Table)
+ * @see org.apache.fop.fo.FOEventHandler#startTable(Table)
*/
public void startTable(Table tbl) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endTable(Table)
+ * @see org.apache.fop.fo.FOEventHandler#endTable(Table)
*/
public void endTable(Table tbl) {
}
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startHeader(TableBody)
+ * @see org.apache.fop.fo.FOEventHandler#startHeader(TableBody)
*/
public void startHeader(TableBody th) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endHeader(TableBody)
+ * @see org.apache.fop.fo.FOEventHandler#endHeader(TableBody)
*/
public void endHeader(TableBody th) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startFooter(TableBody)
+ * @see org.apache.fop.fo.FOEventHandler#startFooter(TableBody)
*/
public void startFooter(TableBody tf) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endFooter(TableBody)
+ * @see org.apache.fop.fo.FOEventHandler#endFooter(TableBody)
*/
public void endFooter(TableBody tf) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startBody(TableBody)
+ * @see org.apache.fop.fo.FOEventHandler#startBody(TableBody)
*/
public void startBody(TableBody tb) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endBody(TableBody)
+ * @see org.apache.fop.fo.FOEventHandler#endBody(TableBody)
*/
public void endBody(TableBody tb) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startRow(TableRow)
+ * @see org.apache.fop.fo.FOEventHandler#startRow(TableRow)
*/
public void startRow(TableRow tr) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endRow(TableRow)
+ * @see org.apache.fop.fo.FOEventHandler#endRow(TableRow)
*/
public void endRow(TableRow tr) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startCell(TableCell)
+ * @see org.apache.fop.fo.FOEventHandler#startCell(TableCell)
*/
public void startCell(TableCell tc) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endCell(TableCell)
+ * @see org.apache.fop.fo.FOEventHandler#endCell(TableCell)
*/
public void endCell(TableCell tc) {
}
// Lists
/**
- * @see org.apache.fop.fo.FOInputHandler#startList(ListBlock)
+ * @see org.apache.fop.fo.FOEventHandler#startList(ListBlock)
*/
public void startList(ListBlock lb) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endList(ListBlock)
+ * @see org.apache.fop.fo.FOEventHandler#endList(ListBlock)
*/
public void endList(ListBlock lb) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startListItem(ListItem)
+ * @see org.apache.fop.fo.FOEventHandler#startListItem(ListItem)
*/
public void startListItem(ListItem li) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endListItem(ListItem)
+ * @see org.apache.fop.fo.FOEventHandler#endListItem(ListItem)
*/
public void endListItem(ListItem li) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startListLabel()
+ * @see org.apache.fop.fo.FOEventHandler#startListLabel()
*/
public void startListLabel() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endListLabel()
+ * @see org.apache.fop.fo.FOEventHandler#endListLabel()
*/
public void endListLabel() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startListBody()
+ * @see org.apache.fop.fo.FOEventHandler#startListBody()
*/
public void startListBody() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endListBody()
+ * @see org.apache.fop.fo.FOEventHandler#endListBody()
*/
public void endListBody() {
}
// Static Regions
/**
- * @see org.apache.fop.fo.FOInputHandler#startStatic()
+ * @see org.apache.fop.fo.FOEventHandler#startStatic()
*/
public void startStatic() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endStatic()
+ * @see org.apache.fop.fo.FOEventHandler#endStatic()
*/
public void endStatic() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startMarkup()
+ * @see org.apache.fop.fo.FOEventHandler#startMarkup()
*/
public void startMarkup() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endMarkup()
+ * @see org.apache.fop.fo.FOEventHandler#endMarkup()
*/
public void endMarkup() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startLink(BasicLink basicLink)
+ * @see org.apache.fop.fo.FOEventHandler#startLink(BasicLink basicLink)
*/
public void startLink(BasicLink basicLink) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endLink()
+ * @see org.apache.fop.fo.FOEventHandler#endLink()
*/
public void endLink() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#image(ExternalGraphic)
+ * @see org.apache.fop.fo.FOEventHandler#image(ExternalGraphic)
*/
public void image(ExternalGraphic eg) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#pageRef()
+ * @see org.apache.fop.fo.FOEventHandler#pageRef()
*/
public void pageRef() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#foreignObject(InstreamForeignObject)
+ * @see org.apache.fop.fo.FOEventHandler#foreignObject(InstreamForeignObject)
*/
public void foreignObject(InstreamForeignObject ifo) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startFootnote(Footnote)
+ * @see org.apache.fop.fo.FOEventHandler#startFootnote(Footnote)
*/
public void startFootnote(Footnote footnote) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endFootnote(Footnote)
+ * @see org.apache.fop.fo.FOEventHandler#endFootnote(Footnote)
*/
public void endFootnote(Footnote footnote) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startFootnoteBody(FootnoteBody)
+ * @see org.apache.fop.fo.FOEventHandler#startFootnoteBody(FootnoteBody)
*/
public void startFootnoteBody(FootnoteBody body) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endFootnoteBody(FootnoteBody)
+ * @see org.apache.fop.fo.FOEventHandler#endFootnoteBody(FootnoteBody)
*/
public void endFootnoteBody(FootnoteBody body) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#leader(Leader)
+ * @see org.apache.fop.fo.FOEventHandler#leader(Leader)
*/
public void leader(Leader l) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#characters(char[], int, int)
+ * @see org.apache.fop.fo.FOEventHandler#characters(char[], int, int)
*/
public void characters(char data[], int start, int length) {
if (para != null) {
import org.apache.commons.logging.Log;
import org.apache.fop.apps.FOPException;
import org.apache.fop.apps.FOUserAgent;
-import org.apache.fop.fo.FOInputHandler;
+import org.apache.fop.fo.FOEventHandler;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.flow.BasicLink;
import org.apache.fop.fo.flow.Block;
* @author Peter Herweg <pherweg@web.de>
* @author Andreas Putz <a.putz@skynamics.com>
*/
-public class RTFHandler extends FOInputHandler {
+public class RTFHandler extends FOEventHandler {
private RtfFile rtfFile;
private final OutputStream os;
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startDocument()
+ * @see org.apache.fop.fo.FOEventHandler#startDocument()
*/
public void startDocument() throws SAXException {
// TODO sections should be created
rtfFile = new RtfFile(new OutputStreamWriter(os));
docArea = rtfFile.startDocumentArea();
} catch (IOException ioe) {
- // TODO could we throw Exception in all FOInputHandler events?
+ // TODO could we throw Exception in all FOEventHandler events?
throw new SAXException(ioe);
}
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endDocument()
+ * @see org.apache.fop.fo.FOEventHandler#endDocument()
*/
public void endDocument() throws SAXException {
try {
rtfFile.flush();
} catch (IOException ioe) {
- // TODO could we throw Exception in all FOInputHandler events?
+ // TODO could we throw Exception in all FOEventHandler events?
throw new SAXException(ioe);
}
}
/**
- * @see org.apache.fop.fo.FOInputHandler
+ * @see org.apache.fop.fo.FOEventHandler
*/
public void startPageSequence(PageSequence pageSeq) {
try {
bHeaderSpecified = false;
bFooterSpecified = false;
} catch (IOException ioe) {
- // TODO could we throw Exception in all FOInputHandler events?
+ // TODO could we throw Exception in all FOEventHandler events?
log.error("startPageSequence: " + ioe.getMessage());
//TODO throw new FOPException(ioe);
}
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endPageSequence(PageSequence)
+ * @see org.apache.fop.fo.FOEventHandler#endPageSequence(PageSequence)
*/
public void endPageSequence(PageSequence pageSeq) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startFlow(Flow)
+ * @see org.apache.fop.fo.FOEventHandler#startFlow(Flow)
*/
public void startFlow(Flow fl) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endFlow(Flow)
+ * @see org.apache.fop.fo.FOEventHandler#endFlow(Flow)
*/
public void endFlow(Flow fl) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startBlock(Block)
+ * @see org.apache.fop.fo.FOEventHandler#startBlock(Block)
*/
public void startBlock(Block bl) {
++iNestCount;
textrun.addParagraphBreak();
textrun.pushAttributes(rtfAttr);
} catch (IOException ioe) {
- // TODO could we throw Exception in all FOInputHandler events?
+ // TODO could we throw Exception in all FOEventHandler events?
log.error("startBlock: " + ioe.getMessage());
throw new RuntimeException("IOException: " + ioe);
} catch (Exception e) {
/**
- * @see org.apache.fop.fo.FOInputHandler#endBlock(Block)
+ * @see org.apache.fop.fo.FOEventHandler#endBlock(Block)
*/
public void endBlock(Block bl) {
--iNestCount;
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startTable(Table)
+ * @see org.apache.fop.fo.FOEventHandler#startTable(Table)
*/
public void startTable(Table tbl) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endTable(Table)
+ * @see org.apache.fop.fo.FOEventHandler#endTable(Table)
*/
public void endTable(Table tbl) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startHeader(TableBody)
+ * @see org.apache.fop.fo.FOEventHandler#startHeader(TableBody)
*/
public void startHeader(TableBody th) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endHeader(TableBody)
+ * @see org.apache.fop.fo.FOEventHandler#endHeader(TableBody)
*/
public void endHeader(TableBody th) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startFooter(TableBody)
+ * @see org.apache.fop.fo.FOEventHandler#startFooter(TableBody)
*/
public void startFooter(TableBody tf) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endFooter(TableBody)
+ * @see org.apache.fop.fo.FOEventHandler#endFooter(TableBody)
*/
public void endFooter(TableBody tf) {
}
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startBody(TableBody)
+ * @see org.apache.fop.fo.FOEventHandler#startBody(TableBody)
*/
public void startBody(TableBody tb) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endBody(TableBody)
+ * @see org.apache.fop.fo.FOEventHandler#endBody(TableBody)
*/
public void endBody(TableBody tb) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startRow(TableRow)
+ * @see org.apache.fop.fo.FOEventHandler#startRow(TableRow)
*/
public void startRow(TableRow tr) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endRow(TableRow)
+ * @see org.apache.fop.fo.FOEventHandler#endRow(TableRow)
*/
public void endRow(TableRow tr) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startCell(TableCell)
+ * @see org.apache.fop.fo.FOEventHandler#startCell(TableCell)
*/
public void startCell(TableCell tc) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endCell(TableCell)
+ * @see org.apache.fop.fo.FOEventHandler#endCell(TableCell)
*/
public void endCell(TableCell tc) {
if (bDefer) {
// Lists
/**
- * @see org.apache.fop.fo.FOInputHandler#startList(ListBlock)
+ * @see org.apache.fop.fo.FOEventHandler#startList(ListBlock)
*/
public void startList(ListBlock lb) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endList(ListBlock)
+ * @see org.apache.fop.fo.FOEventHandler#endList(ListBlock)
*/
public void endList(ListBlock lb) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startListItem(ListItem)
+ * @see org.apache.fop.fo.FOEventHandler#startListItem(ListItem)
*/
public void startListItem(ListItem li) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endListItem(ListItem)
+ * @see org.apache.fop.fo.FOEventHandler#endListItem(ListItem)
*/
public void endListItem(ListItem li) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startListLabel()
+ * @see org.apache.fop.fo.FOEventHandler#startListLabel()
*/
public void startListLabel() {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endListLabel()
+ * @see org.apache.fop.fo.FOEventHandler#endListLabel()
*/
public void endListLabel() {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startListBody()
+ * @see org.apache.fop.fo.FOEventHandler#startListBody()
*/
public void startListBody() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endListBody()
+ * @see org.apache.fop.fo.FOEventHandler#endListBody()
*/
public void endListBody() {
}
// Static Regions
/**
- * @see org.apache.fop.fo.FOInputHandler#startStatic()
+ * @see org.apache.fop.fo.FOEventHandler#startStatic()
*/
public void startStatic() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endStatic()
+ * @see org.apache.fop.fo.FOEventHandler#endStatic()
*/
public void endStatic() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startMarkup()
+ * @see org.apache.fop.fo.FOEventHandler#startMarkup()
*/
public void startMarkup() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endMarkup()
+ * @see org.apache.fop.fo.FOEventHandler#endMarkup()
*/
public void endMarkup() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startLink(BasicLink basicLink)
+ * @see org.apache.fop.fo.FOEventHandler#startLink(BasicLink basicLink)
*/
public void startLink(BasicLink basicLink) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endLink()
+ * @see org.apache.fop.fo.FOEventHandler#endLink()
*/
public void endLink() {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#image(ExternalGraphic)
+ * @see org.apache.fop.fo.FOEventHandler#image(ExternalGraphic)
*/
public void image(ExternalGraphic eg) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#pageRef()
+ * @see org.apache.fop.fo.FOEventHandler#pageRef()
*/
public void pageRef() {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#foreignObject(InstreamForeignObject)
+ * @see org.apache.fop.fo.FOEventHandler#foreignObject(InstreamForeignObject)
*/
public void foreignObject(InstreamForeignObject ifo) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startFootnote(Footnote)
+ * @see org.apache.fop.fo.FOEventHandler#startFootnote(Footnote)
*/
public void startFootnote(Footnote footnote) {
if (bDefer) {
builderContext.pushContainer(rtfFootnote);
} catch (IOException ioe) {
- // TODO could we throw Exception in all FOInputHandler events?
+ // TODO could we throw Exception in all FOEventHandler events?
log.error("startFootnote: " + ioe.getMessage());
throw new RuntimeException("IOException: " + ioe);
} catch (Exception e) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endFootnote(Footnote)
+ * @see org.apache.fop.fo.FOEventHandler#endFootnote(Footnote)
*/
public void endFootnote(Footnote footnote) {
if (bDefer) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#startFootnoteBody(FootnoteBody)
+ * @see org.apache.fop.fo.FOEventHandler#startFootnoteBody(FootnoteBody)
*/
public void startFootnoteBody(FootnoteBody body) {
if (bDefer) {
rtfFootnote.startBody();
} catch (IOException ioe) {
- // TODO could we throw Exception in all FOInputHandler events?
+ // TODO could we throw Exception in all FOEventHandler events?
log.error("startFootnoteBody: " + ioe.getMessage());
throw new RuntimeException("IOException: " + ioe);
} catch (Exception e) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#endFootnoteBody(FootnoteBody)
+ * @see org.apache.fop.fo.FOEventHandler#endFootnoteBody(FootnoteBody)
*/
public void endFootnoteBody(FootnoteBody body) {
if (bDefer) {
rtfFootnote.endBody();
} catch (IOException ioe) {
- // TODO could we throw Exception in all FOInputHandler events?
+ // TODO could we throw Exception in all FOEventHandler events?
log.error("endFootnoteBody: " + ioe.getMessage());
throw new RuntimeException("IOException: " + ioe);
} catch (Exception e) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#leader(Leader)
+ * @see org.apache.fop.fo.FOEventHandler#leader(Leader)
*/
public void leader(Leader l) {
}
/**
- * @see org.apache.fop.fo.FOInputHandler#characters(char[], int, int)
+ * @see org.apache.fop.fo.FOEventHandler#characters(char[], int, int)
*/
public void characters(char[] data, int start, int length) {
if (bDefer) {
RtfTextrun textrun = container.getTextrun();
textrun.addString(new String(data, start, length-start));
} catch (IOException ioe) {
- // FIXME could we throw Exception in all FOInputHandler events?
+ // FIXME could we throw Exception in all FOEventHandler events?
log.error("characters: " + ioe.getMessage());
throw new RuntimeException(ioe.getMessage());
} catch (Exception e) {