public class RMRTFWriter
extends java.lang.Object
Constructor and Description |
---|
RMRTFWriter() |
Modifier and Type | Method and Description |
---|---|
void |
appendImageBytesForShape(RMShape s,
java.io.PrintStream ps)
Convert the shape into an image stream and embedd that into the rtf.
|
void |
appendRTF(RMShape aShape,
java.io.PrintStream ps) |
void |
appendTable(RMShapeTable table,
java.io.PrintStream ps)
Append table.
|
void |
appendText(RMXString s,
java.io.PrintStream ps) |
byte[] |
getBytes(RMDocument aDoc)
Returns RTF bytes for given document.
|
int |
getColorIndex(RMColor c) |
int |
getFontIndex(RMFont f)
Looks up a font in the font table and adds it if it's not there.
|
int |
getRTFFontCharset(RMFontFile f) |
java.lang.String |
getRTFFontFamily(RMFontFile f) |
byte[] |
getRTFForShapes(RMDocument aDoc)
Returns RTF for document Shapes.
|
java.lang.String |
RTFBorderStyle(boolean show,
int width)
Returns the rtf control string for borders.
|
int |
twip(double x)
Convert an rm coord to rtf 'twips'.
|
void |
writeColorTable(java.io.PrintStream ps)
Output all the fonts as an RTF fonttable.
|
void |
writeFont(java.io.PrintStream aPS,
RMFontFile aFontFile)
Writes an entry in the font table for a particular font.
|
void |
writeFontTable(java.io.PrintStream ps)
Output all the fonts as an RTF FontTable.
|
public byte[] getBytes(RMDocument aDoc)
public int getFontIndex(RMFont f)
public void writeFontTable(java.io.PrintStream ps)
public void writeFont(java.io.PrintStream aPS, RMFontFile aFontFile)
public java.lang.String getRTFFontFamily(RMFontFile f)
public int getRTFFontCharset(RMFontFile f)
public void writeColorTable(java.io.PrintStream ps)
public int getColorIndex(RMColor c)
public int twip(double x)
public byte[] getRTFForShapes(RMDocument aDoc)
public void appendRTF(RMShape aShape, java.io.PrintStream ps)
public void appendTable(RMShapeTable table, java.io.PrintStream ps)
public void appendText(RMXString s, java.io.PrintStream ps)
public java.lang.String RTFBorderStyle(boolean show, int width)
public void appendImageBytesForShape(RMShape s, java.io.PrintStream ps)