]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mathml_editor/src/APushParser.cc
* this is a large commit
[helm.git] / helm / DEVEL / mathml_editor / src / APushParser.cc
diff --git a/helm/DEVEL/mathml_editor/src/APushParser.cc b/helm/DEVEL/mathml_editor/src/APushParser.cc
new file mode 100644 (file)
index 0000000..9ff5eff
--- /dev/null
@@ -0,0 +1,24 @@
+
+#include "APushParser.hh"
+#include "AMathMLFactory.hh"
+
+void
+APushParser::reset()
+{
+  if (factory) factory->reset();
+}
+
+bool
+APushParser::freeze()
+{
+  return freeze_level++ == 0;
+}
+
+bool
+APushParser::thaw()
+{
+  if (freeze_level > 0)
+    return --freeze_level == 0;
+  else
+    return true;
+}