Class DocxFormatter
java.lang.Object
io.jmix.reports.yarg.formatters.impl.AbstractFormatter
io.jmix.reports.yarg.formatters.impl.DocxFormatter
- All Implemented Interfaces:
ReportFormatter
- Direct Known Subclasses:
JmixDocxFormatter
* 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
FieldsModifier and TypeFieldDescriptionprotected DocumentConverterprotected DocumentWrapperprotected HtmlImportProcessorprotected static final org.slf4j.Loggerprotected org.docx4j.openpackaging.packages.WordprocessingMLPackageFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidprotected voidprotected voidvoidCreates document and serializes it to predefined stream (or something like this)protected voidprotected voidvoidsetDocumentConverter(DocumentConverter documentConverter) voidsetHtmlImportProcessor(HtmlImportProcessor htmlImportProcessor) protected booleantryToApplyInliners(String fullParameterName, Object paramValue, org.docx4j.wml.Text text) protected voidprotected voidwriteToOutputStream(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, getFullParameterName, 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:ReportFormatterCreates 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
-