com.ontimize.util.rtf
Class RTFReader
java.lang.Object
com.ontimize.util.rtf.RTFReader
- public class RTFReader
- extends java.lang.Object
|
Constructor Summary |
RTFReader(javax.swing.text.Document doc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mainDocument
protected RTFDocument mainDocument
isTable
protected boolean isTable
cellread
protected boolean cellread
RTFReader
public RTFReader(javax.swing.text.Document doc)
read
public void read(java.lang.String fileName,
int offset)
throws java.io.IOException,
javax.swing.text.BadLocationException
- Throws:
java.io.IOException
javax.swing.text.BadLocationException
read
public void read(java.io.Reader in,
int offset)
throws java.io.IOException,
javax.swing.text.BadLocationException
- Throws:
java.io.IOException
javax.swing.text.BadLocationException
getWidthFromPosition
protected int getWidthFromPosition(java.util.Vector cellAttributes,
int col)
convertTwipsToPixels
protected int convertTwipsToPixels(int value)
processImage
protected void processImage(RTFElement pictureGroup,
RTFDocument document)
throws java.io.IOException,
javax.swing.text.BadLocationException
- Throws:
java.io.IOException
javax.swing.text.BadLocationException
insertImage
protected void insertImage(java.lang.String content,
RTFDocument document)
throws java.io.IOException,
javax.swing.text.BadLocationException
- Throws:
java.io.IOException
javax.swing.text.BadLocationException
removeCharacterAttributes
protected void removeCharacterAttributes(javax.swing.text.MutableAttributeSet attrs)