Class DocxFormatter
java.lang.Object
io.jmix.reports.yarg.formatters.impl.AbstractFormatter
io.jmix.reports.yarg.formatters.impl.DocxFormatter
- All Implemented Interfaces:
ReportFormatter
* Document formatter for '.docx' file types
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.reports.yarg.formatters.impl.AbstractFormatter
AbstractFormatter.BandPathAndParameterName, AbstractFormatter.InlinerAndMatcher
-
Field Summary
Modifier and TypeFieldDescriptionprotected DocumentConverter
protected DocumentWrapper
protected HtmlImportProcessor
protected static final org.slf4j.Logger
protected org.docx4j.openpackaging.packages.WordprocessingMLPackage
Fields inherited from class io.jmix.reports.yarg.formatters.impl.AbstractFormatter
ALIAS_GROUP, ALIAS_WITH_BAND_NAME_PATTERN, ALIAS_WITH_BAND_NAME_REGEXP, BAND_NAME_DECLARATION_PATTERN, BAND_NAME_DECLARATION_REGEXP, contentInliners, defaultFormatProvider, groovyScriptParametersProvider, outputStream, outputType, reportTemplate, rootBand, scripting, SIMPLE_ALIAS_REGEXP, STRING_FUNCTION_GROUP, supportedOutputTypes, UNIVERSAL_ALIAS_PATTERN, UNIVERSAL_ALIAS_REGEXP, VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
protected void
protected void
void
Creates document and serializes it to predefined stream (or something like this)protected void
protected void
void
setDocumentConverter
(DocumentConverter documentConverter) void
setHtmlImportProcessor
(HtmlImportProcessor htmlImportProcessor) protected boolean
tryToApplyInliners
(String fullParameterName, Object paramValue, org.docx4j.wml.Text text) protected void
protected void
writeToOutputStream
(org.docx4j.openpackaging.packages.WordprocessingMLPackage mlPackage, OutputStream outputStream) Methods inherited from class io.jmix.reports.yarg.formatters.impl.AbstractFormatter
applyStringFunction, checkThreadInterrupted, containsJustOneAlias, createDocument, defaultFormat, findBandByPath, formatValue, formatValue, getAllAliases, getContentInlinerForFormat, getContentInliners, getFormatString, inlineParameterValue, insertBandDataToString, isGroovyScript, separateBandNameAndParameterName, setContentInliners, setDefaultFormatProvider, setScripting, unwrapParameterName, wrapWithReportingException, wrapWithReportingException
-
Field Details
-
log
protected static final org.slf4j.Logger log -
wordprocessingMLPackage
protected org.docx4j.openpackaging.packages.WordprocessingMLPackage wordprocessingMLPackage -
documentWrapper
-
documentConverter
-
htmlImportProcessor
-
-
Constructor Details
-
DocxFormatter
-
-
Method Details
-
setDocumentConverter
-
setHtmlImportProcessor
-
renderDocument
public void renderDocument()Description copied from interface:ReportFormatter
Creates document and serializes it to predefined stream (or something like this) -
updateTableOfContents
protected void updateTableOfContents() -
handleUrls
protected void handleUrls() -
loadDocument
protected void loadDocument() -
saveAndClose
protected void saveAndClose() -
replaceAllAliasesInDocument
protected void replaceAllAliasesInDocument() -
fillTables
protected void fillTables() -
tryToApplyInliners
-
writeToOutputStream
protected void writeToOutputStream(org.docx4j.openpackaging.packages.WordprocessingMLPackage mlPackage, OutputStream outputStream) throws org.docx4j.openpackaging.exceptions.Docx4JException - Throws:
org.docx4j.openpackaging.exceptions.Docx4JException
-
convertAltChunks
public void convertAltChunks() throws org.docx4j.openpackaging.exceptions.Docx4JException- Throws:
org.docx4j.openpackaging.exceptions.Docx4JException
-