|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.betabeans.scroogexhtml.ScroogeXHTMLDocument
ScroogeXHTML uses a ScroogeXHTMLDocument to store the complete
content of the RTF file before it is converted.
Each ScroogeXHTMLDocument is a sequence of ScroogeXHTMLDocParagraph
objects,
which are sequences of ScroogeXHTMLDocText
objects.
ScroogeXHTMLDocParagraph
,
ScroogeXHTMLDocText
Field Summary | |
protected ScroogeXHTMLBase |
converter
|
Constructor Summary | |
ScroogeXHTMLDocument(ScroogeXHTMLBase converter)
Constructor for the ScroogeXHTMLDocument object |
Method Summary | |
protected void |
add()
add a paragraph to the document |
void |
add(char c)
add a character to the current text object of the current paragraph |
void |
add(java.lang.String text)
add a string to the current text object of the current paragraph |
protected java.lang.StringBuffer |
buildHtml()
convert the document to XHTML |
protected ScroogeXHTMLDocParagraph |
nextPar(ScroogeXHTMLDocParagraph paragraph)
find the following paragraph in the document |
protected ScroogeXHTMLDocParagraph |
prevPar(ScroogeXHTMLDocParagraph paragraph)
find the previous paragraph in the document |
protected void |
setParProperties(int al,
boolean pn,
int nl,
int li,
int ri,
int fi)
set the current paragraph properties |
protected void |
setTextProperties(boolean b,
boolean i,
boolean u,
boolean strike,
java.lang.String f,
java.lang.String fgcolor,
java.lang.String bgcolor,
java.lang.String hlcolor,
int s,
boolean subScript,
boolean superScript)
set the current text element properties |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ScroogeXHTMLBase converter
Constructor Detail |
public ScroogeXHTMLDocument(ScroogeXHTMLBase converter)
owner
- Description of ParameterMethod Detail |
public void add(java.lang.String text)
text
- the String to be addedpublic void add(char c)
c
- the character to be addedprotected ScroogeXHTMLDocParagraph prevPar(ScroogeXHTMLDocParagraph paragraph)
paragraph
- the current paragraphprotected ScroogeXHTMLDocParagraph nextPar(ScroogeXHTMLDocParagraph paragraph)
paragraph
- the current paragraphprotected void setParProperties(int al, boolean pn, int nl, int li, int ri, int fi)
a
- alignmentb
- bulleti
- protected void setTextProperties(boolean b, boolean i, boolean u, boolean strike, java.lang.String f, java.lang.String fgcolor, java.lang.String bgcolor, java.lang.String hlcolor, int s, boolean subScript, boolean superScript)
b
- i
- u
- strike
- f
- fgcolor
- bgcolor
- s
- subScript
- superScript
- protected java.lang.StringBuffer buildHtml()
protected void add()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |