|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.doxia.sink.SinkAdapter
org.apache.maven.doxia.sink.AbstractTextSink
org.apache.maven.doxia.module.latex.LatexSink
Latex Sink implementation.
|
| Field Summary |
| Fields inherited from interface org.apache.maven.doxia.markup.TextMarkup |
PIPE |
| Fields inherited from interface org.apache.maven.doxia.markup.Markup |
EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SLASH, SPACE, STAR |
| Fields inherited from interface org.apache.maven.doxia.sink.Sink |
NUMBERING_DECIMAL, NUMBERING_LOWER_ALPHA, NUMBERING_LOWER_ROMAN, NUMBERING_UPPER_ALPHA, NUMBERING_UPPER_ROMAN, ROLE, SECTION_LEVEL_1, SECTION_LEVEL_2, SECTION_LEVEL_3, SECTION_LEVEL_4, SECTION_LEVEL_5 |
| Constructor Summary | |
LatexSink(Writer out)
Constructor. |
|
LatexSink(Writer out,
String sinkCommands,
String preamble)
Constructor. |
|
LatexSink(Writer out,
String sinkCommands,
String preamble,
boolean fragmentDocument)
Constructor. |
|
| Method Summary | |
void |
anchor_()
|
void |
anchor(String name)
|
void |
author_()
|
void |
author()
|
void |
body_()
|
void |
body()
|
void |
bold_()
|
void |
bold()
|
void |
close()
|
protected void |
content(String text)
Writes the text, without preserving whitespace. |
void |
date_()
|
void |
date()
|
static String |
defaultPreamble()
Returns the default preamble. |
static String |
defaultSinkCommands()
Returns the default sink commands. |
void |
definedTerm_()
|
void |
definedTerm()
|
void |
definitionList_()
|
void |
definitionList()
|
protected static String |
escaped(String text)
Escapes special characters. |
void |
figure_()
|
void |
figure()
|
void |
figureCaption_()
|
void |
figureCaption()
|
void |
figureGraphics(String name)
|
void |
flush()
|
static InputStream |
getDefaultPreamble()
Returns the default preamble from a resource. |
static InputStream |
getDefaultSinkCommands()
Returns the default sink commands from a resource. |
protected String |
getDocumentBegin()
Returns a default \begin{document} declaration. |
protected String |
getDocumentEnd()
Returns a default \end{document} declaration. |
protected String |
getDocumentStart()
Returns a default \documentclass declaration. |
void |
head()
|
void |
horizontalRule()
|
void |
italic_()
|
void |
italic()
|
void |
lineBreak()
|
void |
link_()
|
void |
link(String name)
|
void |
list_()
|
void |
list()
|
void |
listItem()
|
protected void |
markup(String text)
Writes the text, preserving whitespace. |
void |
monospaced_()
|
void |
monospaced()
|
void |
nonBreakingSpace()
|
void |
numberedList_()
|
void |
numberedList(int numbering)
|
void |
numberedListItem()
|
void |
pageBreak()
|
void |
paragraph_()
|
void |
sectionTitle_()
|
void |
sectionTitle1_()
|
void |
sectionTitle1()
|
void |
sectionTitle2_()
|
void |
sectionTitle2()
|
void |
sectionTitle3_()
|
void |
sectionTitle3()
|
void |
sectionTitle4_()
|
void |
sectionTitle4()
|
void |
sectionTitle5_()
|
void |
sectionTitle5()
|
void |
table_()
|
void |
table()
|
void |
tableCaption_()
|
void |
tableCaption()
|
void |
tableCell_()
|
void |
tableCell_(boolean header)
Ends a table cell. |
void |
tableCell()
|
void |
tableCell(boolean header)
Starts a table cell. |
void |
tableHeaderCell_()
|
void |
tableHeaderCell()
|
void |
tableRow_()
|
void |
tableRow()
|
void |
tableRows_()
|
void |
tableRows(int[] justification,
boolean grid)
|
void |
text(String text)
|
void |
title_()
|
void |
title()
|
void |
verbatim_()
|
void |
verbatim(boolean boxed)
|
protected void |
verbatimContent(String text)
Writes the text, preserving whitespace. |
| Methods inherited from class org.apache.maven.doxia.sink.SinkAdapter |
definition_, definition, definitionListItem_, definitionListItem, head_, listItem_, numberedListItem_, paragraph, rawText, section1_, section1, section2_, section2, section3_, section3, section4_, section4, section5_, section5, sectionTitle, tableCell, tableHeaderCell |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LatexSink(Writer out)
out - The writer to use.
public LatexSink(Writer out,
String sinkCommands,
String preamble)
out - The writer to use.sinkCommands - A String representation of commands that go before \documentclass.preamble - A String representation of commands that go between \documentclass and \begin{document}.
public LatexSink(Writer out,
String sinkCommands,
String preamble,
boolean fragmentDocument)
out - The writer to use.sinkCommands - A String representation of commands that go before \documentclass.preamble - A String representation of commands that go between \documentclass and \begin{document}.fragmentDocument - If this receives events that that are only part of a document.
Typically, headers are omitted if this is true.| Method Detail |
protected String getDocumentStart()
protected String getDocumentBegin()
protected String getDocumentEnd()
public void head()
public void body()
public void body_()
public void sectionTitle1()
public void sectionTitle1_()
public void sectionTitle2()
public void sectionTitle2_()
public void sectionTitle3()
public void sectionTitle3_()
public void sectionTitle4()
public void sectionTitle4_()
public void sectionTitle5()
public void sectionTitle5_()
public void list()
public void list_()
public void listItem()
public void numberedList(int numbering)
public void numberedList_()
public void numberedListItem()
public void definitionList()
public void definitionList_()
public void figure()
public void figure_()
public void table()
public void table_()
public void tableRows(int[] justification,
boolean grid)
public void tableRows_()
public void tableRow()
public void tableRow_()
public void title()
public void title_()
public void author()
public void author_()
public void date()
public void date_()
public void sectionTitle_()
public void paragraph_()
public void verbatim(boolean boxed)
public void verbatim_()
public void definedTerm()
public void definedTerm_()
public void figureCaption()
public void figureCaption_()
public void tableCell()
public void tableCell_()
public void tableHeaderCell()
public void tableHeaderCell_()
public void tableCell(boolean header)
header - True if this is a header cell.public void tableCell_(boolean header)
header - True if this is a header cell.public void tableCaption()
public void tableCaption_()
public void figureGraphics(String name)
public void horizontalRule()
public void pageBreak()
public void anchor(String name)
public void anchor_()
public void link(String name)
public void link_()
public void italic()
public void italic_()
public void bold()
public void bold_()
public void monospaced()
public void monospaced_()
public void lineBreak()
public void nonBreakingSpace()
public void text(String text)
protected void markup(String text)
text - the text to write.protected void content(String text)
text - the text to write.protected void verbatimContent(String text)
text - the text to write.protected static String escaped(String text)
text - The text to escape.
public void flush()
public void close()
public static InputStream getDefaultSinkCommands()
throws IOException
IOException - if the resource file cannot be read.
public static InputStream getDefaultPreamble()
throws IOException
IOException - if the resource file cannot be read.public static String defaultSinkCommands()
public static String defaultPreamble()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||