ABWDocumentHandler.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2/* librvngabw
3 * Version: MPL 2.0 / LGPLv2.1+
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * Major Contributor(s):
10 *
11 * For minor contributions see the git repository.
12 *
13 * Alternatively, the contents of this file may be used under the terms
14 * of the GNU Lesser General Public License Version 2.1 or later
15 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
16 * applicable instead of those above.
17 *
18 * For further information visit http://libwpd.sourceforge.net
19 */
20
21/* "This product is not manufactured, approved, or supported by
22 * Corel Corporation or Corel Corporation Limited."
23 */
24#ifndef _ABWDOCUMENTHANDLER_HXX_
25#define _ABWDOCUMENTHANDLER_HXX_
26#include <librevenge/librevenge.h>
27
28#include "librvngabw-api.hxx"
29
30namespace librvngabw
31{
33class ABWGenerator;
34
40typedef bool (*ABWCheckImage)(const librevenge::RVNGString &mimeType, const librevenge::RVNGBinaryData &image);
41
48typedef bool (*ABWEmbeddedImage)(const librevenge::RVNGBinaryData &input, librevenge::RVNGBinaryData &output);
49
55typedef bool (*ABWEmbeddedObject)(const librevenge::RVNGBinaryData &data, ABWGenerator &generator);
56
65{
66public:
68
71 virtual void startDocument() = 0;
72
75 virtual void endDocument() = 0;
76
82 virtual void startElement(const char *psName, const librevenge::RVNGPropertyList &xPropList) = 0;
83
89 virtual void endElement(const char *psName) = 0;
90
95 virtual void characters(const librevenge::RVNGString &sCharacters) = 0;
96};
97}
98#endif
99
100/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
XML writer.
Definition ABWDocumentHandler.hxx:65
virtual void startDocument()=0
Start an XML document.
virtual void endElement(const char *psName)=0
Add a end tag to the XML document.
virtual void startElement(const char *psName, const librevenge::RVNGPropertyList &xPropList)=0
Add a start tag to the XML document.
virtual ~ABWDocumentHandler()
Definition ABWDocumentHandler.hxx:67
virtual void endDocument()=0
End the XML document.
virtual void characters(const librevenge::RVNGString &sCharacters)=0
Insert a textual content into the currently opened element.
#define RVNGABWAPI
Definition librvngabw-api.hxx:36
Definition ABWDocumentHandler.hxx:31
bool(* ABWCheckImage)(const librevenge::RVNGString &mimeType, const librevenge::RVNGBinaryData &image)
Handler for to check the images type.
Definition ABWDocumentHandler.hxx:40
bool(* ABWEmbeddedObject)(const librevenge::RVNGBinaryData &data, ABWGenerator &generator)
Handler for embedded objects.
Definition ABWDocumentHandler.hxx:55
bool(* ABWEmbeddedImage)(const librevenge::RVNGBinaryData &input, librevenge::RVNGBinaryData &output)
Handler for embedded images.
Definition ABWDocumentHandler.hxx:48

Generated for librvngabw by doxygen 1.10.0