summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-05-10 18:46:47 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-05-10 18:46:47 +0200
commitfee98e43bf7cceac47000197d279692c23e4c73e (patch)
tree3697aef60e20214aa940ae232f17b52a222b3c7d /inc
parent46a3a1b132333a19855b088129a79c29fc869f73 (diff)
Making Michael Stahl happy (libvisio part)
Diffstat (limited to 'inc')
-rw-r--r--inc/Makefile.am1
-rw-r--r--inc/libvisio/Makefile.am4
-rw-r--r--inc/libvisio/VSDStringVector.h61
-rw-r--r--inc/libvisio/VisioDocument.h61
-rw-r--r--inc/libvisio/libvisio.h39
5 files changed, 166 insertions, 0 deletions
diff --git a/inc/Makefile.am b/inc/Makefile.am
new file mode 100644
index 0000000..cc668ef
--- /dev/null
+++ b/inc/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = libvisio
diff --git a/inc/libvisio/Makefile.am b/inc/libvisio/Makefile.am
new file mode 100644
index 0000000..e4c3d6a
--- /dev/null
+++ b/inc/libvisio/Makefile.am
@@ -0,0 +1,4 @@
+EXTRA_DIST = \
+ libvisio.h \
+ VSDStringVector.h \
+ VisioDocument.h
diff --git a/inc/libvisio/VSDStringVector.h b/inc/libvisio/VSDStringVector.h
new file mode 100644
index 0000000..50c929f
--- /dev/null
+++ b/inc/libvisio/VSDStringVector.h
@@ -0,0 +1,61 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* libvisio
+ * Version: MPL 1.1 / GPLv2+ / LGPLv2+
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License or as specified alternatively below. You may obtain a copy of
+ * the License at http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * Major Contributor(s):
+ * Copyright (C) 2012 Fridrich Strba <fridrich.strba@bluewin.ch>
+ *
+ *
+ * All Rights Reserved.
+ *
+ * For minor contributions see the git repository.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPLv2+"), or
+ * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
+ * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
+ * instead of those above.
+ */
+
+#ifndef __VSDSTRINGVECTOR_H__
+#define __VSDSTRINGVECTOR_H__
+
+#include <libwpd/libwpd.h>
+
+namespace libvisio
+{
+class VSDStringVectorImpl;
+
+class VSDStringVector
+{
+public:
+ VSDStringVector();
+ VSDStringVector(const VSDStringVector &vec);
+ ~VSDStringVector();
+
+ VSDStringVector &operator=(const VSDStringVector &vec);
+
+ unsigned size() const;
+ bool empty() const;
+ const WPXString &operator[](unsigned idx) const;
+ void append(const WPXString &str);
+ void clear();
+
+private:
+ VSDStringVectorImpl *m_pImpl;
+};
+
+} // namespace libvisio
+
+#endif /* __VSDSTRINGVECTOR_H__ */
+/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
diff --git a/inc/libvisio/VisioDocument.h b/inc/libvisio/VisioDocument.h
new file mode 100644
index 0000000..75ed5ab
--- /dev/null
+++ b/inc/libvisio/VisioDocument.h
@@ -0,0 +1,61 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* libvisio
+ * Version: MPL 1.1 / GPLv2+ / LGPLv2+
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License or as specified alternatively below. You may obtain a copy of
+ * the License at http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * Major Contributor(s):
+ * Copyright (C) 2011 Fridrich Strba <fridrich.strba@bluewin.ch>
+ * Copyright (C) 2011 Eilidh McAdam <tibbylickle@gmail.com>
+ *
+ *
+ * All Rights Reserved.
+ *
+ * For minor contributions see the git repository.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPLv2+"), or
+ * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
+ * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
+ * instead of those above.
+ */
+
+#ifndef __VISIODOCUMENT_H__
+#define __VISIODOCUMENT_H__
+
+#include <libwpd/libwpd.h>
+#include <libwpg/libwpg.h>
+#include "VSDStringVector.h"
+
+class WPXInputStream;
+
+namespace libvisio
+{
+
+class VisioDocument
+{
+public:
+
+ static bool isSupported(WPXInputStream *input);
+
+ static bool parse(WPXInputStream *input, libwpg::WPGPaintInterface *painter);
+
+ static bool parseStencils(WPXInputStream *input, libwpg::WPGPaintInterface *painter);
+
+ static bool generateSVG(WPXInputStream *input, VSDStringVector &output);
+
+ static bool generateSVGStencils(WPXInputStream *input, VSDStringVector &output);
+};
+
+} // namespace libvisio
+
+#endif // __VISIODOCUMENT_H__
+/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
diff --git a/inc/libvisio/libvisio.h b/inc/libvisio/libvisio.h
new file mode 100644
index 0000000..ff454a9
--- /dev/null
+++ b/inc/libvisio/libvisio.h
@@ -0,0 +1,39 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* libvisio
+ * Version: MPL 1.1 / GPLv2+ / LGPLv2+
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License or as specified alternatively below. You may obtain a copy of
+ * the License at http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * Major Contributor(s):
+ * Copyright (C) 2011 Fridrich Strba <fridrich.strba@bluewin.ch>
+ * Copyright (C) 2011 Eilidh McAdam <tibbylickle@gmail.com>
+ *
+ *
+ * All Rights Reserved.
+ *
+ * For minor contributions see the git repository.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPLv2+"), or
+ * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
+ * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
+ * instead of those above.
+ */
+
+#ifndef __LIBVISIO_H__
+#define __LIBVISIO_H__
+
+#include <libwpd/libwpd.h>
+#include <libwpg/libwpg.h>
+#include "VisioDocument.h"
+
+#endif
+/* vim:set shiftwidth=2 softtabstop=2 expandtab: */