public abstract class AbstractLocalOfficeTask
extends org.jodconverter.task.AbstractOfficeTask
OfficeTask
Modifier and Type | Field and Description |
---|---|
protected static java.util.Map<java.lang.String,java.lang.Object> |
DEFAULT_LOAD_PROPERTIES |
protected java.util.Map<java.lang.String,java.lang.Object> |
loadProperties |
Constructor and Description |
---|
AbstractLocalOfficeTask(org.jodconverter.job.SourceDocumentSpecs source)
Creates a new task with the specified source document.
|
AbstractLocalOfficeTask(org.jodconverter.job.SourceDocumentSpecs source,
java.util.Map<java.lang.String,java.lang.Object> loadProperties)
Creates a new task with the specified source document.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
addPropertiesToMap(java.util.Map<java.lang.String,java.lang.Object> properties,
java.util.Map<java.lang.String,java.lang.Object> toAddProperties) |
protected void |
closeDocument(com.sun.star.lang.XComponent document) |
protected java.util.Map<java.lang.String,java.lang.Object> |
getLoadProperties() |
protected com.sun.star.lang.XComponent |
loadDocument(LocalOfficeContext context,
java.io.File sourceFile) |
protected static final java.util.Map<java.lang.String,java.lang.Object> DEFAULT_LOAD_PROPERTIES
protected java.util.Map<java.lang.String,java.lang.Object> loadProperties
public AbstractLocalOfficeTask(org.jodconverter.job.SourceDocumentSpecs source)
source
- The source specifications of the document.public AbstractLocalOfficeTask(org.jodconverter.job.SourceDocumentSpecs source, java.util.Map<java.lang.String,java.lang.Object> loadProperties)
source
- The source specifications of the document.loadProperties
- The load properties to be applied when loading the document. These
properties are added before the load properties of the document format specified in the
source
arguments.protected static void addPropertiesToMap(java.util.Map<java.lang.String,java.lang.Object> properties, java.util.Map<java.lang.String,java.lang.Object> toAddProperties)
protected java.util.Map<java.lang.String,java.lang.Object> getLoadProperties()
protected com.sun.star.lang.XComponent loadDocument(LocalOfficeContext context, java.io.File sourceFile) throws org.jodconverter.office.OfficeException
org.jodconverter.office.OfficeException
protected void closeDocument(com.sun.star.lang.XComponent document)