XML writer. More...
#include <OdfDocumentHandler.hxx>
Public Member Functions | |
| virtual | ~OdfDocumentHandler () |
| virtual void | startDocument ()=0 |
| Start an XML document. | |
| virtual void | endDocument ()=0 |
| End the XML document. | |
| virtual void | startElement (const char *psName, const librevenge::RVNGPropertyList &xPropList)=0 |
| Add a start tag to the XML document. | |
| virtual void | endElement (const char *psName)=0 |
| Add a end tag to the XML document. | |
| virtual void | characters (const librevenge::RVNGString &sCharacters)=0 |
| Insert a textual content into the currently opened element. | |
XML writer.
This interface is used by the document generators to create a valid XML document. It is up to the implementation if the document will be saved to a file, printed to the standard output, saved to a file inside a package, or whatever else.
| virtual OdfDocumentHandler::~OdfDocumentHandler | ( | ) | [inline, virtual] |
| virtual void OdfDocumentHandler::characters | ( | const librevenge::RVNGString & | sCharacters | ) | [pure virtual] |
Insert a textual content into the currently opened element.
| [in] | sCharacters | the content |
| virtual void OdfDocumentHandler::endDocument | ( | ) | [pure virtual] |
End the XML document.
| virtual void OdfDocumentHandler::endElement | ( | const char * | psName | ) | [pure virtual] |
Add a end tag to the XML document.
| [in] | psName | name of the element. It must match the name of the innermost currently opened element. |
| virtual void OdfDocumentHandler::startDocument | ( | ) | [pure virtual] |
Start an XML document.
| virtual void OdfDocumentHandler::startElement | ( | const char * | psName, |
| const librevenge::RVNGPropertyList & | xPropList | ||
| ) | [pure virtual] |
Add a start tag to the XML document.
| [in] | psName | name of the element |
| [in] | xPropList | list of attributes |