|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.text.rtf.RtfElement com.lowagie.text.rtf.document.RtfDocumentHeader
public class RtfDocumentHeader
The RtfDocumentHeader contains all classes required for the generation of the document header area.
Field Summary |
---|
Fields inherited from class com.lowagie.text.rtf.RtfElement |
---|
document, inHeader, inTable |
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement |
---|
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR |
Constructor Summary | |
---|---|
protected |
RtfDocumentHeader(RtfDocument doc)
Constructs a RtfDocumentHeader for a RtfDocument |
Method Summary | |
---|---|
void |
addInfoElement(RtfInfoElement rtfInfoElement)
Adds an RtfInfoElement to the list of RtfInfoElements |
void |
freeListNumber(RtfList list)
Removes a RtfList from the list table |
int |
getColorNumber(RtfColor color)
Gets the number of the specified RtfColor |
int |
getFontNumber(RtfFont font)
Gets the number of the specified RtfFont |
int |
getListNumber(RtfList list)
Gets the number of the specified RtfList |
RtfListTable |
getListTable()
Get the RtfListTable object. |
RtfPageSetting |
getPageSetting()
Gets the RtfPageSetting object of this RtfDocument |
RtfParagraphStyle |
getRtfParagraphStyle(java.lang.String styleName)
Gets the RtfParagraphStyle with the given style name. |
protected void |
init()
initializes the RtfDocumentHeader. |
void |
registerParagraphStyle(RtfParagraphStyle rtfParagraphStyle)
Registers the RtfParagraphStyle for further use in the document. |
void |
setFooter(HeaderFooter footer)
Sets the current footer to use |
void |
setHeader(HeaderFooter header)
Sets the current header to use |
void |
writeContent(java.io.OutputStream result)
Writes the contents of the document header area. |
void |
writeSectionDefinition(java.io.OutputStream result)
Writes the section definition data |
Methods inherited from class com.lowagie.text.rtf.RtfElement |
---|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RtfDocumentHeader(RtfDocument doc)
doc
- The RtfDocument this RtfDocumentHeader belongs toMethod Detail |
---|
protected void init()
public void writeContent(java.io.OutputStream result) throws java.io.IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
result
- The OutputStream
to write the content to
java.io.IOException
public void writeSectionDefinition(java.io.OutputStream result)
result
- public int getFontNumber(RtfFont font)
font
- The RtfFont for which to get the number
public int getColorNumber(RtfColor color)
color
- The RtfColor for which to get the number
public int getListNumber(RtfList list)
list
- The RtfList for which to get the number
public RtfParagraphStyle getRtfParagraphStyle(java.lang.String styleName)
styleName
- The style name of the RtfParagraphStyle to get.
public void freeListNumber(RtfList list)
list
- The RtfList to removepublic RtfPageSetting getPageSetting()
public void addInfoElement(RtfInfoElement rtfInfoElement)
rtfInfoElement
- The RtfInfoElement to addpublic void setHeader(HeaderFooter header)
header
- The HeaderFooter to use as headerpublic void setFooter(HeaderFooter footer)
footer
- The HeaderFooter to use as footerpublic void registerParagraphStyle(RtfParagraphStyle rtfParagraphStyle)
rtfParagraphStyle
- The RtfParagraphStyle to register.public RtfListTable getListTable()
RtfListTable
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |