diff options
| author | craig <craig@11d20701-8431-0410-a711-e3c959e3b870> | 2012-01-01 11:40:09 +0000 |
|---|---|---|
| committer | craig <craig@11d20701-8431-0410-a711-e3c959e3b870> | 2012-01-01 11:40:09 +0000 |
| commit | 7ed83b6c6666eb8b6b104c211ae7e52907350372 (patch) | |
| tree | 4430b556abac0ad660a0aacf1887d77f85d8be02 /scribus/desaxe/saxhandler.h | |
| download | scribus-7ed83b6c6666eb8b6b104c211ae7e52907350372.tar.gz scribus-7ed83b6c6666eb8b6b104c211ae7e52907350372.tar.xz scribus-7ed83b6c6666eb8b6b104c211ae7e52907350372.zip | |
Branch 1.3.5 tree to 1.4.x tree, goodbye 1.3.x
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17163 11d20701-8431-0410-a711-e3c959e3b870
Diffstat (limited to 'scribus/desaxe/saxhandler.h')
| -rw-r--r-- | scribus/desaxe/saxhandler.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/scribus/desaxe/saxhandler.h b/scribus/desaxe/saxhandler.h new file mode 100644 index 0000000..31d34c8 --- /dev/null +++ b/scribus/desaxe/saxhandler.h @@ -0,0 +1,37 @@ +/* + * saxhandler.h + * + * + * Created by Andreas Vox on 21.09.06. + * Copyright 2006 under GPL2. All rights reserved. + * + */ + + + +#ifndef SAXHANDLER_H +#define SAXHANDLER_H + +#include "desaxe_conf.h" + +/** + Interface class which describes the ability of reading a SAX stream. + Methods for handling namespaces and encodings might be added later. + */ +class SaxHandler { +public: + virtual void beginDoc() = 0; + virtual void endDoc() = 0; + virtual void begin(const Xml_string& tag, Xml_attr attr) = 0; + virtual void end(const Xml_string& tag) = 0; + inline void beginEnd(const Xml_string& tag, Xml_attr attr); + virtual void chars(const Xml_string& text) = 0; + virtual ~SaxHandler() {} +}; + +inline void SaxHandler::beginEnd(const Xml_string& tag, Xml_attr attr) +{ + begin(tag, attr); + end(tag); +} +#endif |
