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, java.io.Closeable, java.io.Flushable, java.lang.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  java.lang.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, java.lang.String entryName)
           
 
Method Summary
protected  void doEndOrderedList()
           
protected  void doEndUnorderedList()
           
protected  void doStartOrderedList()
           
protected  void doStartUnorderedList()
           
 void endBold()
           
 void endDocument()
           
 void endHeading(int level)
           
 void endItalics()
           
 void endListItem()
           
 void endParagraph()
           
 void handleImage(java.lang.String ref, java.lang.String label)
           
 void handleReference(java.lang.String ref, java.lang.String label)
           
 void handleString(java.lang.String content)
           
protected  void internalEndList()
           
protected  void internalStartList(java.lang.String style)
           
 void startBold()
           
 void startDocument()
           
 void startHeading(int level)
           
 void startItalics()
           
 void startListItem()
           
 void startParagraph()
           
 
Methods inherited from class fr.opensagres.xdocreport.document.textstyling.AbstractDocumentHandler
close, endOrderedList, endUnorderedList, flush, getContext, getCurrentListIndex, getCurrentListOrder, getCurrentWriter, getEntryName, getParent, getTextBefore, getTextBody, getTextEnd, setTextLocation, startOrderedList, 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 java.lang.String itemStyle
Constructor Detail

ODTDocumentHandler

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

startDocument

public void startDocument()

endDocument

public void endDocument()
                 throws java.io.IOException
Throws:
java.io.IOException

startBold

public void startBold()

endBold

public void endBold()

startItalics

public void startItalics()

endItalics

public void endItalics()

handleString

public void handleString(java.lang.String content)
                  throws java.io.IOException
Specified by:
handleString in interface IDocumentHandler
Overrides:
handleString in class AbstractDocumentHandler
Throws:
java.io.IOException

startParagraph

public void startParagraph()
                    throws java.io.IOException
Throws:
java.io.IOException

endParagraph

public void endParagraph()
                  throws java.io.IOException
Throws:
java.io.IOException

startHeading

public void startHeading(int level)
                  throws java.io.IOException
Throws:
java.io.IOException

endHeading

public void endHeading(int level)
                throws java.io.IOException
Throws:
java.io.IOException

doStartOrderedList

protected void doStartOrderedList()
                           throws java.io.IOException
Specified by:
doStartOrderedList in class AbstractDocumentHandler
Throws:
java.io.IOException

doEndOrderedList

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

doStartUnorderedList

protected void doStartUnorderedList()
                             throws java.io.IOException
Specified by:
doStartUnorderedList in class AbstractDocumentHandler
Throws:
java.io.IOException

doEndUnorderedList

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

internalStartList

protected void internalStartList(java.lang.String style)
                          throws java.io.IOException
Throws:
java.io.IOException

internalEndList

protected void internalEndList()
                        throws java.io.IOException
Throws:
java.io.IOException

startListItem

public void startListItem()
                   throws java.io.IOException
Throws:
java.io.IOException

endListItem

public void endListItem()
                 throws java.io.IOException
Throws:
java.io.IOException

handleReference

public void handleReference(java.lang.String ref,
                            java.lang.String label)
                     throws java.io.IOException
Throws:
java.io.IOException

handleImage

public void handleImage(java.lang.String ref,
                        java.lang.String label)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2012. All Rights Reserved.