LibreOffice Module hwpfilter (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Formula Class Referencefinal

#include <formula.h>

Collaboration diagram for Formula:
[legend]

Public Member Functions

 Formula (char *_eq)
 
void setDocumentHandler (Reference< XDocumentHandler > const &xHandler)
 
void setAttributeListImpl (AttributeListImpl *p)
 
void parse ()
 

Private Member Functions

void trim ()
 
void makeMathML (Node *res)
 
void makeLines (Node *res)
 
void makeLine (Node *res)
 
void makeExprList (Node *res)
 
void makeExpr (Node *res)
 
void makePrimary (Node *res)
 
void makeIdentifier (Node *res)
 
void makeSubSup (Node *res)
 
void makeFraction (Node *res)
 
void makeDecoration (Node *res)
 
void makeRoot (Node *res)
 
void makeAccent (Node *res)
 
void makeParenth (Node *res)
 
void makeFence (Node *res)
 
void makeBracket (Node *res)
 
void makeBlock (Node *res)
 

Private Attributes

Reference< XDocumentHandler > m_rxDocumentHandler
 
rtl::Reference< AttributeListImplmxList
 
char * eq
 

Detailed Description

Definition at line 31 of file formula.h.

Constructor & Destructor Documentation

◆ Formula()

Formula::Formula ( char *  _eq)
inlineexplicit

Definition at line 34 of file formula.h.

References eq, and trim().

Member Function Documentation

◆ makeAccent()

void Formula::makeAccent ( Node res)
private

Definition at line 458 of file formula.cxx.

References makeDecoration().

Referenced by makeExpr().

◆ makeBlock()

void Formula::makeBlock ( Node res)
private

Definition at line 546 of file formula.cxx.

References inde, inds, makeExprList(), and mxList.

Referenced by makeBracket(), makeDecoration(), makeExpr(), makeFraction(), makeRoot(), and makeSubSup().

◆ makeBracket()

void Formula::makeBracket ( Node res)
private

Definition at line 541 of file formula.cxx.

References makeBlock().

Referenced by makeRoot().

◆ makeDecoration()

void Formula::makeDecoration ( Node res)
private

Definition at line 367 of file formula.cxx.

References fromHcharStringToOUString(), getMathMLEntity(), inde, indo, inds, makeBlock(), and mxList.

Referenced by makeAccent(), and makeExpr().

◆ makeExpr()

void Formula::makeExpr ( Node res)
private

◆ makeExprList()

void Formula::makeExprList ( Node res)
private

Definition at line 105 of file formula.cxx.

References ID_EXPRLIST, makeExpr(), and makeExprList().

Referenced by makeBlock(), makeExprList(), makeFence(), makeFraction(), makeLine(), and makeParenth().

◆ makeFence()

void Formula::makeFence ( Node res)
private

Definition at line 514 of file formula.cxx.

References getMathMLEntity(), inde, inds, makeExprList(), and mxList.

Referenced by makeExpr().

◆ makeFraction()

void Formula::makeFraction ( Node res)
private

Definition at line 316 of file formula.cxx.

References ID_FRACTIONEXPR, inde, inds, makeBlock(), makeExprList(), and mxList.

Referenced by makeExpr().

◆ makeIdentifier()

void Formula::makeIdentifier ( Node res)
private

◆ makeLine()

void Formula::makeLine ( Node res)
private

Definition at line 88 of file formula.cxx.

References inde, inds, makeExprList(), and mxList.

Referenced by makeLines().

◆ makeLines()

void Formula::makeLines ( Node res)
private

Definition at line 73 of file formula.cxx.

References ID_LINES, makeLine(), and makeLines().

Referenced by makeLines(), and makeMathML().

◆ makeMathML()

void Formula::makeMathML ( Node res)
private

Definition at line 45 of file formula.cxx.

References inde, indo, inds, makeLines(), and mxList.

Referenced by parse().

◆ makeParenth()

void Formula::makeParenth ( Node res)
private

Definition at line 462 of file formula.cxx.

References ID_PARENTH, inde, indo, inds, makeExprList(), and mxList.

Referenced by makeExpr().

◆ makePrimary()

void Formula::makePrimary ( Node res)
private

Definition at line 248 of file formula.cxx.

References ID_PRIMARYEXPR, makeIdentifier(), and makePrimary().

Referenced by makeExpr(), and makePrimary().

◆ makeRoot()

void Formula::makeRoot ( Node res)
private

Definition at line 420 of file formula.cxx.

References ID_SQRTEXPR, inde, inds, makeBlock(), makeBracket(), and mxList.

Referenced by makeExpr().

◆ makeSubSup()

void Formula::makeSubSup ( Node res)
private

Definition at line 265 of file formula.cxx.

References ID_SUBEXPR, ID_SUBSUPEXPR, ID_SUPEXPR, inde, inds, makeBlock(), makeExpr(), and mxList.

Referenced by makeExpr().

◆ parse()

void Formula::parse ( )

Definition at line 566 of file formula.cxx.

References a, eq, eq2latex(), i, idx, mainParse(), makeMathML(), and nodelist.

Referenced by HwpReader::makeFormula().

◆ setAttributeListImpl()

void Formula::setAttributeListImpl ( AttributeListImpl p)
inline

Definition at line 44 of file formula.h.

References mxList, and p.

Referenced by HwpReader::makeFormula().

◆ setDocumentHandler()

void Formula::setDocumentHandler ( Reference< XDocumentHandler > const &  xHandler)
inline

Definition at line 40 of file formula.h.

References m_rxDocumentHandler.

Referenced by HwpReader::makeFormula().

◆ trim()

void Formula::trim ( )
private

Definition at line 617 of file formula.cxx.

References eq, and i.

Referenced by Formula().

Member Data Documentation

◆ eq

char* Formula::eq
private

Definition at line 71 of file formula.h.

Referenced by Formula(), parse(), and trim().

◆ m_rxDocumentHandler

Reference< XDocumentHandler > Formula::m_rxDocumentHandler
private

Definition at line 69 of file formula.h.

Referenced by setDocumentHandler().

◆ mxList

rtl::Reference<AttributeListImpl> Formula::mxList
private

The documentation for this class was generated from the following files: