| java.lang.Object com.lowagie.text.rtf.direct.RtfFontTableParser
RtfFontTableParser | public class RtfFontTableParser (Code) | | The RtfFontTableParser handles the events generated by the
RtfTokeniser while the RTF font table is parsed.
version: $Revision: 2382 $ author: Mark Hall (mhall@edu.uni-klu.ac.at) |
Method Summary | |
public void | handleCloseGroup(int groupLevel) Handles closing of a group during parsing. | public void | handleCtrlWord(String ctrlWord, int groupLevel) Handles the font number control word. | public void | handleText(String text, int groupLevel) Handles the font name. |
RtfFontTableParser | public RtfFontTableParser(RtfImportHeader importHeader)(Code) | | Constructs a new RtfFontTableParser.
Parameters: importHeader - The RtfImportHeader to add font mappings to. |
handleCloseGroup | public void handleCloseGroup(int groupLevel)(Code) | | Handles closing of a group during parsing. If the group nesting level
is 3 then an individual font definition was closed and thus if the
font number and font name are set, they can be added to the mappings.
Parameters: groupLevel - The current group nesting level. |
handleCtrlWord | public void handleCtrlWord(String ctrlWord, int groupLevel)(Code) | | Handles the font number control word. Only relevant if the
group nesting level is 3.
Parameters: ctrlWord - The control word to handle. Parameters: groupLevel - The current group nesting level. |
handleText | public void handleText(String text, int groupLevel)(Code) | | Handles the font name. The font name must be ended by a
semicolon and must be at group nesting level 3.
Parameters: text - The font name to handle. Parameters: groupLevel - The current group nesting level. |
|
|