Class Converter

All Implemented Interfaces:
Converter
Direct Known Subclasses:
Xhtml10Converter, XhtmlMathMLConverter, XhtmlMathMLXSLConverter

public class Converter extends ConverterBase

This class converts an OpenDocument file to an XHTML(+MathML) document<.

  • Field Details

    • nType

      protected int nType
  • Constructor Details

    • Converter

      public Converter(int nType)
  • Method Details

    • getConfig

      public Config getConfig()
      Description copied from interface: Converter
      Get the interface for the configuration of this converter
      Returns:
      the configuration
    • readTemplate

      public void readTemplate(InputStream is) throws 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:
      IOException - if some exception occurs while reading the template
    • readTemplate

      public void readTemplate(File file) throws 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:
      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

      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 Element createElement(String s)
    • createTextNode

      protected Text createTextNode(String s)
    • importNode

      protected Node importNode(Node node, boolean bDeep)
    • getL10n

      protected L10n getL10n()
    • convertInner

      public void convertInner() throws IOException
      Specified by:
      convertInner in class ConverterBase
      Throws:
      IOException
    • handleOfficeAnnotation

      public void handleOfficeAnnotation(Node onode, Node hnode)
    • getOutFileName

      public String getOutFileName(int nIndex, boolean bWithExt)
    • outFileHasContent

      public boolean outFileHasContent()
    • changeOutFile

      public void changeOutFile(int nIndex)
    • getPanelNode

      public Element getPanelNode()
    • nextOutFile

      public Element nextOutFile()
    • createTarget

      public Element createTarget(String sId)
    • addTarget

      public void addTarget(Element node, String sId)
    • createLink

      public Element createLink(String sId)
    • createLink

      public Element createLink(Element onode)