summaryrefslogtreecommitdiffstats
path: root/src/xml/text-node.h
diff options
context:
space:
mode:
authorAndrew Higginson <at.higginson@gmail.com>2011-12-27 21:04:47 +0000
committerAndrew <at.higginson@gmail.com>2011-12-27 21:04:47 +0000
commit80960b623a99aae1402ab651b2974ef544ed3b03 (patch)
treeba49d42c2789e9e11f805e2d5263e10f9fedeef8 /src/xml/text-node.h
parenttry to fix bug (diff)
parentGDL: Cherry-pick upstream patch 73852 (2011-03-23) - Add missing return value. (diff)
downloadinkscape-80960b623a99aae1402ab651b2974ef544ed3b03.tar.gz
inkscape-80960b623a99aae1402ab651b2974ef544ed3b03.zip
merged with trunk so I can build again...
(bzr r10092.1.36)
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;
};
}