summaryrefslogtreecommitdiffstats
path: root/src/dom/odf/odfdocument.cpp
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-04-12 13:25:21 +0000
committerishmal <ishmal@users.sourceforge.net>2006-04-12 13:25:21 +0000
commit6fd9af13a8614a4b95e8be1518e745915ef8bb56 (patch)
treebf94fa5f7c3a7b2f581f3e7cf2522bf7c2d4b6c9 /src/dom/odf/odfdocument.cpp
parentRemoved file/folder for ishmal (diff)
downloadinkscape-6fd9af13a8614a4b95e8be1518e745915ef8bb56.tar.gz
inkscape-6fd9af13a8614a4b95e8be1518e745915ef8bb56.zip
Add new rearranged /dom directory
(bzr r479)
Diffstat (limited to 'src/dom/odf/odfdocument.cpp')
-rw-r--r--src/dom/odf/odfdocument.cpp161
1 files changed, 161 insertions, 0 deletions
diff --git a/src/dom/odf/odfdocument.cpp b/src/dom/odf/odfdocument.cpp
new file mode 100644
index 000000000..ba6cfc63b
--- /dev/null
+++ b/src/dom/odf/odfdocument.cpp
@@ -0,0 +1,161 @@
+/**
+ *
+ * This class contains an ODF Document.
+ * Initially, we are just concerned with .odg content.xml + resources
+ *
+ * ---------------------------------------------------------------------
+ *
+ * Copyright (C) 2006 Bob Jamison
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * For more information, please write to rwjj@earthlink.net
+ *
+ */
+
+#include "odfdocument.h"
+
+
+namespace odf
+{
+
+
+//########################################################################
+//# I M A G E D A T A
+//########################################################################
+
+
+/**
+ *
+ */
+ImageData::ImageData(const std::string &fname,
+ const std::vector<unsigned char> &buf)
+{
+ fileName = fname;
+ data = buf;
+}
+
+/**
+ *
+ */
+ImageData::ImageData(const ImageData &other)
+{
+ fileName = other.fileName;
+ data = other.data;
+}
+
+/**
+ *
+ */
+ImageData::~ImageData()
+{
+}
+
+/**
+ *
+ */
+std::string ImageData::getFileName()
+{
+ return fileName;
+}
+
+/**
+ *
+ */
+void ImageData::setFileName(const std::string &val)
+{
+ fileName = val;
+}
+
+/**
+ *
+ */
+std::vector<unsigned char> &ImageData::getData()
+{
+ return data;
+}
+
+/**
+ *
+ */
+void ImageData::setData(const std::vector<unsigned char> &buf)
+{
+ data = buf;
+}
+
+
+
+
+
+//########################################################################
+//# O D F D O C U M E N T
+//########################################################################
+
+
+
+/**
+ *
+ */
+OdfDocument::OdfDocument()
+{
+}
+
+
+/**
+ *
+ */
+OdfDocument::OdfDocument(const OdfDocument &other)
+{
+ content = other.content;
+ images = other.images;
+}
+
+
+/**
+ *
+ */
+OdfDocument::~OdfDocument()
+{
+}
+
+/**
+ *
+ */
+bool OdfDocument::readFile(const std::string &fileName)
+{
+ return true;
+}
+
+/**
+ *
+ */
+bool OdfDocument::writeFile(const std::string &fileName)
+{
+ return true;
+}
+
+
+
+
+
+} //namespace odf
+
+
+
+
+//########################################################################
+//# E N D O F F I L E
+//########################################################################
+