fr.opensagres.xdocreport.document.odt.textstyling
Class ODTDocumentHandler

java.lang.Object
  extended by java.io.Writer
      extended by fr.opensagres.xdocreport.document.textstyling.AbstractDocumentHandler
          extended by fr.opensagres.xdocreport.document.odt.textstyling.ODTDocumentHandler
All Implemented Interfaces:
IDocumentHandler, ITransformResult, Closeable, Flushable, Appendable

public class ODTDocumentHandler
extends AbstractDocumentHandler


Nested Class Summary
 
Nested classes/interfaces inherited from interface fr.opensagres.xdocreport.document.textstyling.IDocumentHandler
IDocumentHandler.TextLocation
 
Field Summary
protected  String itemStyle
           
protected  IODTStylesGenerator styleGen
           
 
Fields inherited from class java.io.Writer
lock
 
Fields inherited from interface fr.opensagres.xdocreport.document.textstyling.ITransformResult
TEXT_BEFORE_PROPERTY, TEXT_BODY_PROPERTY, TEXT_END_PROPERTY
 
Constructor Summary
ODTDocumentHandler(BufferedElement parent, IContext context, String entryName)
           
 
Method Summary
protected  void doEndOrderedList()
           
 void doEndTable(TableProperties properties)
           
 void doEndTableCell()
           
protected  void doEndTableRow()
           
protected  void doEndUnorderedList()
           
protected  void doStartOrderedList(ListProperties properties)
           
protected  void doStartTable(TableProperties properties)
           
protected  void doStartTableCell(TableCellProperties properties)
           
protected  void doStartTableRow(TableRowProperties properties)
           
protected  void doStartUnorderedList(ListProperties properties)
           
 void endBold()
          End bold style.
 void endDocument()
          End the document.
 void endHeading(int level)
          End heading.
 void endItalics()
          End italics style.
 void endListItem()
          End list item.
 void endParagraph()
          End paragraph.
 void endSpan()
          End span item.
 void endStrike()
          End Strike style.
 void endSubscript()
          End Subscript style.
 void endSuperscript()
          End Superscript style.
 void endUnderline()
          End underline style.
 void handleImage(String ref, String label)
          Handle image.
 void handleLineBreak()
           
 void handleReference(String ref, String label)
          Handle reference.
 void handleString(String content)
          Text content.
protected  void internalEndList()
           
protected  void internalStartList(String style)
           
 void startBold()
          Start bold style.
 void startDocument()
          Start the document.
 void startHeading(int level, HeaderProperties properties)
          Start heading.
 void startItalics()
          Start italics style.
 void startListItem(ListItemProperties properties)
          Start list item.
 void startParagraph(ParagraphProperties properties)
          Start paragraph.
 void startSpan(SpanProperties properties)
          Start span item.
 void startStrike()
          Start Strike style.
 void startSubscript()
          Start Subscript style.
 void startSuperscript()
          Start Superscript style.
 void startUnderline()
          Start underline style.
 
Methods inherited from class fr.opensagres.xdocreport.document.textstyling.AbstractDocumentHandler
close, endOrderedList, endTable, endTableCell, endTableRow, endUnorderedList, flush, getContext, getCurrentListIndex, getCurrentListOrder, getCurrentWriter, getEntryName, getParent, getTextBefore, getTextBody, getTextEnd, popTempWriter, pushTempWriter, setTextLocation, startOrderedList, startTable, startTableCell, startTableRow, startUnorderedList, toString, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

styleGen

protected final IODTStylesGenerator styleGen

itemStyle

protected String itemStyle
Constructor Detail

ODTDocumentHandler

public ODTDocumentHandler(BufferedElement parent,
                          IContext context,
                          String entryName)
Method Detail

startDocument

public void startDocument()
Description copied from interface: IDocumentHandler
Start the document.


endDocument

public void endDocument()
                 throws IOException
Description copied from interface: IDocumentHandler
End the document.

Throws:
IOException

startBold

public void startBold()
               throws IOException
Description copied from interface: IDocumentHandler
Start bold style.

Throws:
IOException

endBold

public void endBold()
             throws IOException
Description copied from interface: IDocumentHandler
End bold style.

Throws:
IOException

startItalics

public void startItalics()
                  throws IOException
Description copied from interface: IDocumentHandler
Start italics style.

Throws:
IOException

endItalics

public void endItalics()
                throws IOException
Description copied from interface: IDocumentHandler
End italics style.

Throws:
IOException

startUnderline

public void startUnderline()
                    throws IOException
Description copied from interface: IDocumentHandler
Start underline style.

Throws:
IOException

endUnderline

public void endUnderline()
                  throws IOException
Description copied from interface: IDocumentHandler
End underline style.

