summaryrefslogtreecommitdiffstats
path: root/src/xml/simple-document.h
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2011-09-08 14:27:40 +0000
committertavmjong-free <tavmjong@free.fr>2011-09-08 14:27:40 +0000
commit8a73582fd88bffa4e219dfce758a930b43c06a98 (patch)
tree625d3418f77eb5db1aa913f522773ed0f4bd4f55 /src/xml/simple-document.h
parentObey to dont-scale-strokewidth preference, even when scaling one dimension to... (diff)
downloadinkscape-8a73582fd88bffa4e219dfce758a930b43c06a98.tar.gz
inkscape-8a73582fd88bffa4e219dfce758a930b43c06a98.zip
Preserve CDATA sections on output.
(bzr r10625)
Diffstat (limited to 'src/xml/simple-document.h')
-rw-r--r--src/xml/simple-document.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xml/simple-document.h b/src/xml/simple-document.h
index 8a37c577c..ff1d94b0c 100644
--- a/src/xml/simple-document.h
+++ b/src/xml/simple-document.h
@@ -31,7 +31,7 @@ class SimpleDocument : public SimpleNode,
public:
explicit SimpleDocument()
: SimpleNode(g_quark_from_static_string("xml"), this),
- _in_transaction(false) {}
+ _in_transaction(false), _is_CData(false) {}
NodeType type() const { return Inkscape::XML::DOCUMENT_NODE; }
@@ -44,6 +44,7 @@ public:
Node *createElement(char const *name);
Node *createTextNode(char const *content);
+ Node *createTextNode(char const *content, bool const is_CData);
Node *createComment(char const *content);
Node *createPI(char const *target, char const *content);
@@ -76,6 +77,7 @@ protected:
private:
bool _in_transaction;
LogBuilder _log_builder;
+ bool _is_CData;
};
}