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 INCLUDED_INC_LIBMSPUB_MSPUBDOCUMENT_H
11#define INCLUDED_INC_LIBMSPUB_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 // !DLL_EXPORT
22#ifdef LIBMSPUB_VISIBILITY
23#define PUBAPI __attribute__((visibility("default")))
24#else
25#define PUBAPI
26#endif
27#endif
28
29 namespace libmspub
30{
31 class MSPUBDocument
32{
33 public:
34
35 static PUBAPI bool isSupported(librevenge::RVNGInputStream *input);
36
37 static PUBAPI bool parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
38};
39
40} // namespace libmspub
41
42#endif // INCLUDED_INC_LIBMSPUB_MSPUBDOCUMENT_H
43/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
PUBAPI
#define PUBAPI
Definition MSPUBDocument.h:25
libmspub::MSPUBDocument
Definition MSPUBDocument.h:32
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:83
libmspub::MSPUBDocument::parse
static PUBAPI bool parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter)
Parses the input stream content.
Definition MSPUBDocument.cpp:119
libmspub
Definition Arrow.h:14