fr.opensagres.xdocreport.document.docx
Class DocxReport

java.lang.Object
  extended by fr.opensagres.xdocreport.document.AbstractXDocReport
      extended by fr.opensagres.xdocreport.document.docx.DocxReport
All Implemented Interfaces:
IXDocReport, Serializable

public class DocxReport
extends AbstractXDocReport

MS Word DOCX report.

See Also:
Serialized Form

Constructor Summary
DocxReport()
           
 
Method Summary
protected  IImageRegistry createImageRegistry(IEntryReaderProvider readerProvider, IEntryWriterProvider writerProvider, IEntryOutputStreamProvider outputStreamProvider)
          Create an image registry.
protected  String[] getDefaultXMLEntries()
          Returns default entries which define XML document to merge with Java model with template engine for odt, docx...
 String getKind()
          Returns the kind of the report (ODT, docx...).
 MimeMapping getMimeMapping()
          Returns mime mapping switch the kind of the report (odt, docx...).
protected  void onAfterPreprocessing(Map<String,Object> sharedContext, XDocArchive preprocessedArchive)
          On after preprocessing.
protected  void onAfterProcessTemplateEngine(IContext context, XDocArchive outputArchive)
          On after process template engine.
protected  void onBeforePreprocessing(Map<String,Object> sharedContext, XDocArchive preprocessedArchive)
          On before preprocessing.
protected  void onBeforeProcessTemplateEngine(IContext context, XDocArchive outputArchive)
          On before process template engine.
protected  void registerPreprocessors()
          Register preprocessors.
 
Methods inherited from class fr.opensagres.xdocreport.document.AbstractXDocReport
addPreprocessor, clearData, convert, convert, createContext, createContext, createFieldsMetadata, doPostprocessIfNeeded, dump, dump, extractFields, extractFields, getConverter, getData, getDumper, getFieldsMetadata, getId, getLastModified, getOriginalDocumentArchive, getPreprocessedDocumentArchive, getTemplateEngine, getXMLEntries, isPreprocessed, load, preprocess, process, process, process, process, removeAllPreprocessors, removePreprocessor, save, saveEntry, setCacheOriginalDocument, setData, setDocumentArchive, setFieldsMetadata, setId, setTemplateEngine, setXMLEntries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocxReport

public DocxReport()
Method Detail

getKind

public String getKind()
Description copied from interface: IXDocReport
Returns the kind of the report (ODT, docx...).

Returns:

registerPreprocessors

protected void registerPreprocessors()
Description copied from class: AbstractXDocReport
Register preprocessors.

Specified by:
registerPreprocessors in class AbstractXDocReport

getDefaultXMLEntries

protected String[] getDefaultXMLEntries()
Description copied from class: AbstractXDocReport
Returns default entries which define XML document to merge with Java model with template engine for odt, docx...

Specified by:
getDefaultXMLEntries in class AbstractXDocReport
Returns:

getMimeMapping

public MimeMapping getMimeMapping()
Description copied from interface: IXDocReport
Returns mime mapping switch the kind of the report (odt, docx...).

Returns:

createImageRegistry

protected IImageRegistry createImageRegistry(IEntryReaderProvider readerProvider,
                                             IEntryWriterProvider writerProvider,
                                             IEntryOutputStreamProvider outputStreamProvider)
Description copied from class: AbstractXDocReport
Create an image registry.

Specified by:
createImageRegistry in class AbstractXDocReport
Returns:

onBeforePreprocessing

protected void onBeforePreprocessing(Map<String,Object> sharedContext,
                                     XDocArchive preprocessedArchive)
                              throws XDocReportException
Description copied from class: AbstractXDocReport
On before preprocessing.

Overrides:
onBeforePreprocessing in class AbstractXDocReport
Throws:
XDocReportException

onAfterPreprocessing

protected void onAfterPreprocessing(Map<String,Object> sharedContext,
                                    XDocArchive preprocessedArchive)
                             throws XDocReportException
Description copied from class: AbstractXDocReport
On after preprocessing.

Overrides:
onAfterPreprocessing in class AbstractXDocReport
Throws:
XDocReportException

onBeforeProcessTemplateEngine

protected void onBeforeProcessTemplateEngine(IContext context,
                                             XDocArchive outputArchive)
                                      throws XDocReportException
Description copied from class: AbstractXDocReport
On before process template engine.

Overrides:
onBeforeProcessTemplateEngine in class AbstractXDocReport
Throws:
XDocReportException

onAfterProcessTemplateEngine

protected void onAfterProcessTemplateEngine(IContext context,
                                            XDocArchive outputArchive)
                                     throws XDocReportException
Description copied from class: AbstractXDocReport
On after process template engine.

Overrides:
onAfterProcessTemplateEngine in class AbstractXDocReport
Throws:
XDocReportException


Copyright © 2013. All rights reserved.