public class Converter extends ConverterBase
This class converts an OpenDocument file to an XHTML(+MathML) document<.
Modifier and Type | Field and Description |
---|---|
protected int |
nType |
convertData, graphicConverter, imageLoader, metaData, odDoc, ofr, sTargetFileName
Constructor and Description |
---|
Converter(int nType) |
Modifier and Type | Method and Description |
---|---|
void |
addTarget(org.w3c.dom.Element node,
java.lang.String sId) |
void |
changeOutFile(int nIndex) |
void |
convertInner() |
protected org.w3c.dom.Element |
createElement(java.lang.String s) |
org.w3c.dom.Element |
createLink(org.w3c.dom.Element onode) |
org.w3c.dom.Element |
createLink(java.lang.String sId) |
org.w3c.dom.Element |
createTarget(java.lang.String sId) |
protected org.w3c.dom.Text |
createTextNode(java.lang.String s) |
Config |
getConfig()
Get the interface for the configuration of this converter
|
protected DrawConverter |
getDrawCv() |
protected L10n |
getL10n() |
protected MathConverter |
getMathCv() |
protected int |
getOutFileIndex() |
java.lang.String |
getOutFileName(int nIndex,
boolean bWithExt) |
org.w3c.dom.Element |
getPanelNode() |
protected writer2latex.xhtml.StyleConverter |
getStyleCv() |
protected TableConverter |
getTableCv() |
protected TextConverter |
getTextCv() |
protected int |
getType() |
void |
handleOfficeAnnotation(org.w3c.dom.Node onode,
org.w3c.dom.Node hnode) |
protected org.w3c.dom.Node |
importNode(org.w3c.dom.Node node,
boolean bDeep) |
org.w3c.dom.Element |
nextOutFile() |
boolean |
outFileHasContent() |
void |
readTemplate(java.io.File file)
Read a template to use as a base for the converted document.
|
void |
readTemplate(java.io.InputStream is)
Read a template to use as a base for the converted document.
|
addDocument, convert, convert, getEmbeddedObject, getImageLoader, getMetaData, setGraphicConverter
public Config getConfig()
Converter
public void readTemplate(java.io.InputStream is) throws java.io.IOException
Converter
Converter
implementation.readTemplate
in interface Converter
readTemplate
in class ConverterBase
is
- an InputStream
from which to read the templatejava.io.IOException
- if some exception occurs while reading the templatepublic void readTemplate(java.io.File file) throws java.io.IOException
Converter
Converter
implementation.readTemplate
in interface Converter
readTemplate
in class ConverterBase
file
- a file from which to read the templatejava.io.IOException
- if the file does not exist or some exception occurs
while reading the templateprotected writer2latex.xhtml.StyleConverter getStyleCv()
protected TextConverter getTextCv()
protected TableConverter getTableCv()
protected DrawConverter getDrawCv()
protected MathConverter getMathCv()
protected int getType()
protected int getOutFileIndex()
protected org.w3c.dom.Element createElement(java.lang.String s)
protected org.w3c.dom.Text createTextNode(java.lang.String s)
protected org.w3c.dom.Node importNode(org.w3c.dom.Node node, boolean bDeep)
protected L10n getL10n()
public void convertInner() throws java.io.IOException
convertInner
in class ConverterBase
java.io.IOException
public void handleOfficeAnnotation(org.w3c.dom.Node onode, org.w3c.dom.Node hnode)
public java.lang.String getOutFileName(int nIndex, boolean bWithExt)
public boolean outFileHasContent()
public void changeOutFile(int nIndex)
public org.w3c.dom.Element getPanelNode()
public org.w3c.dom.Element nextOutFile()
public org.w3c.dom.Element createTarget(java.lang.String sId)
public void addTarget(org.w3c.dom.Element node, java.lang.String sId)
public org.w3c.dom.Element createLink(java.lang.String sId)
public org.w3c.dom.Element createLink(org.w3c.dom.Element onode)