subclass representing an instruction node which modify the current JKQTMathTextEnvironment, in the current block. This implements functions like \bf
or \color{COL}
More...
#include <jkqtmathtextmodifyenvironmentnode.h>
|
| JKQTMathTextModifiedEnvironmentInstructionNode (JKQTMathText *parent_, const QString &instructionName_, const QStringList ¶meters_=QStringList()) |
|
virtual | ~JKQTMathTextModifiedEnvironmentInstructionNode () override |
|
const QString & | getInstructionName () const |
| instruction name
|
|
const QStringList & | getParameters () const |
| additional string-parameters
|
|
virtual QString | getTypeName () const override |
| return the name of this class as a string
|
|
virtual void | modifyEnvironment (JKQTMathTextEnvironment ¤tEv) const override |
| modifies the fiven JKQTMathTextEnvironment currrentEv
|
|
| JKQTMathTextNonDrawingBaseNode (JKQTMathText *parent) |
|
virtual | ~JKQTMathTextNonDrawingBaseNode () override |
|
virtual double | draw (QPainter &painter, double x, double y, JKQTMathTextEnvironment currentEv) const override final |
| draw the contents at the designated position
|
|
virtual bool | toHtml (QString &html, JKQTMathTextEnvironment currentEv, JKQTMathTextEnvironment defaultEv) const override final |
| convert node to HTML and returns true on success
|
|
| 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 |
|
virtual void | setDrawBoxes (bool draw) |
| enables the drawing of colored boxes (for DEBUGGING) around the actual output of the node
|
|
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}
|
|
virtual | ~JKQTMathTextModifyEnvironmentNodeMixIn () |
|
|
virtual JKQTMathTextNodeSize | getSizeInternal (QPainter &painter, JKQTMathTextEnvironment currentEv) const override final |
| determine the size of the node, overwrite this function in derived classes
|
|
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 modify the current JKQTMathTextEnvironment, in the current block. This implements functions like \bf
or \color{COL}
- See also
- JKQTMathTextModifyEnvironmentNodeMixIn
◆ JKQTMathTextModifiedEnvironmentInstructionNode()
JKQTMathTextModifiedEnvironmentInstructionNode::JKQTMathTextModifiedEnvironmentInstructionNode |
( |
JKQTMathText * |
parent_, |
|
|
const QString & |
instructionName_, |
|
|
const QStringList & |
parameters_ = QStringList() |
|
) |
| |
|
explicit |
◆ ~JKQTMathTextModifiedEnvironmentInstructionNode()
virtual JKQTMathTextModifiedEnvironmentInstructionNode::~JKQTMathTextModifiedEnvironmentInstructionNode |
( |
| ) |
|
|
overridevirtual |
◆ countParametersOfInstruction()
static size_t JKQTMathTextModifiedEnvironmentInstructionNode::countParametersOfInstruction |
( |
const QString & |
instructionName | ) |
|
|
static |
returns the number of additional string parameters, required for the given instructionName
- See also
- instructions()
◆ getInstructionName()
const QString & JKQTMathTextModifiedEnvironmentInstructionNode::getInstructionName |
( |
| ) |
const |
◆ getParameters()
const QStringList & JKQTMathTextModifiedEnvironmentInstructionNode::getParameters |
( |
| ) |
const |
additional string-parameters
◆ getTypeName()
virtual QString JKQTMathTextModifiedEnvironmentInstructionNode::getTypeName |
( |
| ) |
const |
|
overridevirtual |
◆ instructions()
static const QHash< QString, InstructionProperties > & JKQTMathTextModifiedEnvironmentInstructionNode::instructions |
( |
| ) |
|
|
staticprotected |
defines all implemented instructions in this node
- Note
- this is the customization point for new instructions!
◆ modifyEnvironment()
virtual void JKQTMathTextModifiedEnvironmentInstructionNode::modifyEnvironment |
( |
JKQTMathTextEnvironment & |
currentEv | ) |
const |
|
overridevirtual |
◆ modifyInMathTextStyleEnvironment()
static void JKQTMathTextModifiedEnvironmentInstructionNode::modifyInMathTextStyleEnvironment |
( |
const QString & |
instructionName, |
|
|
bool & |
insideMathTextStyle, |
|
|
JKQTMathText * |
parentMathText, |
|
|
const QStringList & |
params = QStringList() |
|
) |
| |
|
static |
sets insideMathTextStyle to true
if textstyle is set inside math
- See also
- instructions()
◆ supportsInstructionName()
static bool JKQTMathTextModifiedEnvironmentInstructionNode::supportsInstructionName |
( |
const QString & |
instructionName | ) |
|
|
static |
returns true, if the given instructionName can be represented by this node
- See also
- instructions()
◆ instructionName
QString JKQTMathTextModifiedEnvironmentInstructionNode::instructionName |
|
protected |
◆ parameters
QStringList JKQTMathTextModifiedEnvironmentInstructionNode::parameters |
|
protected |
additional string-parameters
The documentation for this class was generated from the following file: