Package writer2latex.xhtml
Class Converter
java.lang.Object
writer2latex.base.ConverterBase
writer2latex.xhtml.Converter
- All Implemented Interfaces:
Converter
- Direct Known Subclasses:
Xhtml10Converter
,XhtmlMathMLConverter
,XhtmlMathMLXSLConverter
This class converts an OpenDocument file to an XHTML(+MathML) document<.
-
Field Summary
FieldsFields inherited from class writer2latex.base.ConverterBase
convertData, graphicConverter, imageLoader, metaData, odDoc, ofr, sTargetFileName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
changeOutFile
(int nIndex) void
protected Element
createLink
(String sId) createLink
(Element onode) createTarget
(String sId) protected Text
Get the interface for the configuration of this converterprotected DrawConverter
protected L10n
getL10n()
protected MathConverter
protected int
getOutFileName
(int nIndex, boolean bWithExt) protected writer2latex.xhtml.StyleConverter
protected TableConverter
protected TextConverter
protected int
getType()
void
handleOfficeAnnotation
(Node onode, Node hnode) protected Node
importNode
(Node node, boolean bDeep) boolean
void
readTemplate
(File file) Read a template to use as a base for the converted document.void
Read a template to use as a base for the converted document.Methods inherited from class writer2latex.base.ConverterBase
addDocument, convert, convert, getEmbeddedObject, getImageLoader, getMetaData, setGraphicConverter
-
Field Details
-
nType
protected int nType
-
-
Constructor Details
-
Converter
public Converter(int nType)
-
-
Method Details
-
getConfig
Description copied from interface:Converter
Get the interface for the configuration of this converter- Returns:
- the configuration
-
readTemplate
Description copied from interface:Converter
Read a template to use as a base for the converted document. The format of the template depends on theConverter
implementation.- Specified by:
readTemplate
in interfaceConverter
- Overrides:
readTemplate
in classConverterBase
- Parameters:
is
- anInputStream
from which to read the template- Throws:
IOException
- if some exception occurs while reading the template
-
readTemplate
Description copied from interface:Converter
Read a template to use as a base for the converted document. The format of the template depends on theConverter
implementation.- Specified by:
readTemplate
in interfaceConverter
- Overrides:
readTemplate
in classConverterBase
- Parameters:
file
- a file from which to read the template- Throws:
IOException
- if the file does not exist or some exception occurs while reading the template
-
getStyleCv
protected writer2latex.xhtml.StyleConverter getStyleCv() -
getTextCv
-
getTableCv
-
getDrawCv
-
getMathCv
-
getType
protected int getType() -
getOutFileIndex
protected int getOutFileIndex() -
createElement
-
createTextNode
-
importNode
-
getL10n
-
convertInner
- Specified by:
convertInner
in classConverterBase
- Throws:
IOException
-
handleOfficeAnnotation
-
getOutFileName
-
outFileHasContent
public boolean outFileHasContent() -
changeOutFile
public void changeOutFile(int nIndex) -
getPanelNode
-
nextOutFile
-
createTarget
-
addTarget
-
createLink
-
createLink
-