kformula/flake

Dictionary Class Reference

Dictionary to look up operator attributes and entity mappings. More...

#include <Dictionary.h>

List of all members.

Public Member Functions

 Dictionary ()
bool accent () const
bool fence () const
Form form () const
bool largeOp () const
QString lSpace () const
QChar mapEntity (const QString &entity)
double maxSize () const
double minSize () const
bool moveableLimits () const
bool queryOperator (const QString &queriedOperator, Form form)
QString rSpace () const
bool separator () const
bool stretchy () const
bool symmetric () const

Detailed Description

Dictionary to look up operator attributes and entity mappings.

In section 3.2.5.2 of the MathML spec the numerous attributes for the mo element are described. Further in section 3.2.5.7 the spec states that a MathML renderer should have a dictionary to look up those attributes values. This class implements such a dictionary by a script generated source file. It also implements a lookup method for entities as MathML allows a number of them. The method mapEntity maps a given "&...;" representation to the corresponding QChar.

Definition at line 44 of file Dictionary.h.


Constructor & Destructor Documentation

Dictionary::Dictionary (  ) 

Standart constructor sets default values to operator attributes.

Definition at line 25 of file Dictionary.cpp.


Member Function Documentation

bool Dictionary::accent (  )  const
bool Dictionary::fence (  )  const
Returns:
The fence value of the currently queried operator
Form Dictionary::form (  )  const
Returns:
The form value of the currently queried operator
bool Dictionary::largeOp (  )  const
QString Dictionary::lSpace (  )  const
Returns:
The lspace value of the currently queried operator

Definition at line 39 of file Dictionary.cpp.

QChar Dictionary::mapEntity ( const QString entity  ) 
Returns:
The mapped entity represented as a QChar

Definition at line 54 of file Dictionary.cpp.

double Dictionary::maxSize (  )  const
Returns:
The maxsize value of the currently queried operator
double Dictionary::minSize (  )  const
Returns:
The minsize value of the currently queried operator
bool Dictionary::moveableLimits (  )  const
bool Dictionary::queryOperator ( const QString queriedOperator,
Form  form 
)

Definition at line 2111 of file Dictionary.cpp.

QString Dictionary::rSpace (  )  const
Returns:
The rspace value of the currently queried operator

Definition at line 44 of file Dictionary.cpp.

bool Dictionary::separator (  )  const
Returns:
The separator value of the currently queried operator
bool Dictionary::stretchy (  )  const
Returns:
The stretchy value of the currently queried operator

Definition at line 49 of file Dictionary.cpp.

bool Dictionary::symmetric (  )  const
Returns:
The symmetric value of the currently queried operator

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