Class RtfBefore
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfBefore
- All Implemented Interfaces:
IRtfExternalGraphicContainer, IRtfParagraphContainer, IRtfTableContainer, IRtfTextrunContainer
The opposite of RtfAfter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRtfBefore attributesstatic final String[]String array of attribute namesFields inherited from class RtfElement
attrib, parent, writer -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseAll()Returns the current RtfTextrun object.newImage()Creates a new image on external graphic base.Close current paragraph, if any, and start a new one with default attributes.newParagraph(RtfAttributes attrs) Close current paragraph, if any, and start a new one with specified attributesclose current table if any and start a new onenewTable(RtfAttributes attrs, ITableColumnsInfo tc) close current table if any and start a new oneprotected voidWrite the attributes for this elementprotected voidCalled before writeRtfContent()protected voidCalled after writeRtfContent()Methods inherited from class RtfContainer
addChild, findChildren, getChildCount, getChildren, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContentMethods inherited from class RtfElement
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
HEADER
-
HEADER_ATTR
String array of attribute names
-
-
Method Details
-
writeMyAttributes
Write the attributes for this element- Throws:
IOException- for I/O problems
-
newParagraph
Description copied from interface:IRtfParagraphContainerClose current paragraph, if any, and start a new one with default attributes.- Specified by:
newParagraphin interfaceIRtfParagraphContainer- Returns:
- new paragraph object
- Throws:
IOException- for I/O problems.
-
newParagraph
Description copied from interface:IRtfParagraphContainerClose current paragraph, if any, and start a new one with specified attributes- Specified by:
newParagraphin interfaceIRtfParagraphContainer- Parameters:
attrs- attributes for new paragraph- Returns:
- new paragraph object
- Throws:
IOException- for I/O problems.
-
newImage
Description copied from interface:IRtfExternalGraphicContainerCreates a new image on external graphic base.- Specified by:
newImagein interfaceIRtfExternalGraphicContainer- Returns:
- RtfExternalGraphic for the new image
- Throws:
IOException- On error
-
writeRtfPrefix
Description copied from class:RtfElementCalled before writeRtfContent()- Overrides:
writeRtfPrefixin classRtfElement- Throws:
IOException- for I/O problems
-
writeRtfSuffix
Description copied from class:RtfElementCalled after writeRtfContent()- Overrides:
writeRtfSuffixin classRtfElement- Throws:
IOException- for I/O problems
-
getAttributes
-
closeAll
- Throws:
IOException
-
newTable
close current table if any and start a new one- Specified by:
newTablein interfaceIRtfTableContainer- Parameters:
attrs- for the Table attributestc- added by Boris Poudérous on july 2002 in order to process number-columns-spanned attribute- Returns:
- new table object
- Throws:
IOException- for I/O problems
-
newTable
close current table if any and start a new one- Specified by:
newTablein interfaceIRtfTableContainer- Parameters:
tc- Table Columns Info- Returns:
- new table object
- Throws:
IOException- for I/O problems
-
getTextrun
Description copied from interface:IRtfTextrunContainerReturns the current RtfTextrun object. Opens a new one if necessary.- Specified by:
getTextrunin interfaceIRtfTextrunContainer- Returns:
- The RtfTextrun object
- Throws:
IOException- Thrown when an IO-problem occurs
-