lib

KoSavingContext Class Reference

#include <KoOasisContext.h>

List of all members.


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

enum  SavingMode { Store, Flat }
typedef QValueList< BookmarkPositionBookmarkPositions
typedef QMap< QString, bool > FontFaces

Public Member Functions

 KoSavingContext (KoGenStyles &mainStyles, KoVariableSettings *settings=0, bool hasColumns=false, SavingMode savingMode=Store)
 ~KoSavingContext ()
KoGenStylesmainStyles ()
SavingMode savingMode () const
void setCursorPosition (KoTextParag *cursorTextParagraph, int cursorTextIndex)
KoTextParagcursorTextParagraph () const
int cursorTextIndex () const
void setBookmarkPositions (const BookmarkPositions &bkStarts, const BookmarkPositions &bkEnds)
const BookmarkPositionsbookmarkStarts () const
const BookmarkPositionsbookmarkEnds () const
void addFontFace (const QString &fontName)
void writeFontFaces (KoXmlWriter &writer)
bool hasColumns () const
KoVariableSettingsvariableSettings () 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:
KDE Home | KDE Accessibility Home | Description of Access Keys