]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mathml_editor/src/CMathMLFactoryXSLT.hh
* code cleanup
[helm.git] / helm / DEVEL / mathml_editor / src / CMathMLFactoryXSLT.hh
diff --git a/helm/DEVEL/mathml_editor/src/CMathMLFactoryXSLT.hh b/helm/DEVEL/mathml_editor/src/CMathMLFactoryXSLT.hh
new file mode 100644 (file)
index 0000000..70998e0
--- /dev/null
@@ -0,0 +1,23 @@
+
+#ifndef __CMathMLFactoryXSLT_hh__
+#define __CMathMLFactoryXSLT_hh__
+
+#include "AMathMLFactory.hh"
+
+class CMathMLFactoryXSLT : public AMathMLFactory
+{
+public:
+  CMathMLFactoryXSLT(class ALogger& l, const DOM::XSLTStylesheet& s) : AMathMLFactory(l), style(s) { };
+  CMathMLFactoryXSLT(class ALogger& l, class AMathMLConsumer& c, const DOM::XSLTStylesheet& s) : AMathMLFactory(l, c), style(s) { };
+
+  virtual void documentModified(class TDocument&);
+  virtual DOM::Document document(void) const { return result; };
+
+private:
+  static bool subst(const DOM::Element& e1, const DOM::GdomeString& id, const DOM::Element& e2);
+
+  const DOM::XSLTStylesheet& style;
+  DOM::Document result;
+};
+
+#endif // __CMathMLFactoryXSLT_hh__