org.apache.maven.doxia.book.services.renderer.latex
Class LatexBookSink

java.lang.Object
  extended by org.apache.maven.doxia.sink.SinkAdapter
      extended by org.apache.maven.doxia.sink.AbstractTextSink
          extended by org.apache.maven.doxia.module.latex.LatexSink
              extended by org.apache.maven.doxia.book.services.renderer.latex.LatexBookSink
All Implemented Interfaces:
Markup, TextMarkup, Sink

public class LatexBookSink
extends LatexSink

Version:
$Id: LatexBookSink.java 572956 2007-09-05 14:22:50Z ltheussl $
Author:
Trygve Laugstøl

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
LatexBookSink(Writer out)
          Construct a new LatexBookSink which is a LatexSink with the given writer, null sinkCommands, null preamble and fragmentDocument = true.
 
Method Summary
protected  String getDocumentBegin()
          Returns a default \begin{document} declaration.
protected  String getDocumentStart()
          Returns a default \documentclass declaration.
 String getTitle()
          Return the title.
 void text(String newText)
          Adding a text.
 void title_()
          Ending the title element.
 
Methods inherited from class org.apache.maven.doxia.module.latex.LatexSink
anchor_, anchor, author_, author, body_, body, bold_, bold, close, content, date_, date, defaultPreamble, defaultSinkCommands, definedTerm_, definedTerm, definitionList_, definitionList, escaped, figure_, figure, figureCaption_, figureCaption, figureGraphics, flush, getDefaultPreamble, getDefaultSinkCommands, getDocumentEnd, head, horizontalRule, italic_, italic, lineBreak, link_, link, list_, list, listItem, markup, monospaced_, monospaced, nonBreakingSpace, numberedList_, numberedList, numberedListItem, pageBreak, paragraph_, sectionTitle_, sectionTitle1_, sectionTitle1, sectionTitle2_, sectionTitle2, sectionTitle3_, sectionTitle3, sectionTitle4_, sectionTitle4, sectionTitle5_, sectionTitle5, table_, table, tableCaption_, tableCaption, tableCell_, tableCell_, tableCell, tableCell, tableHeaderCell_, tableHeaderCell, tableRow_, tableRow, tableRows_, tableRows, title, verbatim_, verbatim, verbatimContent
 
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

LatexBookSink

public LatexBookSink(Writer out)
Construct a new LatexBookSink which is a LatexSink with the given writer, null sinkCommands, null preamble and fragmentDocument = true.

Parameters:
out - the writer for the sink.
Method Detail

getDocumentStart

protected String getDocumentStart()
Returns a default \documentclass declaration.

Overrides:
getDocumentStart in class LatexSink
Returns:
String.

getDocumentBegin

protected String getDocumentBegin()
Returns a default \begin{document} declaration.

Overrides:
getDocumentBegin in class LatexSink
Returns:
String.

text

public void text(String newText)
Adding a text.

Specified by:
text in interface Sink
Overrides:
text in class LatexSink
Parameters:
newText - The text to write.

title_

public void title_()
Ending the title element.

Specified by:
title_ in interface Sink
Overrides:
title_ in class LatexSink

getTitle

public String getTitle()
Return the title.

Returns:
String.


Copyright © 2005-2010 Apache Software Foundation. All Rights Reserved.