cantor/src/lib
expression.cpp
Go to the documentation of this file.
195 LatexResult* latex=new LatexResult(r->data().toString().trimmed(), KUrl(renderer->imagePath()), r->plain());
201 LatexResult* latex=new LatexResult(previousLatexResult->data().toString().trimmed(), KUrl(renderer->imagePath()), previousLatexResult->plain());
QString errorMessage()
returns the Error message, if an error occurred during the evaluation of the expression.
Definition: expression.cpp:103
void addHeader(const QString &header)
Definition: latexrenderer.cpp:91
void setInternal(bool internal)
mark this expression as an internal expression, so for example latex will not be run on it ...
Definition: expression.cpp:270
QDomNode appendChild(const QDomNode &newChild)
void setFinishingBehavior(FinishingBehavior behavior)
set the finishing behaviour
Definition: expression.cpp:260
void statusChanged(Cantor::Expression::Status status)
the status of the Expression has changed.
virtual void addInformation(const QString &information)
Adds some additional information/input to this expression.
Definition: expression.cpp:239
QObject * sender() const
FinishingBehavior finishingBehavior()
get the Expressions finishing behaviour
Definition: expression.cpp:265
Definition: textresult.h:36
Base class for different results, like text, image, animation.
Definition: result.h:39
QVariant data()
returns data associated with this result (text/images/etc)
Definition: textresult.cpp:67
FinishingBehavior
Enum indicating how this Expression behaves on finishing.
Definition: expression.h:62
void saveAdditionalData(KZip *archive)
saves all the data, that can't be saved in xml in an extra file in the archive.
Definition: expression.cpp:232
< The Object will delete itself when finished.
Definition: expression.h:64
int nextExpressionId()
Returns the next available Expression id It is basically a counter, incremented for each new Expressi...
Definition: session.cpp:119
Definition: textresult.h:32
virtual QString toHtml()=0
returns html code, that represents this result, e.g.
bool isEmpty() const
QString trimmed() const
QVariant data()
returns data associated with this result (text/images/etc)
Definition: latexresult.cpp:91
virtual QDomElement toXml(QDomDocument &doc)=0
returns a DomElement, containing the information of the result
Definition: latexrenderer.h:30
void deleteLater()
bool isInternal()
returns whether or not this expression is internal, or comes from the user
Definition: expression.cpp:275
QDomText createTextNode(const QString &value)
Definition: textresult.h:35
virtual QString additionalLatexHeaders()
Definition: expression.cpp:244
bool renderingSuccessful() const
Definition: latexrenderer.cpp:132
virtual int type()=0
returns an unique number, representing the type of this result.
void setCommand(const QString &cmd)
Sets the command, represented by this Expression.
Definition: expression.cpp:88
QDomElement createElement(const QString &tagName)
The Running of the Expression is finished sucessfully.
Definition: expression.h:54
virtual void saveAdditionalData(KZip *archive)
saves all the data, that can't be saved in xml in an extra file in the archive.
Definition: result.cpp:58
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setLatexCode(const QString &src)
Definition: latexrenderer.cpp:81
QString toString() const
QDomElement toXml(QDomDocument &doc)
returns an xml representation of this expression used for saving the worksheet
Definition: expression.cpp:215
Class used for LaTeX results, it is basically an Eps result, but it exports a different type...
Definition: latexresult.h:35
Definition: latexresult.h:38
void setStatus(Status status)
Set the status statusChanged will be emitted.
Definition: expression.cpp:150
The Session object is the main class used to interact with a Backend.
Definition: session.h:50
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.