diff options
author | David Tardon <dtardon@redhat.com> | 2015-03-04 15:46:07 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-03-04 15:56:14 +0100 |
commit | 7f34f7ad051c09cab67618c9d05583a7880725ec (patch) | |
tree | 028da4e9adf7e9f68394f32713ed4e114ea0a15b /inc |
create new project
Diffstat (limited to 'inc')
-rw-r--r-- | inc/Makefile.am | 5 | ||||
-rw-r--r-- | inc/libxara/Makefile.am | 7 | ||||
-rw-r--r-- | inc/libxara/XaraDocument.h | 44 | ||||
-rw-r--r-- | inc/libxara/libxara.h | 17 |
4 files changed, 73 insertions, 0 deletions
diff --git a/inc/Makefile.am b/inc/Makefile.am new file mode 100644 index 0000000..d5120e7 --- /dev/null +++ b/inc/Makefile.am @@ -0,0 +1,5 @@ +## -*- Mode: make; tab-width: 4; indent-tabs-mode: tabs -*- + +SUBDIRS = libxara + +## vim:set shiftwidth=4 tabstop=4 noexpandtab: diff --git a/inc/libxara/Makefile.am b/inc/libxara/Makefile.am new file mode 100644 index 0000000..d6c4379 --- /dev/null +++ b/inc/libxara/Makefile.am @@ -0,0 +1,7 @@ +## -*- Mode: make; tab-width: 4; indent-tabs-mode: tabs -*- + +EXTRA_DIST = \ + libxara.h \ + XaraDocument.h + +## vim:set shiftwidth=4 tabstop=4 noexpandtab: diff --git a/inc/libxara/XaraDocument.h b/inc/libxara/XaraDocument.h new file mode 100644 index 0000000..0e260a2 --- /dev/null +++ b/inc/libxara/XaraDocument.h @@ -0,0 +1,44 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* + * This file is part of the libxara project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_LIBXARA_XARADOCUMENT_H +#define INCLUDED_LIBXARA_XARADOCUMENT_H + +#include <librevenge/librevenge.h> +#include <librevenge-stream/librevenge-stream.h> + +#ifdef DLL_EXPORT +#ifdef LIBXARA_BUILD +#define XARAAPI __declspec(dllexport) +#else +#define XARAAPI __declspec(dllimport) +#endif +#else // !DLL_EXPORT +#ifdef LIBXARA_VISIBILITY +#define XARAAPI __attribute__((visibility("default"))) +#else +#define XARAAPI +#endif +#endif + +namespace libxara +{ + +class XaraDocument +{ +public: + static XARAAPI bool isSupported(librevenge::RVNGInputStream *input); + static XARAAPI bool parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *document); +}; + +} // namespace libxara + +#endif // INCLUDED_LIBXARA_XARADOCUMENT_H + +/* vim:set shiftwidth=2 softtabstop=2 expandtab: */ diff --git a/inc/libxara/libxara.h b/inc/libxara/libxara.h new file mode 100644 index 0000000..e6759ad --- /dev/null +++ b/inc/libxara/libxara.h @@ -0,0 +1,17 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* + * This file is part of the libxara project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_LIBXARA_LIBXARA_H +#define INCLUDED_LIBXARA_LIBXARA_H + +#include "XaraDocument.h" + +#endif // INCLUDED_LIBXARA_LIBXARA_H + +/* vim:set shiftwidth=2 softtabstop=2 expandtab: */ |