kword
KWOasisSaver Class Reference
#include <KWOasisSaver.h>
Detailed Description
This is used to save a bunch of paragraphs into a oasis store in memory, as some features do (e.g.sort text, or convert table to text)
Note: this is NOT used for File/Save!
Definition at line 39 of file KWOasisSaver.h.
Public Member Functions | |
KWOasisSaver (KWDocument *doc) | |
~KWOasisSaver () | |
void | saveParagraphs (const QValueList< const KoTextParag * > ¶graphs) |
void | saveParagraph (const KoTextParag *parag) |
KoXmlWriter & | bodyWriter () |
KoSavingContext & | savingContext () |
bool | finish () |
QByteArray | data () const |
Static Public Member Functions | |
static void | writeAutomaticStyles (KoXmlWriter &contentWriter, KoGenStyles &mainStyles, bool stylesDotXml) |
static const char * | selectionMimeType () |
Constructor & Destructor Documentation
KWOasisSaver::KWOasisSaver | ( | KWDocument * | doc | ) |
- Parameters:
-
doc only needed for the user-style-collection
Definition at line 26 of file KWOasisSaver.cpp.
Member Function Documentation
KoXmlWriter& KWOasisSaver::bodyWriter | ( | ) | [inline] |
Another way to save paragraphs is to use KoTextObject::saveOasisContent It needs a body writer and a saving context.
Definition at line 54 of file KWOasisSaver.h.
QByteArray KWOasisSaver::data | ( | ) | const |
bool KWOasisSaver::finish | ( | ) |
You MUST call this after saving the paragraphs and before calling data() Return true on success.
Definition at line 74 of file KWOasisSaver.cpp.
void KWOasisSaver::saveParagraph | ( | const KoTextParag * | parag | ) |
void KWOasisSaver::saveParagraphs | ( | const QValueList< const KoTextParag * > & | paragraphs | ) |
void KWOasisSaver::writeAutomaticStyles | ( | KoXmlWriter & | contentWriter, | |
KoGenStyles & | mainStyles, | |||
bool | stylesDotXml | |||
) | [static] |
The documentation for this class was generated from the following files: