Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This Source Code Form is subject to the terms of the Mozilla Public
4 : * License, v. 2.0. If a copy of the MPL was not distributed with this
5 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 : */
7 :
8 : #ifndef _DOCUMENTHANDLER_H
9 : #define _DOCUMENTHANDLER_H
10 : #include <libwpd/libwpd.h>
11 :
12 : enum OdfStreamType { ODF_FLAT_XML, ODF_CONTENT_XML, ODF_STYLES_XML, ODF_SETTINGS_XML, ODF_META_XML };
13 :
14 : class OdfDocumentHandler
15 : {
16 : public:
17 0 : OdfDocumentHandler() {};
18 0 : virtual ~OdfDocumentHandler() {};
19 :
20 : virtual void startDocument() = 0;
21 : virtual void endDocument() = 0;
22 : virtual void startElement(const char *psName, const WPXPropertyList &xPropList) = 0;
23 : virtual void endElement(const char *psName) = 0;
24 : virtual void characters(const WPXString &sCharacters) = 0;
25 : };
26 : #endif
27 :
28 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|