VisioDocument.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 libvisio 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 __VISIODOCUMENT_H__
00011 #define __VISIODOCUMENT_H__
00012 
00013 #include <librevenge/librevenge.h>
00014 
00015 #ifdef DLL_EXPORT
00016 #ifdef LIBVISIO_BUILD
00017 #define VSDAPI __declspec(dllexport)
00018 #else
00019 #define VSDAPI __declspec(dllimport)
00020 #endif
00021 #else // !DLL_EXPORT
00022 #ifdef LIBVISIO_VISIBILITY
00023 #define VSDAPI __attribute__((visibility("default")))
00024 #else
00025 #define VSDAPI
00026 #endif
00027 #endif
00028 
00029 namespace libvisio
00030 {
00031 
00032 class VisioDocument
00033 {
00034 public:
00035 
00036   static VSDAPI bool isSupported(librevenge::RVNGInputStream *input);
00037 
00038   static VSDAPI bool parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
00039 
00040   static VSDAPI bool parseStencils(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
00041 };
00042 
00043 } // namespace libvisio
00044 
00045 #endif //  __VISIODOCUMENT_H__
00046 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */