KoOasisContext Class Reference
Used during loading of Oasis format (and discarded at the end of the loading). More...
#include <kooasiscontext.h>
Collaboration diagram for KoOasisContext:

Public Member Functions | |
KoOasisContext (KoDocument *doc, KoVariableCollection &varColl, KoOasisStyles &styles, KoStore *store) | |
KoDocument * | koDocument () |
KoVariableCollection & | variableCollection () |
KoStore * | store () |
KoOasisStyles & | oasisStyles () |
KoStyleStack & | styleStack () |
const QDomDocument & | manifestDocument () const |
void | fillStyleStack (const QDomElement &object, const char *nsURI, const char *attrName) |
void | addStyles (const QDomElement *style) |
KoListStyleStack & | listStyleStack () |
QString | currentListStyleName () const |
void | setCurrentListStyleName (const QString &s) |
bool | pushListLevelStyle (const QString &listStyleName, int level) |
bool | pushOutlineListLevelStyle (int level) |
void | setCursorPosition (KoTextParag *cursorTextParagraph, int cursorTextIndex) |
KoTextParag * | cursorTextParagraph () const |
int | cursorTextIndex () const |
Detailed Description
Used during loading of Oasis format (and discarded at the end of the loading).In addition to keeping a reference to the KoOasisStyles instance, this class also 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).
- Author:
- David Faure <faure@kde.org>
Definition at line 50 of file kooasiscontext.h.
Constructor & Destructor Documentation
|
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)
Definition at line 28 of file kooasiscontext.cc. References KoOasisStore::loadAndParse(). |
Member Function Documentation
|
Used for lists (numbered paragraphs).
Definition at line 93 of file kooasiscontext.cc. References KoOasisStyles::listStyles(). Referenced by KoParagStyle::loadStyle(), and pushOutlineListLevelStyle(). |
|
Used for outline levels.
Definition at line 104 of file kooasiscontext.cc. References KoDom::namedItemNS(), KoOasisStyles::officeStyle(), and pushListLevelStyle(). Referenced by KoParagStyle::loadStyle(). |
|
Set cursor position (set by KoTextParag upon finding the processing instruction).
Definition at line 130 of file kooasiscontext.cc. |
The documentation for this class was generated from the following files: