summaryrefslogtreecommitdiffstats
path: root/src/xml/text-node.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/text-node.h')
-rw-r--r--src/xml/text-node.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/xml/text-node.h b/src/xml/text-node.h
index b0b7c884b..53798b822 100644
--- a/src/xml/text-node.h
+++ b/src/xml/text-node.h
@@ -15,7 +15,7 @@
#ifndef SEEN_INKSCAPE_XML_TEXT_NODE_H
#define SEEN_INKSCAPE_XML_TEXT_NODE_H
-#include <glib/gquark.h>
+#include <glib.h>
#include "xml/simple-node.h"
namespace Inkscape {
@@ -30,14 +30,25 @@ struct TextNode : public SimpleNode {
: SimpleNode(g_quark_from_static_string("string"), doc)
{
setContent(content);
+ _is_CData = false;
+ }
+ TextNode(Util::ptr_shared<char> content, Document *doc, bool is_CData)
+ : SimpleNode(g_quark_from_static_string("string"), doc)
+ {
+ setContent(content);
+ _is_CData = is_CData;
}
TextNode(TextNode const &other, Document *doc)
- : SimpleNode(other, doc) {}
+ : SimpleNode(other, doc) {
+ _is_CData = other._is_CData;
+ }
Inkscape::XML::NodeType type() const { return Inkscape::XML::TEXT_NODE; }
+ bool is_CData() const { return _is_CData; }
protected:
SimpleNode *_duplicate(Document* doc) const { return new TextNode(*this, doc); }
+ bool _is_CData;
};
}