|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwriter2latex.base.ConverterBase
writer2latex.xhtml.Converter
public class Converter
This class converts an OpenDocument file to an XHTML(+MathML) document.
| Field Summary | |
|---|---|
protected int |
nType
|
| Fields inherited from class writer2latex.base.ConverterBase |
|---|
converterResult, graphicConverter, imageLoader, metaData, odDoc, ofr, sTargetFileName |
| Constructor Summary | |
|---|---|
Converter(int nType)
|
|
| Method Summary | |
|---|---|
protected void |
addContentEntry(java.lang.String sTitle,
int nLevel,
java.lang.String sTarget)
|
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 java.lang.String |
getPlainInlineText(org.w3c.dom.Node node)
|
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)
|
boolean |
isOPS()
|
org.w3c.dom.Element |
nextOutFile()
|
boolean |
outFileHasContent()
|
void |
readStyleSheet(java.io.File file)
Read a style sheet to include with the converted document. |
void |
readStyleSheet(java.io.InputStream is)
Read a style sheet to include with the converted document. |
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. |
protected void |
setIndexFile(java.lang.String sTarget)
|
protected void |
setLofFile(java.lang.String sTarget)
|
protected void |
setLotFile(java.lang.String sTarget)
|
void |
setOPS(boolean b)
|
protected void |
setTocFile(java.lang.String sTarget)
|
| Methods inherited from class writer2latex.base.ConverterBase |
|---|
addDocument, convert, convert, getEmbeddedObject, getImageLoader, getMetaData, setGraphicConverter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int nType
| Constructor Detail |
|---|
public Converter(int nType)
| Method Detail |
|---|
public Config getConfig()
Converter
public void readTemplate(java.io.InputStream is)
throws java.io.IOException
ConverterConverter
implementation.
readTemplate in interface ConverterreadTemplate in class ConverterBaseis - an InputStream from which to read the template
java.io.IOException - if some exception occurs while reading the template
public void readTemplate(java.io.File file)
throws java.io.IOException
ConverterConverter
implementation.
readTemplate in interface ConverterreadTemplate in class ConverterBasefile - a file from which to read the template
java.io.IOException - if the file does not exist or some exception occurs
while reading the template
public void readStyleSheet(java.io.InputStream is)
throws java.io.IOException
ConverterConverter
implementation.
readStyleSheet in interface ConverterreadStyleSheet in class ConverterBaseis - an InputStream from which to read the style sheet
java.io.IOException - if some exception occurs while reading the style sheet
public void readStyleSheet(java.io.File file)
throws java.io.IOException
ConverterConverter
implementation.
readStyleSheet in interface ConverterreadStyleSheet in class ConverterBasefile - a file from which to read the style sheet
java.io.IOException - if the file does not exist or some exception occurs
while reading the style sheetprotected writer2latex.xhtml.StyleConverter getStyleCv()
protected TextConverter getTextCv()
protected TableConverter getTableCv()
protected DrawConverter getDrawCv()
protected MathConverter getMathCv()
protected int getType()
protected int getOutFileIndex()
protected void addContentEntry(java.lang.String sTitle,
int nLevel,
java.lang.String sTarget)
protected void setTocFile(java.lang.String sTarget)
protected void setLofFile(java.lang.String sTarget)
protected void setLotFile(java.lang.String sTarget)
protected void setIndexFile(java.lang.String sTarget)
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 setOPS(boolean b)
public boolean isOPS()
public void convertInner()
throws java.io.IOException
convertInner in class ConverterBasejava.io.IOExceptionprotected java.lang.String getPlainInlineText(org.w3c.dom.Node node)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||