diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2006-05-21 21:51:51 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2006-05-21 21:51:51 +0000 |
| commit | 12c02a7a645e0bc0a2acdddfe3fdb9911b8c6a61 (patch) | |
| tree | 2ab648845475b57afc3837bf1883b8785861d95e /src/dom/odf/odfdocument.h | |
| parent | Check if we are already SSL before trying STARTTLS (diff) | |
| download | inkscape-12c02a7a645e0bc0a2acdddfe3fdb9911b8c6a61.tar.gz inkscape-12c02a7a645e0bc0a2acdddfe3fdb9911b8c6a61.zip | |
Unix-ify the sources
(bzr r928)
Diffstat (limited to 'src/dom/odf/odfdocument.h')
| -rw-r--r-- | src/dom/odf/odfdocument.h | 306 |
1 files changed, 153 insertions, 153 deletions
diff --git a/src/dom/odf/odfdocument.h b/src/dom/odf/odfdocument.h index 9710de385..c18dc4b72 100644 --- a/src/dom/odf/odfdocument.h +++ b/src/dom/odf/odfdocument.h @@ -1,153 +1,153 @@ -#ifndef __ODF_DOCUMENT_H__
-#define __ODF_DOCUMENT_H__
-/**
- *
- * 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 <vector>
-#include <string>
-
-#include "dom/dom.h"
-
-namespace odf
-{
-
-
-//########################################################################
-//# I M A G E D A T A
-//########################################################################
-
-/**
- *
- */
-class ImageData
-{
-public:
-
- /**
- *
- */
- ImageData(const std::string &fileName,
- const std::vector<unsigned char> &buf);
-
- /**
- *
- */
- ImageData(const ImageData &other);
-
- /**
- *
- */
- virtual ~ImageData();
-
- /**
- *
- */
- virtual std::string getFileName();
-
- /**
- *
- */
- virtual void setFileName(const std::string &val);
-
- /**
- *
- */
- virtual std::vector<unsigned char> &getData();
-
- /**
- *
- */
- virtual void setData(const std::vector<unsigned char> &buf);
-
-private:
-
- std::string fileName;
-
- std::vector<unsigned char> data;
-
-};
-
-
-
-
-
-//########################################################################
-//# O D F D O C U M E N T
-//########################################################################
-
-
-/**
- *
- */
-class OdfDocument
-{
-public:
-
- /**
- *
- */
- OdfDocument();
-
- /**
- * Copy constructor
- */
- OdfDocument(const OdfDocument &other);
-
- /**
- *
- */
- virtual ~OdfDocument();
-
- /**
- *
- */
- virtual bool readFile(const std::string &fileName);
-
- /**
- *
- */
- virtual bool writeFile(const std::string &fileName);
-
-
-private:
-
- org::w3c::dom::Document *content;
-
- std::vector<ImageData> images;
-
-};
-
-} //namespace odf
-
-
-
-#endif /*__ODF_DOCUMENT_H__*/
-
-//########################################################################
-//# E N D O F F I L E
-//########################################################################
-
+#ifndef __ODF_DOCUMENT_H__ +#define __ODF_DOCUMENT_H__ +/** + * + * 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 <vector> +#include <string> + +#include "dom/dom.h" + +namespace odf +{ + + +//######################################################################## +//# I M A G E D A T A +//######################################################################## + +/** + * + */ +class ImageData +{ +public: + + /** + * + */ + ImageData(const std::string &fileName, + const std::vector<unsigned char> &buf); + + /** + * + */ + ImageData(const ImageData &other); + + /** + * + */ + virtual ~ImageData(); + + /** + * + */ + virtual std::string getFileName(); + + /** + * + */ + virtual void setFileName(const std::string &val); + + /** + * + */ + virtual std::vector<unsigned char> &getData(); + + /** + * + */ + virtual void setData(const std::vector<unsigned char> &buf); + +private: + + std::string fileName; + + std::vector<unsigned char> data; + +}; + + + + + +//######################################################################## +//# O D F D O C U M E N T +//######################################################################## + + +/** + * + */ +class OdfDocument +{ +public: + + /** + * + */ + OdfDocument(); + + /** + * Copy constructor + */ + OdfDocument(const OdfDocument &other); + + /** + * + */ + virtual ~OdfDocument(); + + /** + * + */ + virtual bool readFile(const std::string &fileName); + + /** + * + */ + virtual bool writeFile(const std::string &fileName); + + +private: + + org::w3c::dom::Document *content; + + std::vector<ImageData> images; + +}; + +} //namespace odf + + + +#endif /*__ODF_DOCUMENT_H__*/ + +//######################################################################## +//# E N D O F F I L E +//######################################################################## + |
