3
* This class contains an ODF Document.
4
* Initially, we are just concerned with .odg content.xml + resources
6
* ---------------------------------------------------------------------
8
* Copyright (C) 2006-2008 Bob Jamison
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 2 of the License, or
13
* (at your option) any later version.
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.
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
24
* For more information, please write to rwjj@earthlink.net
26
* RWJ : 080207: Changed to GPL2 by me
30
#include "odfdocument.h"
37
//########################################################################
39
//########################################################################
45
ImageData::ImageData(const std::string &fname,
46
const std::vector<unsigned char> &buf)
55
ImageData::ImageData(const ImageData &other)
57
fileName = other.fileName;
64
ImageData::~ImageData()
71
std::string ImageData::getFileName()
79
void ImageData::setFileName(const std::string &val)
87
std::vector<unsigned char> &ImageData::getData()
95
void ImageData::setData(const std::vector<unsigned char> &buf)
104
//########################################################################
105
//# O D F D O C U M E N T
106
//########################################################################
113
OdfDocument::OdfDocument()
121
OdfDocument::OdfDocument(const OdfDocument &other)
123
content = other.content;
124
images = other.images;
131
OdfDocument::~OdfDocument()
138
bool OdfDocument::readFile(const std::string &/*fileName*/)
146
bool OdfDocument::writeFile(const std::string &/*fileName*/)
160
//########################################################################
161
//# E N D O F F I L E
162
//########################################################################