Référence de la classe KoLinkVariable

#include <KoVariable.h>

Graphe d'héritage de KoLinkVariable:

[légende]
Graphe de collaboration de KoLinkVariable:
[légende]
Liste de tous les membres

Fonctions membres publiques

 KoLinkVariable (KoTextDocument *textdoc, const QString &_linkName, const QString &_ulr, KoVariableFormat *varFormat, KoVariableCollection *_varColl)
virtual void drawCustomItem (QPainter *p, int x, int y, int wpix, int hpix, int ascentpix, int, int, int, int, const QColorGroup &cg, bool selected, int offset, bool drawingShadow)
virtual VariableType type () const
virtual QString fieldCode ()
virtual void saveVariable (QDomElement &parentElem)
virtual void load (QDomElement &elem)
virtual void loadOasis (const QDomElement &elem, KoOasisContext &context)
virtual void saveOasis (KoXmlWriter &writer, KoSavingContext &context) const
virtual QString text (bool realValue=false)
QString value () const
QString url () const
virtual void recalc ()
void setLink (const QString &_linkName, const QString &_url)

Fonctions membres publiques statiques

static QStringList actionTexts ()

Attributs protégés

QString m_url

Description détaillée

Définition à la ligne 698 du fichier KoVariable.h.


Documentation des contructeurs et destructeur

KoLinkVariable::KoLinkVariable ( KoTextDocument textdoc,
const QString &  _linkName,
const QString &  _ulr,
KoVariableFormat varFormat,
KoVariableCollection _varColl 
)

Définition à la ligne 2436 du fichier KoVariable.cpp.

Références KoVariable::m_varValue.


Documentation des fonctions membres

void KoLinkVariable::drawCustomItem ( QPainter *  p,
int  x,
int  y,
int  wpix,
int  hpix,
int  ascentpix,
int  ,
int  ,
int  ,
int  ,
const QColorGroup &  cg,
bool  selected,
int  offset,
bool  drawingShadow 
) [virtual]

All coordinates are in pixels.

Réimplémentée à partir de KoVariable.

Définition à la ligne 2506 du fichier KoVariable.cpp.

Références KoTextFormat::color(), KoVariableSettings::displayLink(), KoVariable::drawCustomItemHelper(), KoTextCustomItem::format(), KoVariable::m_varColl, KoTextDocument::paintingZoomHandler(), KoTextFormat::screenFont(), KoTextCustomItem::textDocument(), KoVariableSettings::underlineLink(), et KoVariableCollection::variableSetting().

Voici le graphe d'appel pour cette fonction :

virtual VariableType KoLinkVariable::type (  )  const [inline, virtual]

Implémente KoVariable.

Définition à la ligne 704 du fichier KoVariable.h.

Références VT_LINK.

QStringList KoLinkVariable::actionTexts (  )  [static]

Définition à la ligne 2500 du fichier KoVariable.cpp.

QString KoLinkVariable::fieldCode (  )  [virtual]

Réimplémentée à partir de KoVariable.

Définition à la ligne 2443 du fichier KoVariable.cpp.

Référencé par text().

Voici le graphe d'appel pour cette fonction :

void KoLinkVariable::saveVariable ( QDomElement &  parentElem  )  [virtual]

Variable should reimplement this to implement saving.

Implémente KoVariable.

Définition à la ligne 2476 du fichier KoVariable.cpp.

Références m_url, et KoVariable::m_varValue.

void KoLinkVariable::load ( QDomElement &  elem  )  [virtual]

Réimplémentée à partir de KoVariable.

Définition à la ligne 2484 du fichier KoVariable.cpp.

Références KoVariable::load(), m_url, et KoVariable::m_varValue.

Voici le graphe d'appel pour cette fonction :

void KoLinkVariable::loadOasis ( const QDomElement &  elem,
KoOasisContext context 
) [virtual]

Réimplémentée à partir de KoVariable.

Définition à la ligne 2448 du fichier KoVariable.cpp.

Références m_url, KoVariable::m_varValue, KoXmlNS::text, et KoXmlNS::xlink.

void KoLinkVariable::saveOasis ( KoXmlWriter writer,
KoSavingContext context 
) const [virtual]

Save to Oasis XML

Réimplémentée à partir de KoVariable.

Définition à la ligne 2456 du fichier KoVariable.cpp.

Références KoXmlWriter::addAttribute(), KoXmlWriter::addTextNode(), KoXmlWriter::endElement(), m_url, KoVariable::m_varValue, et KoXmlWriter::startElement().

Voici le graphe d'appel pour cette fonction :

QString KoLinkVariable::text ( bool  realValue = false  )  [virtual]

Returns the text to be displayed for this variable It doesn't need to be cached, convert() is fast, and it's the actual value (date, time etc.) that is cached in the variable already.

Réimplémentée à partir de KoVariable.

Définition à la ligne 2468 du fichier KoVariable.cpp.

Références KoVariableSettings::displayFieldCode(), fieldCode(), KoVariable::m_varColl, value(), et KoVariableCollection::variableSetting().

Voici le graphe d'appel pour cette fonction :

QString KoLinkVariable::value ( void   )  const [inline]

Définition à la ligne 716 du fichier KoVariable.h.

Référencé par KoTextViewIface::changeLinkVariableUrl(), KoTextViewIface::linkVariableName(), KoTextView::removeLink(), et text().

Voici le graphe d'appel pour cette fonction :

QString KoLinkVariable::url (  )  const [inline]

Définition à la ligne 717 du fichier KoVariable.h.

Référencé par KoTextViewIface::changeLinkVariableName(), KoTextView::copyLink(), et KoTextViewIface::linkVariableUrl().

Voici le graphe d'appel pour cette fonction :

void KoLinkVariable::recalc (  )  [virtual]

Reimplemented by KoVariable to recalculate the value. It exists at the KoTextCustomItem level so that KoTextParag::setCustomItem can call it to set the initial value. This should call always resize().

Réimplémentée à partir de KoTextCustomItem.

Définition à la ligne 2495 du fichier KoVariable.cpp.

Références KoVariable::resize().

Référencé par KoTextViewIface::changeLinkVariableName(), et KoTextViewIface::changeLinkVariableUrl().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoLinkVariable::setLink ( const QString &  _linkName,
const QString &  _url 
) [inline]

Définition à la ligne 721 du fichier KoVariable.h.

Référencé par KoTextViewIface::changeLinkVariableName(), et KoTextViewIface::changeLinkVariableUrl().

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

QString KoLinkVariable::m_url [protected]

Définition à la ligne 728 du fichier KoVariable.h.

Référencé par load(), loadOasis(), saveOasis(), et saveVariable().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:46:29 2006 pour KPlato par  doxygen 1.5.1-p1