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.
character
public void character(Character c)
Process a Character.
c
- Character to process.
characters
public void characters(data[] ,
int start,
int length)
Process character data.
start
- Offset for characters to process.length
- Portion of array to process.
endBlock
public void endBlock(Block bl)
bl
- Block that is ending.
endBlockContainer
public void endBlockContainer(BlockContainer blc)
blc
- BlockContainer that is ending.
endBody
public void endBody(TableBody tb)
tb
- TableBody that is ending.
endCell
public void endCell(TableCell tc)
tc
- TableCell that is ending.
endColumn
public void endColumn(TableColumn tc)
tc
- TableColumn that is ending;
endDocument
public void endDocument()
throws SAXException
This method is called to indicate the end of a document run.
endFlow
public void endFlow(Flow fl)
fl
- Flow that is ending.
endFooter
public void endFooter(TableBody tf)
tf
- TableFooter that is ending.
endFootnote
public void endFootnote(Footnote footnote)
Process the ending of a footnote.
footnote
- Footnote that is ending
endFootnoteBody
public void endFootnoteBody(FootnoteBody body)
Process the ending of a footnote body.
body
- FootnoteBody that is ending
endHeader
public void endHeader(TableBody th)
th
- TableBody that is ending.
endInline
public void endInline(Inline inl)
inl
- Inline that is ending.
endLink
public void endLink()
Process end of a Link.
endList
public void endList(ListBlock lb)
lb
- ListBlock that is ending.
endListBody
public void endListBody()
Process end of a ListBody.
endListItem
public void endListItem(ListItem li)
li
- ListItem that is ending.
endListLabel
public void endListLabel()
Process end of a ListLabel.
endMarkup
public void endMarkup()
Process end of a Markup.
endPageNumber
public void endPageNumber(PageNumber pagenum)
pagenum
- PageNumber that is ending.
endPageSequence
public void endPageSequence(PageSequence pageSeq)
pageSeq
- PageSequence that is ending.
endRow
public void endRow(TableRow tr)
tr
- TableRow that is ending.
endStatic
public void endStatic()
Process end of a Static.
endTable
public void endTable(Table tbl)
tbl
- Table that is ending.
foreignObject
public void foreignObject(InstreamForeignObject ifo)
Process an InstreamForeignObject.
ifo
- InstreamForeignObject to process.
getFontInfo
public FontInfo getFontInfo()
Retrieve the font information for this document
- the FontInfo instance for this document
getIDReferences
public Set getIDReferences()
Retuns the set of ID references.
getPropertyListMaker
public PropertyListMaker getPropertyListMaker()
Return the propertyListMaker.
getUserAgent
public FOUserAgent getUserAgent()
Returns the User Agent object associated with this FOEventHandler.
getXMLWhiteSpaceHandler
public XMLWhiteSpaceHandler getXMLWhiteSpaceHandler()
Return the XMLWhiteSpaceHandler
image
public void image(ExternalGraphic eg)
Process an ExternalGraphic.
eg
- ExternalGraphic to process.
inMarker
protected boolean inMarker()
Check whether in marker context
leader
public void leader(Leader l)
Process a Leader.
pageRef
public void pageRef()
Process a pageRef.
setPropertyListMaker
public void setPropertyListMaker(PropertyListMaker propertyListMaker)
Set a new propertyListMaker.
startBlock
public void startBlock(Block bl)
bl
- Block that is starting.
startBlockContainer
public void startBlockContainer(BlockContainer blc)
blc
- BlockContainer that is starting.
startBody
public void startBody(TableBody tb)
tb
- TableBody that is starting.
startCell
public void startCell(TableCell tc)
tc
- TableCell that is starting.
startColumn
public void startColumn(TableColumn tc)
tc
- TableColumn that is starting;
startDocument
public void startDocument()
throws SAXException
This method is called to indicate the start of a new document run.
startFlow
public void startFlow(Flow fl)
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.
fl
- Flow that is starting.
startFooter
public void startFooter(TableBody tf)
tf
- TableFooter that is starting.
startFootnote
public void startFootnote(Footnote footnote)
Process the start of a footnote.
footnote
- Footnote that is starting
startFootnoteBody
public void startFootnoteBody(FootnoteBody body)
Process the start of a footnote body.
body
- FootnoteBody that is starting
startHeader
public void startHeader(TableBody th)
th
- TableBody that is starting;
startInline
public void startInline(Inline inl)
inl
- Inline that is starting.
startLink
public void startLink(BasicLink basicLink)
Process start of a Link.
basicLink
- BasicLink that is ending
startList
public void startList(ListBlock lb)
lb
- ListBlock that is starting.
startListBody
public void startListBody()
Process start of a ListBody.
startListItem
public void startListItem(ListItem li)
li
- ListItem that is starting.
startListLabel
public void startListLabel()
Process start of a ListLabel.
startMarkup
public void startMarkup()
Process start of a Markup.
startPageNumber
public void startPageNumber(PageNumber pagenum)
pagenum
- PageNumber that is starting.
startPageSequence
public void startPageSequence(PageSequence pageSeq)
pageSeq
- PageSequence that is starting.
startRow
public void startRow(TableRow tr)
tr
- TableRow that is starting.
startStatic
public void startStatic()
Process start of a Static.
startTable
public void startTable(Table tbl)
tbl
- Table that is starting.
switchMarkerContext
protected void switchMarkerContext(boolean inMarker)
Switch to or from marker context
(used by FOTreeBuilder when processing
a marker)