cantor/src/lib
#include <imageresult.h>
Public Types | |
enum | { Type =2 } |
Public Member Functions | |
ImageResult (const KUrl &url, const QString &alt=QString()) | |
~ImageResult () | |
QVariant | data () |
QString | mimeType () |
void | save (const QString &filename) |
void | saveAdditionalData (KZip *archive) |
QString | toHtml () |
QString | toLatex () |
QDomElement | toXml (QDomDocument &doc) |
int | type () |
KUrl | url () |
Public Member Functions inherited from Cantor::Result | |
Result () | |
virtual | ~Result () |
Detailed Description
Definition at line 32 of file imageresult.h.
Member Enumeration Documentation
anonymous enum |
Enumerator | |
---|---|
Type |
Definition at line 35 of file imageresult.h.
Constructor & Destructor Documentation
Definition at line 42 of file imageresult.cpp.
ImageResult::~ImageResult | ( | ) |
Definition at line 48 of file imageresult.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 63 of file imageresult.cpp.
|
virtual |
returns the mimetype, this result is
- Returns
- the mimetype, this result is
Implements Cantor::Result.
Definition at line 81 of file imageresult.cpp.
|
virtual |
saves this to a file
- Parameters
-
filename name of the file
Implements Cantor::Result.
Definition at line 110 of file imageresult.cpp.
|
virtual |
saves all the data, that can't be saved in xml in an extra file in the archive.
Reimplemented from Cantor::Result.
Definition at line 105 of file imageresult.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 53 of file imageresult.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::Result.
Definition at line 58 of file imageresult.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 94 of file imageresult.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 76 of file imageresult.cpp.
|
virtual |
returns an url, data for this result resides at
- Returns
- an url, data for this result resides at
Reimplemented from Cantor::Result.
Definition at line 71 of file imageresult.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.