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
|
Definition at line 26 of file KWOasisSaver.cpp. |
Member Function Documentation
|
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. |
|
Return the entire ZIP store as a byte array.
Definition at line 61 of file KWOasisSaver.cpp. |
|
You MUST call this after saving the paragraphs and before calling data() Return true on success.
Definition at line 74 of file KWOasisSaver.cpp. |
|
Save a paragraph.
Definition at line 54 of file KWOasisSaver.cpp. |
|
Save a list of paragraphs.
Definition at line 45 of file KWOasisSaver.cpp. |
|
Helper function, also used by KWDocument.
Definition at line 105 of file KWOasisSaver.cpp. |
The documentation for this class was generated from the following files: