summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/odf.h
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-04-13 21:55:50 +0000
committerishmal <ishmal@users.sourceforge.net>2006-04-13 21:55:50 +0000
commit74b5ddaf62c4bce73130cfb66f61689b0d242b37 (patch)
treecab12f152422cd74964656e6606cafe1c0e92d23 /src/extension/internal/odf.h
parentMade the format buffer larger and part of the class, not the stack. (diff)
downloadinkscape-74b5ddaf62c4bce73130cfb66f61689b0d242b37.tar.gz
inkscape-74b5ddaf62c4bce73130cfb66f61689b0d242b37.zip
More WIP. Got all of the files generated. Now just work on content.xml to get viable info into OO.org
(bzr r513)
Diffstat (limited to 'src/extension/internal/odf.h')
-rw-r--r--src/extension/internal/odf.h44
1 files changed, 41 insertions, 3 deletions
diff --git a/src/extension/internal/odf.h b/src/extension/internal/odf.h
index 083f571d6..250b807d5 100644
--- a/src/extension/internal/odf.h
+++ b/src/extension/internal/odf.h
@@ -62,12 +62,51 @@ class StyleInfo
{
public:
+ StyleInfo()
+ {
+ init();
+ }
+
StyleInfo(const std::string &nameArg, const std::string &styleArg)
{
+ init();
name = nameArg;
style = styleArg;
- fill = "none";
- stroke = "none";
+ }
+
+ StyleInfo(const StyleInfo &other)
+ {
+ assign(other);
+ }
+
+ StyleInfo &operator=(const StyleInfo &other)
+ {
+ assign(other);
+ return *this;
+ }
+
+ void assign(const StyleInfo &other)
+ {
+ name = other.name;
+ style = other.style;
+ cssStyle = other.cssStyle;
+ stroke = other.stroke;
+ strokeColor = other.strokeColor;
+ strokeWidth = other.strokeWidth;
+ fill = other.fill;
+ fillColor = other.fillColor;
+ }
+
+ void init()
+ {
+ name = "none";
+ style = "none";
+ cssStyle = "none";
+ stroke = "none";
+ strokeColor = "none";
+ strokeWidth = "none";
+ fill = "none";
+ fillColor = "none";
}
virtual ~StyleInfo()
@@ -142,7 +181,6 @@ private:
//for renaming image file names
std::map<std::string, std::string> imageTable;
- void preprocess(ZipFile &zf, SPDocument *doc);
void preprocess(ZipFile &zf, Inkscape::XML::Node *node);
bool writeManifest(ZipFile &zf);