MSPUBDocument.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /*
00003  * This file is part of the libmspub project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  */
00009 
00010 #ifndef __MSPUBDOCUMENT_H__
00011 #define __MSPUBDOCUMENT_H__
00012 
00013 #include <librevenge/librevenge.h>
00014 
00015 #ifdef DLL_EXPORT
00016 #ifdef LIBMSPUB_BUILD
00017 #define PUBAPI __declspec(dllexport)
00018 #else
00019 #define PUBAPI __declspec(dllimport)
00020 #endif
00021 #else // !DLL_EXPORT
00022 #ifdef LIBMSPUB_VISIBILITY
00023 #define PUBAPI __attribute__((visibility("default")))
00024 #else
00025 #define PUBAPI
00026 #endif
00027 #endif
00028 
00029 namespace libmspub
00030 {
00031 class MSPUBDocument
00032 {
00033 public:
00034 
00035   static PUBAPI bool isSupported(librevenge::RVNGInputStream *input);
00036 
00037   static PUBAPI bool parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
00038 };
00039 
00040 } // namespace libmspub
00041 
00042 #endif //  __MSPUBDOCUMENT_H__
00043 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */