cba9e1349172ee884d9262c8189640be78259905
1 /**
2 *
3 * This class contains an ODF Document.
4 * Initially, we are just concerned with .odg content.xml + resources
5 *
6 * ---------------------------------------------------------------------
7 *
8 * Copyright (C) 2006 Bob Jamison
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 *
24 * For more information, please write to rwjj@earthlink.net
25 *
26 */
28 #include "odfdocument.h"
31 namespace odf
32 {
35 //########################################################################
36 //# I M A G E D A T A
37 //########################################################################
40 /**
41 *
42 */
43 ImageData::ImageData(const std::string &fname,
44 const std::vector<unsigned char> &buf)
45 {
46 fileName = fname;
47 data = buf;
48 }
50 /**
51 *
52 */
53 ImageData::ImageData(const ImageData &other)
54 {
55 fileName = other.fileName;
56 data = other.data;
57 }
59 /**
60 *
61 */
62 ImageData::~ImageData()
63 {
64 }
66 /**
67 *
68 */
69 std::string ImageData::getFileName()
70 {
71 return fileName;
72 }
74 /**
75 *
76 */
77 void ImageData::setFileName(const std::string &val)
78 {
79 fileName = val;
80 }
82 /**
83 *
84 */
85 std::vector<unsigned char> &ImageData::getData()
86 {
87 return data;
88 }
90 /**
91 *
92 */
93 void ImageData::setData(const std::vector<unsigned char> &buf)
94 {
95 data = buf;
96 }
102 //########################################################################
103 //# O D F D O C U M E N T
104 //########################################################################
108 /**
109 *
110 */
111 OdfDocument::OdfDocument()
112 {
113 }
116 /**
117 *
118 */
119 OdfDocument::OdfDocument(const OdfDocument &other)
120 {
121 content = other.content;
122 images = other.images;
123 }
126 /**
127 *
128 */
129 OdfDocument::~OdfDocument()
130 {
131 }
133 /**
134 *
135 */
136 bool OdfDocument::readFile(const std::string &fileName)
137 {
138 return true;
139 }
141 /**
142 *
143 */
144 bool OdfDocument::writeFile(const std::string &fileName)
145 {
146 return true;
147 }
153 } //namespace odf
158 //########################################################################
159 //# E N D O F F I L E
160 //########################################################################