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
Nested ClassesModifier and TypeClassDescriptionprotected classprotected class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.sun.star.beans.XPropertySetbuildImageProperties(com.sun.star.graphic.XGraphicProvider xGraphicProvider, Object oImage, byte[] imageContent) protected abstract byte[]getContent(Object paramValue) voidinlineToDoc(OfficeComponent officeComponent, com.sun.star.text.XTextRange textRange, com.sun.star.text.XText destination, Object paramValue, Matcher paramsMatcher) Inline content into doc templatevoidinlineToDocx(org.docx4j.openpackaging.packages.WordprocessingMLPackage wordPackage, org.docx4j.wml.Text text, Object paramValue, Matcher paramsMatcher) Inline content into docx templatevoidinlineToXls(org.apache.poi.hssf.usermodel.HSSFPatriarch patriarch, org.apache.poi.hssf.usermodel.HSSFCell resultCell, Object paramValue, Matcher paramsMatcher) Inline content into xls templatevoidinlineToXlsx(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 voidinsertImage(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.PartresolveTextPartForDOCX(org.docx4j.wml.Text text, org.docx4j.openpackaging.packages.WordprocessingMLPackage wordPackage) protected voidsetImageSize(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, waitMethods 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:ContentInlinerInline content to xlsx template- Specified by:
inlineToXlsxin interfaceContentInliner
-
inlineToDocx
public void inlineToDocx(org.docx4j.openpackaging.packages.WordprocessingMLPackage wordPackage, org.docx4j.wml.Text text, Object paramValue, Matcher paramsMatcher) Description copied from interface:ContentInlinerInline content into docx template- Specified by:
inlineToDocxin 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:ContentInlinerInline content into xls template- Specified by:
inlineToXlsin 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:ContentInlinerInline content into doc template- Specified by:
inlineToDocin 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)
-