com.lowagie.text.rtf.document
public class RtfDocumentHeader extends RtfElement
Version: $Version:$
| Field Summary | |
|---|---|
| RtfCodePage | codePage
The code page to use |
| RtfColorList | colorList
Stores all the colors used in the document |
| RtfFontList | fontList
Stores all the fonts used in the document |
| HeaderFooter | footer
The current RtfHeaderFooterGroup for the footer |
| static byte[] | FACING_PAGES
Constant for facing pages |
| HeaderFooter | header
The current RtfHeaderFooterGroup for the header |
| RtfInfoGroup | infoGroup
The information group with author/subject/keywords/title/producer/creationdate data |
| RtfListTable | listTable
Manages List tables |
| RtfPageSetting | pageSetting
The page settings |
| RtfStylesheetList | stylesheetList
Stores all paragraph styles used in the document. |
| static byte[] | TITLE_PAGE
Constant for the title page |
| 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
|
| RtfHeaderFooterGroup | convertHeaderFooter(HeaderFooter hf, int type)
Converts a HeaderFooter into a RtfHeaderFooterGroup. |
| 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
|
| RtfPageSetting | getPageSetting()
Gets the RtfPageSetting object of this RtfDocument
|
| RtfParagraphStyle | getRtfParagraphStyle(String styleName)
Gets the RtfParagraphStyle with the given style name.
|
| protected void | init()
Initialises 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
|
| byte[] | write()
Write the contents of the document header area.
|
| byte[] | writeSectionDefinition()
Writes the section definition data
|
Parameters: doc The RtfDocument this RtfDocumentHeader belongs to
Parameters: rtfInfoElement The RtfInfoElement to add
Parameters: hf The HeaderFooter to convert. type Whether the conversion is being done on a footer or header
Returns: The converted RtfHeaderFooterGroup.
See Also: RtfHeaderFooter RtfHeaderFooterGroup
Parameters: list The RtfList to remove
Parameters: color The RtfColor for which to get the number
Returns: The number of the color
Parameters: font The RtfFont for which to get the number
Returns: The number of the font
Parameters: list The RtfList for which to get the number
Returns: The number of the list
Returns: The RtfPageSetting object
Parameters: styleName The style name of the RtfParagraphStyle to get.
Returns: The RtfParagraphStyle with the given style name or null.
Parameters: rtfParagraphStyle The RtfParagraphStyle to register.
Parameters: footer The HeaderFooter to use as footer
Parameters: header The HeaderFooter to use as header
Returns: A byte array with the contents of the document header area
Returns: A byte array with the section definition data