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 TypeMethodDescriptionvoidvoidchangeOutFile(int nIndex) voidprotected ElementcreateLink(String sId) createLink(Element onode) createTarget(String sId) protected TextGet the interface for the configuration of this converterprotected DrawConverterprotected L10ngetL10n()protected MathConverterprotected intgetOutFileName(int nIndex, boolean bWithExt) protected writer2latex.xhtml.StyleConverterprotected TableConverterprotected TextConverterprotected intgetType()voidhandleOfficeAnnotation(Node onode, Node hnode) protected NodeimportNode(Node node, boolean bDeep) booleanvoidreadTemplate(File file) Read a template to use as a base for the converted document.voidRead 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:ConverterGet the interface for the configuration of this converter- Returns:
- the configuration
-
readTemplate
Description copied from interface:ConverterRead a template to use as a base for the converted document. The format of the template depends on theConverterimplementation.- Specified by:
readTemplatein interfaceConverter- Overrides:
readTemplatein classConverterBase- Parameters:
is- anInputStreamfrom which to read the template- Throws:
IOException- if some exception occurs while reading the template
-
readTemplate
Description copied from interface:ConverterRead a template to use as a base for the converted document. The format of the template depends on theConverterimplementation.- Specified by:
readTemplatein interfaceConverter- Overrides:
readTemplatein 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:
convertInnerin classConverterBase- Throws:
IOException
-
handleOfficeAnnotation
-
getOutFileName
-
outFileHasContent
public boolean outFileHasContent() -
changeOutFile
public void changeOutFile(int nIndex) -
getPanelNode
-
nextOutFile
-
createTarget
-
addTarget
-
createLink
-
createLink
-