Class AbstractInliner
java.lang.Object
io.jmix.reports.yarg.formatters.impl.inline.AbstractInliner
- All Implemented Interfaces:
ContentInliner
- Direct Known Subclasses:
BitmapContentInliner
,FileStorageContentInliner
,ImageContentInliner
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.sun.star.beans.XPropertySet
buildImageProperties
(com.sun.star.graphic.XGraphicProvider xGraphicProvider, Object oImage, byte[] imageContent) protected abstract byte[]
getContent
(Object paramValue) void
inlineToDoc
(OfficeComponent officeComponent, com.sun.star.text.XTextRange textRange, com.sun.star.text.XText destination, Object paramValue, Matcher paramsMatcher) Inline content into doc templatevoid
inlineToDocx
(org.docx4j.openpackaging.packages.WordprocessingMLPackage wordPackage, org.docx4j.wml.Text text, Object paramValue, Matcher paramsMatcher) Inline content into docx templatevoid
inlineToXls
(org.apache.poi.hssf.usermodel.HSSFPatriarch patriarch, org.apache.poi.hssf.usermodel.HSSFCell resultCell, Object paramValue, Matcher paramsMatcher) Inline content into xls templatevoid
inlineToXlsx
(org.docx4j.openpackaging.packages.SpreadsheetMLPackage pkg, org.docx4j.openpackaging.parts.SpreadsheetML.WorksheetPart worksheetPart, org.xlsx4j.sml.Cell newCell, Object paramValue, Matcher matcher) Inline content to xlsx templateprotected void
insertImage
(com.sun.star.lang.XComponent document, OfficeResourceProvider officeResourceProvider, com.sun.star.text.XText destination, com.sun.star.text.XTextRange textRange, AbstractInliner.Image image) protected org.docx4j.openpackaging.parts.Part
resolveTextPartForDOCX
(org.docx4j.wml.Text text, org.docx4j.openpackaging.packages.WordprocessingMLPackage wordPackage) protected void
setImageSize
(int width, int height, Object oImage, com.sun.star.beans.XPropertySet imageProperties) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.reports.yarg.formatters.impl.inline.ContentInliner
getTagPattern
-
Field Details
-
tagPattern
-
docxUniqueId1
protected int docxUniqueId1 -
docxUniqueId2
protected int docxUniqueId2
-
-
Constructor Details
-
AbstractInliner
public AbstractInliner()
-
-
Method Details
-
getContent
-
inlineToXlsx
public void inlineToXlsx(org.docx4j.openpackaging.packages.SpreadsheetMLPackage pkg, org.docx4j.openpackaging.parts.SpreadsheetML.WorksheetPart worksheetPart, org.xlsx4j.sml.Cell newCell, Object paramValue, Matcher matcher) Description copied from interface:ContentInliner
Inline content to xlsx template- Specified by:
inlineToXlsx
in interfaceContentInliner
-
inlineToDocx
public void inlineToDocx(org.docx4j.openpackaging.packages.WordprocessingMLPackage wordPackage, org.docx4j.wml.Text text, Object paramValue, Matcher paramsMatcher) Description copied from interface:ContentInliner
Inline content into docx template- Specified by:
inlineToDocx
in interfaceContentInliner
-
inlineToXls
public void inlineToXls(org.apache.poi.hssf.usermodel.HSSFPatriarch patriarch, org.apache.poi.hssf.usermodel.HSSFCell resultCell, Object paramValue, Matcher paramsMatcher) Description copied from interface:ContentInliner
Inline content into xls template- Specified by:
inlineToXls
in interfaceContentInliner
-
inlineToDoc
public void inlineToDoc(OfficeComponent officeComponent, com.sun.star.text.XTextRange textRange, com.sun.star.text.XText destination, Object paramValue, Matcher paramsMatcher) throws Exception Description copied from interface:ContentInliner
Inline content into doc template- Specified by:
inlineToDoc
in interfaceContentInliner
- Throws:
Exception
-
insertImage
protected void insertImage(com.sun.star.lang.XComponent document, OfficeResourceProvider officeResourceProvider, com.sun.star.text.XText destination, com.sun.star.text.XTextRange textRange, AbstractInliner.Image image) throws Exception - Throws:
Exception
-
setImageSize
protected void setImageSize(int width, int height, Object oImage, com.sun.star.beans.XPropertySet imageProperties) throws Exception - Throws:
Exception
-
buildImageProperties
protected com.sun.star.beans.XPropertySet buildImageProperties(com.sun.star.graphic.XGraphicProvider xGraphicProvider, Object oImage, byte[] imageContent) throws Exception - Throws:
Exception
-
resolveTextPartForDOCX
protected org.docx4j.openpackaging.parts.Part resolveTextPartForDOCX(org.docx4j.wml.Text text, org.docx4j.openpackaging.packages.WordprocessingMLPackage wordPackage)
-