Throws:
IOException

startStrike

public void startStrike()
                 throws IOException
Description copied from interface: IDocumentHandler
Start Strike style.

Throws:
IOException

endStrike

public void endStrike()
               throws IOException
Description copied from interface: IDocumentHandler
End Strike style.

Throws:
IOException

startSubscript

public void startSubscript()
                    throws IOException
Description copied from interface: IDocumentHandler
Start Subscript style.

Throws:
IOException

endSubscript

public void endSubscript()
                  throws IOException
Description copied from interface: IDocumentHandler
End Subscript style.

Throws:
IOException

startSuperscript

public void startSuperscript()
                      throws IOException
Description copied from interface: IDocumentHandler
Start Superscript style.

Throws:
IOException

endSuperscript

public void endSuperscript()
                    throws IOException
Description copied from interface: IDocumentHandler
End Superscript style.

Throws:
IOException

handleString

public void handleString(String content)
                  throws IOException
Description copied from interface: IDocumentHandler
Text content.

Specified by:
handleString in interface IDocumentHandler
Overrides:
handleString in class AbstractDocumentHandler
Throws:
IOException

startParagraph

public void startParagraph(ParagraphProperties properties)
                    throws IOException
Description copied from interface: IDocumentHandler
Start paragraph.

Throws:
IOException

endParagraph

public void endParagraph()
                  throws IOException
Description copied from interface: IDocumentHandler
End paragraph.

Throws:
IOException

startHeading

public void startHeading(int level,
                         HeaderProperties properties)
                  throws IOException
Description copied from interface: IDocumentHandler
Start heading.

Throws:
IOException

endHeading

public void endHeading(int level)
                throws IOException
Description copied from interface: IDocumentHandler
End heading.

Throws:
IOException

doStartOrderedList

protected void doStartOrderedList(ListProperties properties)
                           throws IOException
Specified by:
doStartOrderedList in class AbstractDocumentHandler
Throws:
IOException

doEndOrderedList

protected void doEndOrderedList()
                         throws IOException
Specified by:
doEndOrderedList in class AbstractDocumentHandler
Throws:
IOException

doStartUnorderedList

protected void doStartUnorderedList(ListProperties properties)
                             throws IOException
Specified by:
doStartUnorderedList in class AbstractDocumentHandler
Throws:
IOException

doEndUnorderedList

protected void doEndUnorderedList()
                           throws IOException
Specified by:
doEndUnorderedList in class AbstractDocumentHandler
Throws:
IOException

internalStartList

protected void internalStartList(String style)
                          throws IOException
Throws:
IOException

internalEndList

protected void internalEndList()
                        throws IOException
Throws:
IOException

startListItem

public void startListItem(ListItemProperties properties)
                   throws IOException
Description copied from interface: IDocumentHandler
Start list item.

Throws:
IOException

endListItem

public void endListItem()
                 throws IOException
Description copied from interface: IDocumentHandler
End list item.

Throws:
IOException

startSpan

public void startSpan(SpanProperties properties)
               throws IOException
Description copied from interface: IDocumentHandler
Start span item.

Throws:
IOException

endSpan

public void endSpan()
             throws IOException
Description copied from interface: IDocumentHandler
End span item.

Throws:
IOException

handleReference

public void handleReference(String ref,
                            String label)
                     throws IOException
Description copied from interface: IDocumentHandler
Handle reference.

Throws:
IOException

handleImage

public void handleImage(String ref,
                        String label)
                 throws IOException
Description copied from interface: IDocumentHandler
Handle image.

Throws:
IOException

handleLineBreak

public void handleLineBreak()
                     throws IOException
Throws:
IOException

doStartTable

protected void doStartTable(TableProperties properties)
                     throws IOException
Specified by:
doStartTable in class AbstractDocumentHandler
Throws:
IOException

doEndTable

public void doEndTable(TableProperties properties)
                throws IOException
Specified by:
doEndTable in class AbstractDocumentHandler
Throws:
IOException

doStartTableRow

protected void doStartTableRow(TableRowProperties properties)
                        throws IOException
Specified by:
doStartTableRow in class AbstractDocumentHandler
Throws:
IOException

doEndTableRow

protected void doEndTableRow()
                      throws IOException
Specified by:
doEndTableRow in class AbstractDocumentHandler
Throws:
IOException

doStartTableCell

protected void doStartTableCell(TableCellProperties properties)
                         throws IOException
Specified by:
doStartTableCell in class AbstractDocumentHandler
Throws:
IOException

doEndTableCell

public void doEndTableCell()
                    throws IOException
Specified by:
doEndTableCell in class AbstractDocumentHandler
Throws:
IOException


Copyright © 2013. All rights reserved.