Class OfficeResourceProvider

java.lang.Object
io.jmix.reports.yarg.formatters.impl.doc.connector.OfficeResourceProvider

public class OfficeResourceProvider extends Object
  • Field Details

    • xComponentContext

      protected com.sun.star.uno.XComponentContext xComponentContext
    • officeIntegration

      protected OfficeIntegration officeIntegration
  • Constructor Details

    • OfficeResourceProvider

      public OfficeResourceProvider(com.sun.star.uno.XComponentContext xComponentContext, OfficeIntegration officeIntegration) throws com.sun.star.uno.Exception
      Throws:
      com.sun.star.uno.Exception
  • Method Details

    • getXComponentContext

      public com.sun.star.uno.XComponentContext getXComponentContext()
    • getXDispatchHelper

      public com.sun.star.frame.XDispatchHelper getXDispatchHelper()
    • getXComponentLoader

      public com.sun.star.frame.XComponentLoader getXComponentLoader()
    • loadXComponent

      public com.sun.star.lang.XComponent loadXComponent(InputStream inputStream) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.io.IOException
      Throws:
      com.sun.star.lang.IllegalArgumentException
      com.sun.star.io.IOException
    • loadXComponent

      public com.sun.star.lang.XComponent loadXComponent(byte[] bytes) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.io.IOException
      Throws:
      com.sun.star.lang.IllegalArgumentException
      com.sun.star.io.IOException
    • loadXComponent

      public com.sun.star.lang.XComponent loadXComponent(com.sun.star.io.XInputStream inputStream) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.io.IOException
      Throws:
      com.sun.star.lang.IllegalArgumentException
      com.sun.star.io.IOException
    • getXInputStream

      public com.sun.star.io.XInputStream getXInputStream(ReportTemplate reportTemplate)
    • closeXComponent

      public void closeXComponent(com.sun.star.lang.XComponent xComponent)
    • saveXComponent

      public void saveXComponent(com.sun.star.lang.XComponent xComponent, com.sun.star.io.XOutputStream xOutputStream, String filterName) throws com.sun.star.io.IOException
      Throws:
      com.sun.star.io.IOException
    • createXDispatchHelper

      protected com.sun.star.frame.XDispatchHelper createXDispatchHelper() throws com.sun.star.uno.Exception
      Throws:
      com.sun.star.uno.Exception
    • createDesktop

      protected com.sun.star.frame.XDesktop createDesktop() throws com.sun.star.uno.Exception
      Throws:
      com.sun.star.uno.Exception
    • createTempFile

      protected File createTempFile(byte[] bytes)
    • toURL

      protected String toURL(File file)