subclass representing an instruction node which draws a (possibly colored) box around it's contents i.e. it represents instructions like \fbox{
...}, \colorbox{color}{
...}, ...
More...
|
| JKQTMathTextBoxInstructionNode (JKQTMathText *parent, const QString &name, JKQTMathTextNode *child, const QStringList ¶meters=QStringList()) |
|
virtual | ~JKQTMathTextBoxInstructionNode () override |
|
virtual double | draw (QPainter &painter, double x, double y, JKQTMathTextEnvironment currentEv) const override |
| draw the contents at the designated position
|
|
virtual QString | getTypeName () const override |
| return the name of this class as a string
|
|
virtual bool | toHtml (QString &html, JKQTMathTextEnvironment currentEv, JKQTMathTextEnvironment defaultEv) const override |
| convert node to HTML and returns true on success
|
|
| JKQTMathTextInstruction1Node (JKQTMathText *parent, const QString &name, JKQTMathTextNode *child, const QStringList ¶meters=QStringList()) |
|
virtual | ~JKQTMathTextInstruction1Node () override |
|
const QString & | getInstructionName () const |
| instruction name
|
|
const QStringList & | getParameters () const |
| additional string-parameters
|
|
| JKQTMathTextSingleChildNode (JKQTMathTextNode *_child, JKQTMathText *parentMathText) |
|
virtual | ~JKQTMathTextSingleChildNode () override |
|
JKQTMathTextNode * | getChild () |
| child node of this node
|
|
const JKQTMathTextNode * | getChild () const |
| child node of this node
|
|
bool | hasChild () const |
| returns true if the child is valie (!=nullptr )
|
|
void | replaceAndDeleteChild (JKQTMathTextNode *newChild) |
| replaces the child node with the node newChild , deletes the replaced old node
|
|
JKQTMathTextNode * | replaceChild (JKQTMathTextNode *newChild) |
| replaces the child node with the node newChild , returns the replaced old node
|
|
virtual void | setDrawBoxes (bool draw) override |
| enables the drawing of colored boxes (for DEBUGGING) around the actual output of the node
|
|
| JKQTMathTextNode (const JKQTMathTextNode &)=delete |
|
| JKQTMathTextNode (JKQTMathText *parentMathText) |
|
virtual | ~JKQTMathTextNode () |
|
bool | getDrawBoxes () const |
| returns the drawing of colored boxes (for DEBUGGING) around the actual output of the node is enabled
|
|
JKQTMathTextNode * | getParentNode () |
| parent node of this node (i.e. one level up, ode nullptr )
|
|
const JKQTMathTextNode * | getParentNode () const |
| parent node of this node (i.e. one level up, ode nullptr )
|
|
JKQTMathTextNodeSize | getSize (QPainter &painter, JKQTMathTextEnvironment currentEv) const |
| determine the size of the node, calls getSizeInternal() implementation of the actual type
|
|
bool | isSubSuperscriptAboveBelowNode () const |
| if true then following sub- and/or superscripts are placed below and above the node, not besides it. This is activated when \sum\limits_{sub}^{sup} is used in LaTeX instead of simply \sum_{sub}^{sup}
|
|
JKQTMathTextNode & | operator= (const JKQTMathTextNode &)=delete |
|
void | setParentNode (JKQTMathTextNode *node) |
| parent node of this node (i.e. one level up, ode nullptr )
|
|
void | setSubSuperscriptAboveBelowNode (bool __value) |
| if true then following sub- and/or superscripts are placed below and above the node, not besides it. This is activated when \sum\limits_{sub}^{sup} is used in LaTeX instead of simply \sum_{sub}^{sup}
|
|
|
static size_t | countParametersOfInstruction (const QString &instructionName) |
| returns the number of additional string parameters, required for the given instructionName
|
|
static void | modifyInMathEnvironment (const QString &instructionName, bool &insideMath, bool &insideMathTextStyle, const QStringList ¶ms=QStringList()) |
| sets insideMath to true if inside the node is to be parsed in math mode and false else
|
|
static bool | supportsInstructionName (const QString &instructionName) |
| returns true, if the given instructionName can be represented by this node
|
|
static double | getNonItalicXCorretion (QPainter &painter, double width_potentiallyitalic, const JKQTMathTextEnvironment &ev_potentiallyitalic, const JKQTMathTextNode *child) |
| calculates the x-size-difference between the given (probably) italic (width externally calculated: width_potentiallyitalic, ev_potentiallyitalic) and the non-italic version of child
|
|
|
virtual JKQTMathTextNodeSize | getSizeInternal (QPainter &painter, JKQTMathTextEnvironment currentEv) const override |
| determine the size of the node, overwrite this function in derived classes
|
|
bool | setupMTenvironment (JKQTMathTextEnvironment &ev) const |
| set all properties in ev, as appropriate for the represented instruction
|
|
void | addToErrorList (const QString &error) |
| adds a new error to the JKQTMathText referenced by parentMathText
|
|
void | doDrawBoxes (QPainter &painter, double x, double y, const JKQTMathTextNodeSize &size) const |
| draws colored boxes (for DEBUGGING) around the actual output of the node
|
|
void | doDrawBoxes (QPainter &painter, double x, double y, JKQTMathTextEnvironment currentEv) const |
| draws colored boxes (for DEBUGGING) around the actual output of the node
|
|
template<class T > |
QList< T * > | getParents () |
| returns the list of parent, parent-of-parent, ... that can be cast to type T
|
|
template<class T > |
QList< const T * > | getParents () const |
| returns the list of parent, parent-of-parent, ... that can be cast to type T
|
|
subclass representing an instruction node which draws a (possibly colored) box around it's contents i.e. it represents instructions like \fbox{
...}, \colorbox{color}{
...}, ...