fr.opensagres.xdocreport.document.docx.preprocessor.sax.rels
Class DocxDocumentXMLRelsPreprocessor

java.lang.Object
  extended by fr.opensagres.xdocreport.document.preprocessor.AbstractXDocPreprocessor<InputStream>
      extended by fr.opensagres.xdocreport.document.preprocessor.sax.SAXXDocPreprocessor
          extended by fr.opensagres.xdocreport.document.docx.preprocessor.sax.rels.DocxDocumentXMLRelsPreprocessor
All Implemented Interfaces:
IXDocPreprocessor

public class DocxDocumentXMLRelsPreprocessor
extends SAXXDocPreprocessor

This processor modify the XML entry word/_rels/document.xml.rels to add Relationship for dynamic image and hyperlink :

    
 
    
    
    
    
    
    
    
 
 
to add template engine script like this for Freemarker :
 
 
        
        
        
        
        
        
        [#if imageRegistry??]
                [#list imageRegistry.imageProviderInfos as ___info]
                
                [/#list]
        [/#if]
 
 
* to add template engine script like this for Velocity :
 
    
        
        
        
        
        
        
        #if( $imageRegistry)
                #foreach( $___info in $imageRegistry.ImageProviderInfos)
                #end
        #end
 
 


Field Summary
static IXDocPreprocessor INSTANCE
           
 
Constructor Summary
DocxDocumentXMLRelsPreprocessor()
           
 
Method Summary
protected  BufferedDocumentContentHandler createBufferedDocumentContentHandler(String entryName, FieldsMetadata fieldsMetadata, IDocumentFormatter formater, Map<String,Object> context)
           
 
Methods inherited from class fr.opensagres.xdocreport.document.preprocessor.sax.SAXXDocPreprocessor
closeSource, getSource, preprocess
 
Methods inherited from class fr.opensagres.xdocreport.document.preprocessor.AbstractXDocPreprocessor
create, createAndProcess, preprocess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final IXDocPreprocessor INSTANCE
Constructor Detail

DocxDocumentXMLRelsPreprocessor

public DocxDocumentXMLRelsPreprocessor()
Method Detail

createBufferedDocumentContentHandler

protected BufferedDocumentContentHandler createBufferedDocumentContentHandler(String entryName,
                                                                              FieldsMetadata fieldsMetadata,
                                                                              IDocumentFormatter formater,
                                                                              Map<String,Object> context)
Specified by:
createBufferedDocumentContentHandler in class SAXXDocPreprocessor


Copyright © 2013. All rights reserved.