fr.opensagres.xdocreport.document.pptx.preprocessor
Class PPTXSlideContentHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by fr.opensagres.xdocreport.document.preprocessor.sax.BufferedDocumentContentHandler<Document>
          extended by fr.opensagres.xdocreport.document.preprocessor.sax.TransformedBufferedDocumentContentHandler<PPTXSlideDocument>
              extended by fr.opensagres.xdocreport.document.pptx.preprocessor.PPTXSlideContentHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class PPTXSlideContentHandler
extends TransformedBufferedDocumentContentHandler<PPTXSlideDocument>


Field Summary
 
Fields inherited from class fr.opensagres.xdocreport.document.preprocessor.sax.BufferedDocumentContentHandler
bufferedDocument, CDATA_TYPE
 
Constructor Summary
protected PPTXSlideContentHandler(String entryName, FieldsMetadata fieldsMetadata, IDocumentFormatter formater, Map<String,Object> sharedContext)
           
 
Method Summary
protected  PPTXSlideDocument createDocument()
           
 void doEndElement(String uri, String localName, String name)
           
 boolean doStartElement(String uri, String localName, String name, Attributes attributes)
           
protected  void flushCharacters(String characters)
           
protected  String getTableCellName()
           
protected  String getTableRowName()
           
 
Methods inherited from class fr.opensagres.xdocreport.document.preprocessor.sax.TransformedBufferedDocumentContentHandler
extractListDirectiveInfo, extractListDirectiveInfo, formatDirective, generateKey, getAfterRowToken, getAfterTableCellToken, getBeforeRowToken, getBeforeTableCellToken, getDirectives, getEndNoParse, getEntryName, getFieldAsTextStyling, getFieldsMetadata, getFormatter, getProcessRowResult, getSharedContext, getStartNoParse, getVariableIndex, hasSharedContext, isTable, isTableRow, processRowIfNeeded, processRowIfNeeded, processScriptAfter, processScriptBefore, registerBufferedElement
 
Methods inherited from class fr.opensagres.xdocreport.document.preprocessor.sax.BufferedDocumentContentHandler
characters, endElement, findParentElementInfo, findParentElementInfo, getBufferedDocument, getCurrentElement, getElementIndex, mustEncodeCharachers, printEscaped, resetCharacters, startDocument, startElement, startPrefixMapping, toAttributesImpl
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPTXSlideContentHandler

protected PPTXSlideContentHandler(String entryName,
                                  FieldsMetadata fieldsMetadata,
                                  IDocumentFormatter formater,
                                  Map<String,Object> sharedContext)
Method Detail

createDocument

protected PPTXSlideDocument createDocument()
Specified by:
createDocument in class TransformedBufferedDocumentContentHandler<PPTXSlideDocument>

getTableCellName

protected String getTableCellName()
Specified by:
getTableCellName in class TransformedBufferedDocumentContentHandler<PPTXSlideDocument>

getTableRowName

protected String getTableRowName()
Specified by:
getTableRowName in class TransformedBufferedDocumentContentHandler<PPTXSlideDocument>

doStartElement

public boolean doStartElement(String uri,
                              String localName,
                              String name,
                              Attributes attributes)
                       throws SAXException
Overrides:
doStartElement in class TransformedBufferedDocumentContentHandler<PPTXSlideDocument>
Throws:
SAXException

doEndElement

public void doEndElement(String uri,
                         String localName,
                         String name)
                  throws SAXException
Overrides:
doEndElement in class TransformedBufferedDocumentContentHandler<PPTXSlideDocument>
Throws:
SAXException

flushCharacters

protected void flushCharacters(String characters)
Overrides:
flushCharacters in class TransformedBufferedDocumentContentHandler<PPTXSlideDocument>


Copyright © 2013. All rights reserved.