- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

MSPUBDocument.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libmspub project.
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
10 #ifndef __MSPUBDOCUMENT_H__
11 #define __MSPUBDOCUMENT_H__
12
13 #include <librevenge/librevenge.h>
14
15 #ifdef DLL_EXPORT
16 #ifdef LIBMSPUB_BUILD
17 #define PUBAPI __declspec(dllexport)
18 #else
19 #define PUBAPI __declspec(dllimport)
20 #endif
21 #else
22 #define PUBAPI
23 #endif
24
25 namespace libmspub
26 {
27 class MSPUBDocument
28 {
29 public:
30
31 static PUBAPI bool isSupported(librevenge::RVNGInputStream *input);
32
33 static PUBAPI bool parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
34 };
35
36 } // namespace libmspub
37
38 #endif // __MSPUBDOCUMENT_H__
39 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libmspub::MSPUBDocument::parse
static PUBAPI bool parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter)
Parses the input stream content.
Definition: MSPUBDocument.cpp:118
libmspub::MSPUBDocument
Definition: MSPUBDocument.h:27
libmspub::MSPUBDocument::isSupported
static PUBAPI bool isSupported(librevenge::RVNGInputStream *input)
Analyzes the content of an input stream to see if it can be parsed.
Definition: MSPUBDocument.cpp:85
PUBAPI
#define PUBAPI
Definition: MSPUBDocument.h:22