Class RtfHeader
- 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.RtfHeader
-
class RtfHeader extends RtfContainer
RTF file header, contains style, font and other document-level information.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch), Andreas Putz (a.putz@skynamics.com), and Marc Wilhelm Kuester.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCHARSETprivate java.util.MapuserProperties-
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidwrite(java.lang.String toWrite)write directly to our Writer TODO should check that this done at the right point, or even better, store what is written here to render it in writeRtfContent.private voidwriteFootnoteProperties()write properties for footnote handlingprotected voidwriteRtfContent()Overridden to write our own data before our children's data(package private) voidwriteRtfString(java.lang.String toWrite)write to our Writer using an RtfStringConverterprivate voidwriteUserProperties()write user properties if any-
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, containsText, dump, findChildren, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString
-
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
-
-
-
Field Detail
-
CHARSET
private static final java.lang.String CHARSET
- See Also:
- Constant Field Values
-
userProperties
private final java.util.Map userProperties
-
-
Constructor Detail
-
RtfHeader
RtfHeader(RtfFile f, java.io.Writer w) throws java.io.IOException
Create an RTF header- Throws:
java.io.IOException
-
-
Method Detail
-
writeRtfContent
protected void writeRtfContent() throws java.io.IOExceptionOverridden to write our own data before our children's data- Overrides:
writeRtfContentin classRtfContainer- Throws:
java.io.IOException- for I/O problems
-
writeUserProperties
private void writeUserProperties() throws java.io.IOExceptionwrite user properties if any- Throws:
java.io.IOException
-
write
void write(java.lang.String toWrite) throws java.io.IOExceptionwrite directly to our Writer TODO should check that this done at the right point, or even better, store what is written here to render it in writeRtfContent. <-- it is for the color table- Throws:
java.io.IOException
-
writeRtfString
void writeRtfString(java.lang.String toWrite) throws java.io.IOExceptionwrite to our Writer using an RtfStringConverter- Throws:
java.io.IOException
-
writeFootnoteProperties
private void writeFootnoteProperties() throws java.io.IOExceptionwrite properties for footnote handling- Throws:
java.io.IOException
-
-