com.lowagie.text.rtf.document
public class RtfDocumentHeader extends RtfElement
Version: $Id: RtfDocumentHeader.java 3459 2008-05-26 16:27:06Z howard_s $
| 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 |
| RtfGenerator | generator
Generator string in document |
| 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 |
| RtfProtectionSetting | protectionSetting
The protection settings
Author: Howard Shank (hgshank@yahoo.com) |
| 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
|
| RtfListTable | getListTable()
Get the RtfListTable object.
|
| RtfPageSetting | getPageSetting()
Gets the RtfPageSetting object of this RtfDocument
|
| RtfParagraphStyle | getRtfParagraphStyle(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(OutputStream result)
Writes the contents of the document header area. |
| void | writeSectionDefinition(OutputStream result)
Writes the section definition data |
Since: 2.1.1
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
RtfListTable object.
Returns: the ListTable object.
Since: 2.1.3
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
Parameters: result