Ontimize 5.2072EN

com.ontimize.util.rtf
Class RTFReader

java.lang.Object
  extended bycom.ontimize.util.rtf.RTFReader

public class RTFReader
extends java.lang.Object


Field Summary
protected  boolean cellread
           
protected  boolean isTable
           
protected  RTFDocument mainDocument
           
 
Constructor Summary
RTFReader(javax.swing.text.Document doc)
           
 
Method Summary
protected  int convertTwipsToPixels(int value)
           
protected  int getWidthFromPosition(java.util.Vector cellAttributes, int col)
           
protected  void insertImage(java.lang.String content, RTFDocument document)
           
protected  void processImage(RTFElement pictureGroup, RTFDocument document)
           
 void read(java.io.Reader in, int offset)
           
 void read(java.lang.String fileName, int offset)
           
protected  void removeCharacterAttributes(javax.swing.text.MutableAttributeSet attrs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainDocument

protected RTFDocument mainDocument

isTable

protected boolean isTable

cellread

protected boolean cellread
Constructor Detail

RTFReader

public RTFReader(javax.swing.text.Document doc)
Method Detail

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)

Ontimize