writer2latex.xhtml
Class Converter
java.lang.Object
writer2latex.util.ConverterBase
writer2latex.xhtml.Converter
- All Implemented Interfaces:
- Converter
public class Converter
- extends ConverterBase
This class converts an OpenDocument file to an XHTML(+MathML) document<.
Field Summary |
protected int |
nType
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nType
protected int nType
Converter
public Converter(int nType)
readTemplate
public void readTemplate(java.io.InputStream is)
throws java.io.IOException
- Description copied from interface:
Converter
Read a template to use as a base for the converted document
The format of the template depends on the Converter
implementation.
- Specified by:
readTemplate
in interface Converter
- Overrides:
readTemplate
in class ConverterBase
- Parameters:
is
- an InputStream
from which to read the template
- Throws:
java.io.IOException
- if some exception occurs while reading the template
getStyleCv
protected writer2latex.xhtml.StyleConverter getStyleCv()
getTextCv
protected TextConverter getTextCv()
getTableCv
protected TableConverter getTableCv()
getDrawCv
protected DrawConverter getDrawCv()
getMathCv
protected MathConverter getMathCv()
getType
protected int getType()
getOutFileIndex
protected int getOutFileIndex()
createElement
protected org.w3c.dom.Element createElement(java.lang.String s)
createTextNode
protected org.w3c.dom.Text createTextNode(java.lang.String s)
importNode
protected org.w3c.dom.Node importNode(org.w3c.dom.Node node,
boolean bDeep)
convertInner
public void convertInner()
throws java.io.IOException
- Specified by:
convertInner
in class ConverterBase
- Throws:
java.io.IOException
handleOfficeAnnotation
public void handleOfficeAnnotation(org.w3c.dom.Node onode,
org.w3c.dom.Node hnode)
outFileHasContent
public boolean outFileHasContent()
changeOutFile
public void changeOutFile(int nIndex)
nextOutFile
public org.w3c.dom.Element nextOutFile()
createTarget
public org.w3c.dom.Element createTarget(java.lang.String sId)
addTarget
public void addTarget(org.w3c.dom.Element node,
java.lang.String sId)
createLink
public org.w3c.dom.Element createLink(java.lang.String sId)
createLink
public org.w3c.dom.Element createLink(org.w3c.dom.Element onode)