#include <KoOasisLoadingContext.h>
Graphe d'héritage de KoOasisLoadingContext:
Fonctions membres publiques | |
KoOasisLoadingContext (KoDocument *doc, KoOasisStyles &styles, KoStore *store) | |
~KoOasisLoadingContext () | |
KoDocument * | koDocument () |
KoStore * | store () |
KoOasisStyles & | oasisStyles () |
KoStyleStack & | styleStack () |
const KoXmlDocument & | manifestDocument () const |
QString | generator () const |
Return the <meta:generator> of the document, e.g. "KOffice/1.4.0a". | |
void | fillStyleStack (const KoXmlElement &element, const char *nsURI, const char *attrName, const char *family) |
void | addStyles (const KoXmlElement *style, const char *family, bool usingStylesAutoStyles=false) |
void | setUseStylesAutoStyles (bool useStylesAutoStyles) |
Fonctions membres privées | |
void | parseMeta () const |
Attributs privés | |
KoDocument * | m_doc |
KoStore * | m_store |
KoOasisStyles & | m_styles |
KoStyleStack | m_styleStack |
QString | m_generator |
bool | m_metaXmlParsed |
bool | m_useStylesAutoStyles |
bool | m_unused1 |
bool | m_unused2 |
KoXmlDocument | m_manifestDoc |
Private * | d |
Définition à la ligne 40 du fichier KoOasisLoadingContext.h.
KoOasisLoadingContext::KoOasisLoadingContext | ( | KoDocument * | doc, | |
KoOasisStyles & | styles, | |||
KoStore * | store | |||
) |
Stores reference to the KoOasisStyles and stored passed by KoDocument. Make sure that the KoOasisStyles instance outlives this KoOasisLoadingContext instance. (This is the case during loading, when using the KoOasisStyles given by KoDocument)
doc | the KoDocument being loaded | |
styles | reference to the KoOasisStyles parsed by KoDocument | |
store | pointer to store, if available, for e.g. loading images. |
Définition à la ligne 27 du fichier KoOasisLoadingContext.cpp.
Références KoOasisStore::loadAndParse(), m_manifestDoc, et store().
Voici le graphe d'appel pour cette fonction :
KoOasisLoadingContext::~KoOasisLoadingContext | ( | ) |
Définition à la ligne 39 du fichier KoOasisLoadingContext.cpp.
KoDocument* KoOasisLoadingContext::koDocument | ( | ) | [inline] |
Définition à la ligne 55 du fichier KoOasisLoadingContext.h.
Référencé par KoVariableCollection::loadOasisFieldCreateVariable().
Voici le graphe d'appel pour cette fonction :
KoStore* KoOasisLoadingContext::store | ( | ) | [inline] |
Définition à la ligne 56 du fichier KoOasisLoadingContext.h.
Référencé par KoOasisLoadingContext().
Voici le graphe d'appel pour cette fonction :
KoOasisStyles& KoOasisLoadingContext::oasisStyles | ( | ) | [inline] |
Définition à la ligne 58 du fichier KoOasisLoadingContext.h.
Référencé par KoVariableCollection::loadOasisField(), KoStyleCollection::loadOasisStyles(), KoOasisContext::pushListLevelStyle(), et KoOasisContext::pushOutlineListLevelStyle().
Voici le graphe d'appel pour cette fonction :
KoStyleStack& KoOasisLoadingContext::styleStack | ( | ) | [inline] |
Définition à la ligne 59 du fichier KoOasisLoadingContext.h.
Référencé par KoTextFormat::load(), KoParagLayout::loadOasisParagLayout(), KoTextParag::loadOasisSpan(), KoTextDocument::loadOasisText(), KoTextParag::loadParagLayout(), KoParagStyle::loadStyle(), et KoTextObject::pasteOasisText().
Voici le graphe d'appel pour cette fonction :
const KoXmlDocument& KoOasisLoadingContext::manifestDocument | ( | ) | const [inline] |
Définition à la ligne 61 du fichier KoOasisLoadingContext.h.
QString KoOasisLoadingContext::generator | ( | ) | const |
Return the <meta:generator> of the document, e.g. "KOffice/1.4.0a".
Définition à la ligne 99 du fichier KoOasisLoadingContext.cpp.
Références m_generator, et parseMeta().
Référencé par importTextPosition(), et parseMeta().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoOasisLoadingContext::fillStyleStack | ( | const KoXmlElement & | element, | |
const char * | nsURI, | |||
const char * | attrName, | |||
const char * | family | |||
) |
Convenience method for loading the style of an object before loading that object.
Read attribute (nsURI,attrName) from the given dom element, treat that attribute as a style name, and load that style including all its parent styles.
element | the dom element to read the attribute from | |
nsURI | the namespace URI of the attribute to read | |
attrName | the name of the attribute to read | |
family | the style family used for this object |
Définition à la ligne 44 du fichier KoOasisLoadingContext.cpp.
Références addStyles(), KoOasisStyles::findStyle(), KoOasisStyles::findStyleAutoStyle(), m_styles, et m_useStylesAutoStyles.
Référencé par KoTextParag::loadOasisSpan(), KoTextDocument::loadOasisText(), et KoTextObject::pasteOasisText().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoOasisLoadingContext::addStyles | ( | const KoXmlElement * | style, | |
const char * | family, | |||
bool | usingStylesAutoStyles = false | |||
) |
Add style
to the stack, as well as all its parent styles and the default style for this style family.
style | the dom element containing the style to add to the stack | |
family | the family to use when looking up parent styles | |
usingStylesAutoStyles | if true, the parent styles are looked up in the automatic styles from styles.xml, instead of looking up in the automatic styles from content.xml as we usually do. This is useful for loading headers and footers for instance. See setUseStylesAutoStyles(), which makes fillStyleStack() set this bool. |
Définition à la ligne 67 du fichier KoOasisLoadingContext.cpp.
Références KoOasisStyles::defaultStyle(), KoOasisStyles::findStyle(), KoOasisStyles::findStyleAutoStyle(), m_styles, m_styleStack, KoStyleStack::push(), et KoXmlNS::style.
Référencé par fillStyleStack(), et KoParagStyle::loadStyle().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoOasisLoadingContext::setUseStylesAutoStyles | ( | bool | useStylesAutoStyles | ) | [inline] |
Set to true while loading headers and footers, to remember to use auto styles from styles.xml
Définition à la ligne 98 du fichier KoOasisLoadingContext.h.
void KoOasisLoadingContext::parseMeta | ( | ) | const [private] |
Définition à la ligne 105 du fichier KoOasisLoadingContext.cpp.
Références generator(), KoStore::hasFile(), KoOasisStore::loadAndParse(), m_generator, m_metaXmlParsed, m_store, KoXmlNS::meta, KoDom::namedItemNS(), et KoXmlNS::office.
Référencé par generator().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
KoDocument* KoOasisLoadingContext::m_doc [private] |
Définition à la ligne 105 du fichier KoOasisLoadingContext.h.
KoStore* KoOasisLoadingContext::m_store [private] |
KoOasisStyles& KoOasisLoadingContext::m_styles [private] |
Définition à la ligne 107 du fichier KoOasisLoadingContext.h.
Référencé par addStyles(), et fillStyleStack().
QString KoOasisLoadingContext::m_generator [mutable, private] |
Définition à la ligne 110 du fichier KoOasisLoadingContext.h.
Référencé par generator(), et parseMeta().
bool KoOasisLoadingContext::m_metaXmlParsed [mutable, private] |
bool KoOasisLoadingContext::m_useStylesAutoStyles [private] |
bool KoOasisLoadingContext::m_unused1 [private] |
Définition à la ligne 113 du fichier KoOasisLoadingContext.h.
bool KoOasisLoadingContext::m_unused2 [private] |
Définition à la ligne 114 du fichier KoOasisLoadingContext.h.
Définition à la ligne 116 du fichier KoOasisLoadingContext.h.
Référencé par KoOasisLoadingContext().
Private* KoOasisLoadingContext::d [private] |