public class RtfImportMgr extends Object
Constructor and Description |
---|
RtfImportMgr(RtfDocument rtfDoc,
Document doc)
Constructs a new RtfImportHeader.
|
Modifier and Type | Method and Description |
---|---|
void |
importColor(String colorNr,
Color color)
Imports a color value.
|
boolean |
importFont(String fontNr,
String fontName)
Imports a font.
|
boolean |
importFont(String fontNr,
String fontName,
int charset)
Imports a font.
|
boolean |
importFont(String fontNr,
String fontName,
String fontFamily,
int charset)
Imports a font.
|
void |
importList(String origListNr,
String newListNr)
Imports a List value.
|
boolean |
importStylesheetList(String listNr,
List listIn)
Imports a stylesheet list value.
|
String |
mapColorNr(String colorNr)
Performs the mapping from the original font number to the actual font
number used in the RTF document.
|
String |
mapFontNr(String fontNr)
Performs the mapping from the original font number to the actual
font number in the resulting RTF document.
|
String |
mapListNr(String listNr)
Performs the mapping from the original list number to the actual
list number in the resulting RTF document.
|
String |
mapStylesheetListNr(String listNr)
Performs the mapping from the original stylesheet number to the actual
stylesheet number in the resulting RTF document.
|
public RtfImportMgr(RtfDocument rtfDoc, Document doc)
rtfDoc
- The RtfDocument to get font and color numbers from.public boolean importFont(String fontNr, String fontName)
fontNr
- The original font number.fontName
- The font name to look up.public boolean importFont(String fontNr, 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(String fontNr, String fontName, 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 String mapFontNr(String fontNr)
fontNr
- The font number to map.public void importColor(String colorNr, Color color)
colorNr
- The original color number.color
- The color to import.public String mapColorNr(String colorNr)
colorNr
- The color number to map.public void importList(String origListNr, String newListNr)
public String mapListNr(String listNr)
public boolean importStylesheetList(String listNr, List listIn)
public String mapStylesheetListNr(String listNr)
Copyright © 2015. All rights reserved.