public class MathConverter
extends java.lang.Object
Constructor and Description |
---|
MathConverter(OfficeReader ofr,
XhtmlConfig config,
Converter converter,
boolean bSupportMathML)
Create a new
MathConverter |
Modifier and Type | Method and Description |
---|---|
void |
convert(org.w3c.dom.Element image,
org.w3c.dom.Element onode,
org.w3c.dom.Node hnode,
boolean bAllowDisplayStyle)
Convert a formula
|
boolean |
convertTexMathsEquation(org.w3c.dom.Element onode,
org.w3c.dom.Element hnodeBlock,
org.w3c.dom.Element hnodeInline,
int nMode) |
public MathConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, boolean bSupportMathML)
MathConverter
ofr
- the OfficeReader to query about the documentconfig
- the configuration determining the type of exportconverter
- the converter instancebSupportMathML
- true if the formula should be exported as MathMLpublic void convert(org.w3c.dom.Element image, org.w3c.dom.Element onode, org.w3c.dom.Node hnode, boolean bAllowDisplayStyle)
image
- image version of the formula (or null if no image is available)onode
- the math nodehnode
- the xhtml node to which content should be addedpublic boolean convertTexMathsEquation(org.w3c.dom.Element onode, org.w3c.dom.Element hnodeBlock, org.w3c.dom.Element hnodeInline, int nMode)