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 
30 namespace librvngabw
31 {
32 class ABWDocumentHandler;
33 class ABWGenerator;
34 
40 typedef bool (*ABWCheckImage)(const librevenge::RVNGString &mimeType, const librevenge::RVNGBinaryData &image);
41 
48 typedef bool (*ABWEmbeddedImage)(const librevenge::RVNGBinaryData &input, librevenge::RVNGBinaryData &output);
49 
55 typedef bool (*ABWEmbeddedObject)(const librevenge::RVNGBinaryData &data, ABWGenerator &generator);
56 
65 {
66 public:
67  virtual ~ABWDocumentHandler() {}
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: */
librvngabw::ABWDocumentHandler::endElement
virtual void endElement(const char *psName)=0
Add a end tag to the XML document.
librvngabw::ABWDocumentHandler::startElement
virtual void startElement(const char *psName, const librevenge::RVNGPropertyList &xPropList)=0
Add a start tag to the XML document.
librvngabw::ABWDocumentHandler::startDocument
virtual void startDocument()=0
Start an XML document.
librvngabw::ABWDocumentHandler::~ABWDocumentHandler
virtual ~ABWDocumentHandler()
Definition: ABWDocumentHandler.hxx:67
librvngabw::ABWDocumentHandler::characters
virtual void characters(const librevenge::RVNGString &sCharacters)=0
Insert a textual content into the currently opened element.
librvngabw
Definition: ABWDocumentHandler.hxx:31
librvngabw::ABWDocumentHandler
XML writer.
Definition: ABWDocumentHandler.hxx:65
librvngabw-api.hxx
librvngabw::ABWDocumentHandler::endDocument
virtual void endDocument()=0
End the XML document.
librvngabw::ABWEmbeddedImage
bool(* ABWEmbeddedImage)(const librevenge::RVNGBinaryData &input, librevenge::RVNGBinaryData &output)
Handler for embedded images.
Definition: ABWDocumentHandler.hxx:48
librvngabw::ABWCheckImage
bool(* ABWCheckImage)(const librevenge::RVNGString &mimeType, const librevenge::RVNGBinaryData &image)
Handler for to check the images type.
Definition: ABWDocumentHandler.hxx:40
librvngabw::ABWEmbeddedObject
bool(* ABWEmbeddedObject)(const librevenge::RVNGBinaryData &data, ABWGenerator &generator)
Handler for embedded objects.
Definition: ABWDocumentHandler.hxx:55
RVNGABWAPI
#define RVNGABWAPI
Definition: librvngabw-api.hxx:36

Generated for librvngabw by doxygen 1.8.18