Class AbstractInliner

java.lang.Object
io.jmix.reports.yarg.formatters.impl.inline.AbstractInliner
All Implemented Interfaces:
ContentInliner
Direct Known Subclasses:
BitmapContentInliner, FileStorageContentInliner, ImageContentInliner

public abstract class AbstractInliner extends Object implements ContentInliner
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected class 
     
    protected class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
    protected int
     
    protected Pattern
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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 template
    void
    inlineToDocx(org.docx4j.openpackaging.packages.WordprocessingMLPackage wordPackage, org.docx4j.wml.Text text, Object paramValue, Matcher paramsMatcher)
    Inline content into docx template
    void
    inlineToXls(org.apache.poi.hssf.usermodel.HSSFPatriarch patriarch, org.apache.poi.hssf.usermodel.HSSFCell resultCell, Object paramValue, Matcher paramsMatcher)
    Inline content into xls template
    void
    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 template
    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)
     
    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

      protected Pattern tagPattern
    • docxUniqueId1

      protected int docxUniqueId1
    • docxUniqueId2

      protected int docxUniqueId2
  • Constructor Details

    • AbstractInliner

      public AbstractInliner()
  • Method Details

    • getContent

      protected abstract byte[] getContent(Object paramValue)
    • 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 interface ContentInliner
    • 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 interface ContentInliner
    • 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 interface ContentInliner
    • 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 interface ContentInliner
      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)