]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mathml_editor/src/TNode.hh
* added missing dependencies
[helm.git] / helm / DEVEL / mathml_editor / src / TNode.hh
index dde315d36a05d787740afc8120353d11992e2151..c9f85b8f8d34c84a5da5bb1cbfc55885caf74d44 100644 (file)
@@ -52,6 +52,7 @@ public:
   //void  advance(const TNode&) const;
   void  remove(void) const;
   void  replace(const TNode&) const;
+  void  replace(const TNode&, const TNode&) const;
   void  insert(const TNode&) const;
   void  append(const TNode&) const;
   void  append(const TNode&, const TNode&) const;
@@ -63,6 +64,7 @@ public:
   std::string name(void) const { return node.get_localName(); };
   std::string nameC(void) const { return node.getAttribute("name"); };
   bool  hasId(void) const { return node.hasAttribute("id"); };
+  bool  hasId(const std::string& id) const { return node.getAttribute("id") == id; };
   bool  is(const std::string& s) const { return name() == s; };
   bool  isG(void) const { return is("g"); };
   bool  isSb(void) const { return is("sb"); };