|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.betabeans.scroogexhtml.converter.RTFReader
public final class RTFReader
A class which represents the RTF reader and its state.
Field Summary |
---|
Fields inherited from interface de.betabeans.scroogexhtml.rtf.RTFProperties |
---|
DG_BODY, DG_BULLET, DG_COLORTABLE, DG_FONTTABLE, DG_IGNORE, FN_BIN, FN_CELL, FN_HEX, FN_LINEBREAK, FN_MIDDOT, FN_NBSP, FN_PAR, FN_PLAIN, FN_ROW, FN_SKIPDEST, FN_SKIPWORD, FN_TROWD, KT_CHAR, KT_DEST, KT_FFAM, KT_FNCT, KT_PROP, KT_STRING, NL_BODY, NL_BULLET, NL_NONE, PR_ANSICPG, PR_BCOL, PR_BLUE, PR_BOLD, PR_CENTER, PR_DEFF, PR_FCHARSET, PR_FCOL, PR_FIRSTIND, PR_FONTNR, PR_FROMAN, PR_FSCRIPT, PR_FSIZE, PR_FSWISS, PR_GREEN, PR_HCOL, PR_ITALIC, PR_JUSTIFY, PR_LANG, PR_LEFT, PR_LEFTIND, PR_NOSUB, PR_PARD, PR_PNLVL, PR_PNLVLCONT, PR_RED, PR_RIGHT, PR_RIGHTIND, PR_RTLCHAR, PR_RTLPAR, PR_STRIKE, PR_SUB, PR_SUPER, PR_UNDERLINE, PR_UNICODE, PR_UNISKIP |
Constructor Summary | |
---|---|
RTFReader(ScroogeXHTMLBase aconverter)
create a new instance and assign the converter. |
Method Summary | |
---|---|
protected java.lang.String |
getColor(int index)
|
protected java.util.List |
getColorTable()
Gets the colorTable attribute. |
protected byte |
getDestination()
Gets the destination attribute. |
protected int |
getFontCharSet(int fontNr)
Gets the charSet attribute of the given font table entry. |
protected java.lang.String |
getFontName(int fontNr)
Get a font name for a given font table entry. |
protected FontTable |
getFontTable()
Returns the font table value. |
protected byte |
getIntState()
Gets the intState attribute. |
protected boolean |
popRTFState()
Get the reader state back from the stack. |
protected void |
pushRTFState()
Place the reader state on the stack. |
java.lang.String |
replaceFont(java.lang.String fontName)
Replace a RTF header font by a user defined font name. |
protected void |
setDestination(byte d)
Sets the destination attribute. |
protected void |
setDocumentGroup(byte dest)
Set the document group. |
protected void |
setIntState(byte s)
Sets the intState attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RTFReader(ScroogeXHTMLBase aconverter)
aconverter
- The converter (owner).Method Detail |
---|
protected void setIntState(byte s)
s
- The new intState valuegetIntState()
protected void setDestination(byte d)
d
- The new destination valuegetDestination()
protected void setDocumentGroup(byte dest)
dest
- The new documentGroup valueprotected byte getIntState()
setIntState(byte)
protected java.util.List getColorTable()
protected java.lang.String getColor(int index)
protected FontTable getFontTable()
protected byte getDestination()
setDestination(byte)
protected java.lang.String getFontName(int fontNr)
fontNr
- Font number.
protected int getFontCharSet(int fontNr)
fontNr
- Font number.
public java.lang.String replaceFont(java.lang.String fontName)
fontName
- String
protected void pushRTFState()
protected boolean popRTFState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |