]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDiff.C
Allows editing when the Prefs dialog is opened; fix bug 3140:
[lyx.git] / src / mathed / InsetMathDiff.C
index dfa3416a4862cc171930949bfe0187744dc0e8b4..47ee1756544a0c18a2d64173d0787e2747689ed5 100644 (file)
 
 #include "InsetMathDiff.h"
 #include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
 #include "debug.h"
 
+
+namespace lyx {
+
 using std::auto_ptr;
 using std::endl;
 
@@ -45,9 +48,10 @@ void InsetMathDiff::normalize(NormalStream & os) const
 }
 
 
-void InsetMathDiff::metrics(MetricsInfo &, Dimension &) const
+bool InsetMathDiff::metrics(MetricsInfo &, Dimension &) const
 {
        lyxerr << "should not happen" << endl;
+       return true;
 }
 
 
@@ -95,7 +99,7 @@ void InsetMathDiff::mathematica(MathematicaStream & os) const
 }
 
 
-void InsetMathDiff::mathmlize(MathMLStream & os) const
+void InsetMathDiff::mathmlize(MathStream & os) const
 {
        os << "diff(";
        for (idx_type idx = 0; idx < nargs(); ++idx) {
@@ -111,3 +115,6 @@ void InsetMathDiff::write(WriteStream &) const
 {
        lyxerr << "should not happen" << endl;
 }
+
+
+} // namespace lyx