KoOasisStore.cpp
141bool KoOasisStore::loadAndParse( const TQString& fileName, TQDomDocument& doc, TQString& errorMessage )
static void setupXmlReader(TQXmlSimpleReader &reader, bool namespaceProcessing=false)
setup the XML reader, so that we don't have to duplicate the code.
Definition KoDocument.cpp:2277
static KoXmlWriter * createOasisXmlWriter(TQIODevice *dev, const char *rootElementName)
Return an XML writer for saving Oasis XML into the device dev, including the XML processing instructi...
Definition KoDocument.cpp:2151
static TQString mimeForPath(const TQDomDocument &doc, const TQString &fullPath)
Another method for loading: get mimetype from full path, using the manifest.
Definition KoOasisStore.cpp:181
bool closeManifestWriter()
Close the manifest writer, writing its contents to manifest.xml.
Definition KoOasisStore.cpp:125
bool closeContentWriter()
This will copy the body into the content writer, delete the bodyWriter and the contentWriter,...
Definition KoOasisStore.cpp:86
KoXmlWriter * contentWriter()
Open contents.xml for writing and return the KoXmlWriter.
Definition KoOasisStore.cpp:62
KoXmlWriter * bodyWriter()
Open another KoXmlWriter for writing out the contents into a temporary file, to collect automatic sty...
Definition KoOasisStore.cpp:74
KoXmlWriter * manifestWriter(const char *mimeType)
Create and return a manifest writer. It will write to a memory buffer.
Definition KoOasisStore.cpp:109
bool loadAndParse(const TQString &fileName, TQDomDocument &doc, TQString &errorMessage)
A completely unrelated method, for loading a file from an oasis store.
Definition KoOasisStore.cpp:141
This class implements a TQIODevice around KoStore, so that it can be used to create a TQDomDocument f...
Definition KoStoreDevice.h:31
TQIODevice * device() const
Get a device for reading a file from the store directly (slightly faster than read() calls) You need ...
Definition KoStore.cpp:261
TQ_LONG write(const TQByteArray &_data)
Write data into the currently opened file.
Definition KoStore.cpp:308
A class for writing out XML (to any TQIODevice), with a special attention on performance.
Definition KoXmlWriter.h:37
void startElement(const char *tagName, bool indentInside=true)
Start a new element, as a child of the current element.
Definition KoXmlWriter.cpp:103
void startDocument(const char *rootElemName, const char *publicId=0, const char *systemId=0)
Start the XML document.
Definition KoXmlWriter.cpp:50
void addCompleteElement(const char *cstr)
This is quite a special-purpose method, not for everyday use.
Definition KoXmlWriter.cpp:116
void addManifestEntry(const TQString &fullPath, const TQString &mediaType)
Special helper for writing "manifest" files This is equivalent to startElement/2*addAttribute/endElem...
Definition KoXmlWriter.cpp:283
void addAttribute(const char *attrName, const TQString &value)
Overloaded version of addAttribute( const char*, const char* ), which is a bit slower because it need...
Definition KoXmlWriter.h:76
