summaryrefslogtreecommitdiffstats
path: root/src/xml/node.h
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2017-11-03 00:55:01 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-05-09 19:42:10 +0000
commit61cbbcbe02f11d67e4fe9f3c4f452442d2e9f778 (patch)
tree3ed5e5b78b00cf25892a3a18e118eee41cbc15ec /src/xml/node.h
parentFix typo (diff)
downloadinkscape-61cbbcbe02f11d67e4fe9f3c4f452442d2e9f778.tar.gz
inkscape-61cbbcbe02f11d67e4fe9f3c4f452442d2e9f778.zip
Start migrating 0.92 patch to master
Diffstat (limited to 'src/xml/node.h')
-rw-r--r--src/xml/node.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/xml/node.h b/src/xml/node.h
index 29cfdab46..8d9fc19e4 100644
--- a/src/xml/node.h
+++ b/src/xml/node.h
@@ -384,6 +384,20 @@ public:
*/
virtual void changeOrder(Node *child, Node *after)=0;
+ /**
+ * @brief Remove all elements that not in src node
+ * @param src The node to check for elemments into this node
+ * @param key The attribute to use as the identity attribute
+ */
+ virtual void cleanOriginal(Node *src, gchar const *key)=0;
+
+
+ /**
+ * @brief Compare 2 nodes equality
+ * @param other The other node to compare
+ * @param recursive Recursive mode check
+ */
+ virtual bool equal(Node const *other, bool recursive)=0;
/**
* @brief Merge all children of another node with the current
*
@@ -397,8 +411,11 @@ public:
*
* @param src The node to merge into this node
* @param key The attribute to use as the identity attribute
+ * @param noid If true process noid items
+ * @param key If clean callback to cleanOriginal
*/
- virtual void mergeFrom(Node const *src, char const *key)=0;
+
+ virtual void mergeFrom(Node const *src, char const *key, bool extension = false, bool clean = false)=0;
/*@}*/