Référence de la classe KoOasisContext

#include <KoOasisContext.h>

Graphe d'héritage de KoOasisContext:

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

Fonctions membres publiques

 KoOasisContext (KoDocument *doc, KoVariableCollection &varColl, KoOasisStyles &styles, KoStore *store)
 ~KoOasisContext ()
KoVariableCollectionvariableCollection ()
KoListStyleStacklistStyleStack ()
QString currentListStyleName () const
void setCurrentListStyleName (const QString &s)
bool pushListLevelStyle (const QString &listStyleName, int level)
bool pushOutlineListLevelStyle (int level)
 Used for outline levels.
void setCursorPosition (KoTextParag *cursorTextParagraph, int cursorTextIndex)
 Set cursor position (set by KoTextParag upon finding the processing instruction).
KoTextParagcursorTextParagraph () const
int cursorTextIndex () const

Fonctions membres privées

bool pushListLevelStyle (const QString &listStyleName, const QDomElement &fullListStyle, int level)
 
Renvoie:
true on success (a list style was found and pushed)


Attributs privés

KoListStyleStack m_listStyleStack
QString m_currentListStyleName
KoVariableCollectionm_varColl
KoTextParagm_cursorTextParagraph
int m_cursorTextIndex
Private * d

Description détaillée

Used during loading of Oasis format (and discarded at the end of the loading). In addition to what KoOasisLoadingContext stores, this class has 'state' information: a stack with the currently used styles (with its ancestors in the stack), another one with the list styles currently applicable (one item in the stack per list level).

Auteur:
David Faure <faure@kde.org>

Définition à la ligne 47 du fichier KoOasisContext.h.


Documentation des contructeurs et destructeur

KoOasisContext::KoOasisContext ( KoDocument doc,
KoVariableCollection varColl,
KoOasisStyles styles,
KoStore store 
)

Stores reference to the KoOasisStyles parsed by KoDocument. Make sure that the KoOasisStyles instance outlives this KoOasisContext instance. (This is the case during loaiding, when using the KoOasisStyles given by KoDocument)

Paramètres:
doc KoDocument, needed by some field variables
varColl reference to the collection that creates and stores variables (fields)
styles reference to the KoOasisStyles parsed by KoDocument
store pointer to store, if available, for e.g. loading images.

Définition à la ligne 28 du fichier KoOasisContext.cpp.

KoOasisContext::~KoOasisContext (  ) 

Définition à la ligne 90 du fichier KoOasisContext.cpp.


Documentation des fonctions membres

KoVariableCollection& KoOasisContext::variableCollection (  )  [inline]

Définition à la ligne 63 du fichier KoOasisContext.h.

Référencé par KoTextParag::loadOasisSpan(), et KoTextDocument::loadOasisText().

Voici le graphe d'appel pour cette fonction :

KoListStyleStack& KoOasisContext::listStyleStack (  )  [inline]

Définition à la ligne 67 du fichier KoOasisContext.h.

Référencé par KoTextParag::applyListStyle(), KoTextDocument::loadList(), KoParagCounter::loadOasis(), et KoParagStyle::loadStyle().

Voici le graphe d'appel pour cette fonction :

QString KoOasisContext::currentListStyleName (  )  const [inline]

Définition à la ligne 68 du fichier KoOasisContext.h.

Référencé par KoTextDocument::loadList().

Voici le graphe d'appel pour cette fonction :

void KoOasisContext::setCurrentListStyleName ( const QString &  s  )  [inline]

Définition à la ligne 69 du fichier KoOasisContext.h.

Référencé par KoTextDocument::loadList().

Voici le graphe d'appel pour cette fonction :

bool KoOasisContext::pushListLevelStyle ( const QString &  listStyleName,
int  level 
)

Used for lists (numbered paragraphs)

Renvoie:
true on success (a list style was found and pushed)

Définition à la ligne 47 du fichier KoOasisContext.cpp.

Références KoOasisStyles::listStyles(), et KoOasisLoadingContext::oasisStyles().

Référencé par KoTextDocument::loadList(), KoParagStyle::loadStyle(), et pushOutlineListLevelStyle().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoOasisContext::pushOutlineListLevelStyle ( int  level  ) 

Used for outline levels.

Définition à la ligne 58 du fichier KoOasisContext.cpp.

Références KoDom::namedItemNS(), KoOasisLoadingContext::oasisStyles(), pushListLevelStyle(), et KoXmlNS::text.

Référencé par KoTextDocument::loadOasisText(), et KoParagStyle::loadStyle().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoOasisContext::setCursorPosition ( KoTextParag cursorTextParagraph,
int  cursorTextIndex 
)

Set cursor position (set by KoTextParag upon finding the processing instruction).

Définition à la ligne 83 du fichier KoOasisContext.cpp.

Références cursorTextParagraph(), m_cursorTextIndex, et m_cursorTextParagraph.

Référencé par KoTextParag::loadOasisSpan().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

KoTextParag* KoOasisContext::cursorTextParagraph (  )  const [inline]

Définition à la ligne 81 du fichier KoOasisContext.h.

Référencé par setCursorPosition().

Voici le graphe d'appel pour cette fonction :

int KoOasisContext::cursorTextIndex (  )  const [inline]

Définition à la ligne 82 du fichier KoOasisContext.h.

bool KoOasisContext::pushListLevelStyle ( const QString &  listStyleName,
const QDomElement &  fullListStyle,
int  level 
) [private]

Renvoie:
true on success (a list style was found and pushed)

Définition à la ligne 64 du fichier KoOasisContext.cpp.

Références findListLevelStyle(), m_listStyleStack, et KoListStyleStack::push().

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

KoListStyleStack KoOasisContext::m_listStyleStack [private]

Définition à la ligne 89 du fichier KoOasisContext.h.

Référencé par pushListLevelStyle().

QString KoOasisContext::m_currentListStyleName [private]

Définition à la ligne 90 du fichier KoOasisContext.h.

KoVariableCollection& KoOasisContext::m_varColl [private]

Définition à la ligne 91 du fichier KoOasisContext.h.

KoTextParag* KoOasisContext::m_cursorTextParagraph [private]

Définition à la ligne 93 du fichier KoOasisContext.h.

Référencé par setCursorPosition().

int KoOasisContext::m_cursorTextIndex [private]

Définition à la ligne 94 du fichier KoOasisContext.h.

Référencé par setCursorPosition().

Private* KoOasisContext::d [private]

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

Définition à la ligne 96 du fichier KoOasisContext.h.


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