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) | |
| 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
| void KWOasisSaver::saveParagraphs | ( | const QValueList< const KoTextParag * > & | paragraphs | ) |
| void KWOasisSaver::saveParagraph | ( | const KoTextParag * | parag | ) |
| 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.
| 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.
| QByteArray KWOasisSaver::data | ( | ) | const |
| void KWOasisSaver::writeAutomaticStyles | ( | KoXmlWriter & | contentWriter, | |
| KoGenStyles & | mainStyles, | |||
| bool | stylesDotXml | |||
| ) | [static] |
The documentation for this class was generated from the following files:

