cantor/src/lib
#include <textresult.h>
Public Types | |
enum | { Type =1 } |
enum | Format { PlainTextFormat, LatexFormat } |
Public Member Functions | |
TextResult (const QString &text) | |
TextResult (const QString &text, const QString &plain) | |
~TextResult () | |
QVariant | data () |
Format | format () |
QString | mimeType () |
QString | plain () |
void | save (const QString &filename) |
void | setFormat (Format f) |
QString | toHtml () |
QDomElement | toXml (QDomDocument &doc) |
int | type () |
Public Member Functions inherited from Cantor::Result | |
Result () | |
virtual | ~Result () |
virtual void | saveAdditionalData (KZip *archive) |
virtual QString | toLatex () |
virtual KUrl | url () |
Detailed Description
Definition at line 32 of file textresult.h.
Member Enumeration Documentation
anonymous enum |
Enumerator | |
---|---|
Type |
Definition at line 35 of file textresult.h.
Enumerator | |
---|---|
PlainTextFormat | |
LatexFormat |
Definition at line 36 of file textresult.h.
Constructor & Destructor Documentation
TextResult::TextResult | ( | const QString & | text | ) |
Definition at line 42 of file textresult.cpp.
Definition at line 48 of file textresult.cpp.
TextResult::~TextResult | ( | ) |
Definition at line 55 of file textresult.cpp.
Member Function Documentation
|
virtual |
returns data associated with this result (text/images/etc)
- Returns
- data associated with this result
Implements Cantor::Result.
Definition at line 67 of file textresult.cpp.
TextResult::Format TextResult::format | ( | ) |
Definition at line 91 of file textresult.cpp.
|
virtual |
returns the mimetype, this result is
- Returns
- the mimetype, this result is
Implements Cantor::Result.
Definition at line 82 of file textresult.cpp.
QString TextResult::plain | ( | ) |
Definition at line 72 of file textresult.cpp.
|
virtual |
saves this to a file
- Parameters
-
filename name of the file
Implements Cantor::Result.
Definition at line 112 of file textresult.cpp.
void TextResult::setFormat | ( | TextResult::Format | f | ) |
Definition at line 96 of file textresult.cpp.
|
virtual |
returns html code, that represents this result, e.g.
an img tag for images
- Returns
- html code representing this result
Implements Cantor::Result.
Definition at line 60 of file textresult.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
Implements Cantor::Result.
Definition at line 101 of file textresult.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
Implements Cantor::Result.
Definition at line 77 of file textresult.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.