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

cantor/src/lib

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

#include <textresult.h>

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

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.

enum Cantor::TextResult::Format
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.

TextResult::TextResult ( const QString &  text,
const QString &  plain 
)

Definition at line 48 of file textresult.cpp.

TextResult::~TextResult ( )

Definition at line 55 of file textresult.cpp.

Member Function Documentation

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

QString TextResult::mimeType ( )
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.

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

saves this to a file

Parameters
filenamename 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.

QString TextResult::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 60 of file textresult.cpp.

QDomElement TextResult::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 101 of file textresult.cpp.

int TextResult::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 77 of file textresult.cpp.


The documentation for this class was generated from the following files:
  • textresult.h
  • textresult.cpp
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

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
  • 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