cantor/src/lib
#include <latexresult.h>
Public Types | |
enum | { Type =7 } |
Public Types inherited from Cantor::EpsResult | |
enum | { Type =5 } |
Public Member Functions | |
LatexResult (const QString &code, const KUrl &url, const QString &plain=QString()) | |
~LatexResult () | |
QString | code () |
QVariant | data () |
bool | isCodeShown () |
QString | mimeType () |
QString | plain () |
void | save (const QString &filename) |
void | showCode () |
void | showRendered () |
QString | toHtml () |
QString | toLatex () |
QDomElement | toXml (QDomDocument &doc) |
int | type () |
Public Member Functions inherited from Cantor::EpsResult | |
EpsResult (const KUrl &url) | |
~EpsResult () | |
void | saveAdditionalData (KZip *archive) |
KUrl | url () |
Public Member Functions inherited from Cantor::Result | |
Result () | |
virtual | ~Result () |
Detailed Description
Class used for LaTeX results, it is basically an Eps result, but it exports a different type, and additionally stores the LaTeX code, used to generate the Eps, so it can be retrieved later.
Definition at line 35 of file latexresult.h.
Member Enumeration Documentation
anonymous enum |
Enumerator | |
---|---|
Type |
Definition at line 38 of file latexresult.h.
Constructor & Destructor Documentation
LatexResult::LatexResult | ( | const QString & | code, |
const KUrl & | url, | ||
const QString & | plain = QString() |
||
) |
Definition at line 41 of file latexresult.cpp.
LatexResult::~LatexResult | ( | ) |
Definition at line 48 of file latexresult.cpp.
Member Function Documentation
QString LatexResult::code | ( | ) |
Definition at line 66 of file latexresult.cpp.
|
virtual |
returns data associated with this result (text/images/etc)
- Returns
- data associated with this result
Reimplemented from Cantor::EpsResult.
Definition at line 91 of file latexresult.cpp.
bool LatexResult::isCodeShown | ( | ) |
Definition at line 76 of file latexresult.cpp.
|
virtual |
returns the mimetype, this result is
- Returns
- the mimetype, this result is
Reimplemented from Cantor::EpsResult.
Definition at line 58 of file latexresult.cpp.
QString LatexResult::plain | ( | ) |
Definition at line 71 of file latexresult.cpp.
|
virtual |
saves this to a file
- Parameters
-
filename name of the file
Reimplemented from Cantor::EpsResult.
Definition at line 131 of file latexresult.cpp.
void LatexResult::showCode | ( | ) |
Definition at line 81 of file latexresult.cpp.
void LatexResult::showRendered | ( | ) |
Definition at line 86 of file latexresult.cpp.
|
virtual |
returns html code, that represents this result, e.g.
an img tag for images
- Returns
- html code representing this result
Reimplemented from Cantor::EpsResult.
Definition at line 99 of file latexresult.cpp.
|
virtual |
returns latex code, that represents this result e.g.
a includegraphics command for images it falls back to toHtml if not implemented
- Returns
- latex code representing this result
Reimplemented from Cantor::EpsResult.
Definition at line 113 of file latexresult.cpp.
|
virtual |
returns a DomElement, containing the information of the result
- Parameters
-
doc DomDocument used for storing the information
- Returns
- DomElement, containing the information of the result
Reimplemented from Cantor::EpsResult.
Definition at line 118 of file latexresult.cpp.
|
virtual |
returns an unique number, representing the type of this result.
Every subclass should define their own Type.
- Returns
- the type of this result
Reimplemented from Cantor::EpsResult.
Definition at line 53 of file latexresult.cpp.
The documentation for this class was generated from the following files:
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.