index 30e74a4554dca54b2e49bfbca9e6d20cada5ff50..d854f92fb384365ab445d4b8ac0b9e8c0c3870cc 100644 (file)
#include "xml/element-node.h"
#include "xml/text-node.h"
#include "xml/comment-node.h"
+#include "xml/pi-node.h"
namespace Inkscape {
namespace XML {
-void SimpleDocument::_initBindings() {
- _bindDocument(*this);
-}
-
void SimpleDocument::beginTransaction() {
g_assert(!_in_transaction);
_in_transaction = true;
}
Node *SimpleDocument::createElement(char const *name) {
- return new ElementNode(g_quark_from_string(name));
+ return new ElementNode(g_quark_from_string(name), this);
}
Node *SimpleDocument::createTextNode(char const *content) {
- return new TextNode(Util::share_string(content));
+ return new TextNode(Util::share_string(content), this);
}
Node *SimpleDocument::createComment(char const *content) {
- return new CommentNode(Util::share_string(content));
+ return new CommentNode(Util::share_string(content), this);
+}
+
+Node *SimpleDocument::createPI(char const *target, char const *content) {
+ return new PINode(g_quark_from_string(target), Util::share_string(content), this);
}
void SimpleDocument::notifyChildAdded(Node &parent,