Class OfficeResourceProvider
java.lang.Object
io.jmix.reports.yarg.formatters.impl.doc.connector.OfficeResourceProvider
-
Field Summary
Modifier and TypeFieldDescriptionprotected OfficeIntegration
protected com.sun.star.uno.XComponentContext
-
Constructor Summary
ConstructorDescriptionOfficeResourceProvider
(com.sun.star.uno.XComponentContext xComponentContext, OfficeIntegration officeIntegration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
closeXComponent
(com.sun.star.lang.XComponent xComponent) protected com.sun.star.frame.XDesktop
protected File
createTempFile
(byte[] bytes) protected com.sun.star.frame.XDispatchHelper
com.sun.star.uno.XComponentContext
com.sun.star.frame.XComponentLoader
com.sun.star.frame.XDispatchHelper
com.sun.star.io.XInputStream
getXInputStream
(ReportTemplate reportTemplate) com.sun.star.lang.XComponent
loadXComponent
(byte[] bytes) com.sun.star.lang.XComponent
loadXComponent
(com.sun.star.io.XInputStream inputStream) com.sun.star.lang.XComponent
loadXComponent
(InputStream inputStream) void
saveXComponent
(com.sun.star.lang.XComponent xComponent, com.sun.star.io.XOutputStream xOutputStream, String filterName) protected String
-
Field Details
-
xComponentContext
protected com.sun.star.uno.XComponentContext xComponentContext -
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
-
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
-
toURL
-