• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

cantor/src/lib

  • Cantor
  • ImageResult
Public Types | Public Member Functions | List of all members
Cantor::ImageResult Class Reference

#include <imageresult.h>

Inheritance diagram for Cantor::ImageResult:
Inheritance graph
[legend]

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

ImageResult::ImageResult ( const KUrl &  url,
const QString &  alt = QString() 
)
explicit

Definition at line 42 of file imageresult.cpp.

ImageResult::~ImageResult ( )

Definition at line 48 of file imageresult.cpp.

Member Function Documentation

QVariant ImageResult::data ( )
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.

QString ImageResult::mimeType ( )
virtual

returns the mimetype, this result is

Returns
the mimetype, this result is

Implements Cantor::Result.

Definition at line 81 of file imageresult.cpp.

void ImageResult::save ( const QString &  filename)
virtual

saves this to a file

Parameters
filenamename of the file

Implements Cantor::Result.

Definition at line 110 of file imageresult.cpp.

void ImageResult::saveAdditionalData ( KZip *  archive)
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.

QString ImageResult::toHtml ( )
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.

QString ImageResult::toLatex ( )
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.

QDomElement ImageResult::toXml ( QDomDocument &  doc)
virtual

returns a DomElement, containing the information of the result

Parameters
docDomDocument used for storing the information
Returns
DomElement, containing the information of the result

Implements Cantor::Result.

Definition at line 94 of file imageresult.cpp.

int ImageResult::type ( )
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.

KUrl ImageResult::url ( )
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:
  • imageresult.h
  • imageresult.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

cantor/src/lib

Skip menu "cantor/src/lib"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal