public class RtfImportMgr
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private Document |
doc
The Document.
|
private java.util.HashMap |
importColorMapping
The HashMap storing the color number mappings.
|
private java.util.HashMap |
importFontMapping
The HashMap storing the font number mappings.
|
private java.util.HashMap |
importListMapping
The HashMap storing the List number mappings.
|
private java.util.HashMap |
importStylesheetListMapping
The HashMap storing the Stylesheet List number mappings.
|
private RtfDocument |
rtfDoc
The RtfDocument to get font and color numbers from.
|
| Constructor and Description |
|---|
RtfImportMgr(RtfDocument rtfDoc,
Document doc)
Constructs a new RtfImportHeader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
importColor(java.lang.String colorNr,
java.awt.Color color)
Imports a color value.
|
boolean |
importFont(java.lang.String fontNr,
java.lang.String fontName)
Imports a font.
|
boolean |
importFont(java.lang.String fontNr,
java.lang.String fontName,
int charset)
Imports a font.
|
boolean |
importFont(java.lang.String fontNr,
java.lang.String fontName,
java.lang.String fontFamily,
int charset)
Imports a font.
|
void |
importList(java.lang.String origListNr,
java.lang.String newListNr)
Imports a List value.
|
boolean |
importStylesheetList(java.lang.String listNr,
List listIn)
Imports a stylesheet list value.
|
java.lang.String |
mapColorNr(java.lang.String colorNr)
Performs the mapping from the original font number to the actual font
number used in the RTF document.
|
java.lang.String |
mapFontNr(java.lang.String fontNr)
Performs the mapping from the original font number to the actual
font number in the resulting RTF document.
|
java.lang.String |
mapListNr(java.lang.String listNr)
Performs the mapping from the original list number to the actual
list number in the resulting RTF document.
|
java.lang.String |
mapStylesheetListNr(java.lang.String listNr)
Performs the mapping from the original stylesheet number to the actual
stylesheet number in the resulting RTF document.
|
private java.util.HashMap importFontMapping
private java.util.HashMap importColorMapping
private java.util.HashMap importStylesheetListMapping
private java.util.HashMap importListMapping
private RtfDocument rtfDoc
private Document doc
public RtfImportMgr(RtfDocument rtfDoc, Document doc)
rtfDoc - The RtfDocument to get font and color numbers from.public boolean importFont(java.lang.String fontNr,
java.lang.String fontName)
fontNr - The original font number.fontName - The font name to look up.public boolean importFont(java.lang.String fontNr,
java.lang.String fontName,
int charset)
fontNr - The original font number.fontName - The font name to look up.charset - The character set to use for the font.public boolean importFont(java.lang.String fontNr,
java.lang.String fontName,
java.lang.String fontFamily,
int charset)
fontNr - The original font number.fontName - The font name to look up.charset - The character set to use for the font.public java.lang.String mapFontNr(java.lang.String fontNr)
fontNr - The font number to map.public void importColor(java.lang.String colorNr,
java.awt.Color color)
colorNr - The original color number.color - The color to import.public java.lang.String mapColorNr(java.lang.String colorNr)
colorNr - The color number to map.public void importList(java.lang.String origListNr,
java.lang.String newListNr)
public java.lang.String mapListNr(java.lang.String listNr)
public boolean importStylesheetList(java.lang.String listNr,
List listIn)
public java.lang.String mapStylesheetListNr(java.lang.String listNr)