public class MathConverter extends ConverterHelper
config, converter, ofr
Constructor | Description |
---|---|
MathConverter(OfficeReader ofr,
XhtmlConfig config,
Converter converter,
boolean bSupportMathML) |
Create a new
MathConverter |
Modifier and Type | Method | 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) |
applyStyle, getCellSc, getDrawCv, getFrameSc, getHeadingSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextSc
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)