lib
KoSavingContext Class Reference
#include <KoOasisContext.h>
Detailed Description
Used during saving to Oasis format (and discarded at the end of the saving).Among other things, this class acts as a repository of fonts used by a document during saving, in order to create the office:font-face-decls element.
- Author:
- David Faure <faure@kde.org>
Definition at line 111 of file KoOasisContext.h.
Public Types | |
typedef QValueList< BookmarkPosition > | BookmarkPositions |
typedef QMap< QString, bool > | FontFaces |
Store | |
Flat | |
enum | SavingMode { Store, Flat } |
Public Member Functions | |
KoSavingContext (KoGenStyles &mainStyles, KoVariableSettings *settings=0, bool hasColumns=false, SavingMode savingMode=Store) | |
~KoSavingContext () | |
KoGenStyles & | mainStyles () |
SavingMode | savingMode () const |
void | setCursorPosition (KoTextParag *cursorTextParagraph, int cursorTextIndex) |
KoTextParag * | cursorTextParagraph () const |
int | cursorTextIndex () const |
void | setBookmarkPositions (const BookmarkPositions &bkStarts, const BookmarkPositions &bkEnds) |
const BookmarkPositions & | bookmarkStarts () const |
const BookmarkPositions & | bookmarkEnds () const |
void | addFontFace (const QString &fontName) |
void | writeFontFaces (KoXmlWriter &writer) |
bool | hasColumns () const |
KoVariableSettings * | variableSettings () const |
Classes | |
struct | BookmarkPosition |
Store bookmarks [for the current text paragraph beind saved] so that KoTextParag can save them at the right place inside the text. More... |
Constructor & Destructor Documentation
KoSavingContext::KoSavingContext | ( | KoGenStyles & | mainStyles, | |
KoVariableSettings * | settings = 0 , |
|||
bool | hasColumns = false , |
|||
SavingMode | savingMode = Store | |||
) |
Constructor.
- Parameters:
-
mainStyles settings optional, used for saving the page-number in the first paragraph hasColumns optional, used by KoParagLayout for the type of page breaks savingMode either Store (a KoStore will be used) or Flat (all data must be inline in the XML)
Definition at line 96 of file KoOasisContext.cpp.
Member Function Documentation
SavingMode KoSavingContext::savingMode | ( | ) | const [inline] |
- Returns:
- the saving mode: Store (a KoStore will be used) or Flat (all data must be inline in the XML)
Definition at line 129 of file KoOasisContext.h.
void KoSavingContext::setCursorPosition | ( | KoTextParag * | cursorTextParagraph, | |
int | cursorTextIndex | |||
) |
Set cursor position (so that KoTextParag can insert a processing instruction).
Definition at line 110 of file KoOasisContext.cpp.
The documentation for this class was generated from the following files: