]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_oversetinset.C
some (yet unfinished) up/down work
[lyx.git] / src / mathed / math_oversetinset.C
index 28e65f7f5d41dcacb4a5e4323bf04d0a0be22e7a..ed4670407bdd501d8f47efe493b9fe37e250f020 100644 (file)
 #include "math_oversetinset.h"
 #include "math_data.h"
 #include "math_mathmlstream.h"
+
 #include "cursor.h"
+#include "LaTeXFeatures.h"
 
 using std::max;
 using std::auto_ptr;
 
 
-auto_ptr<InsetBase> MathOversetInset::clone() const
+auto_ptr<InsetBase> MathOversetInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathOversetInset(*this));
 }
@@ -75,3 +77,10 @@ void MathOversetInset::normalize(NormalStream & os) const
 {
        os << "[overset " << cell(0) << ' ' << cell(1) << ']';
 }
+
+
+void MathOversetInset::validate(LaTeXFeatures & features) const
+{
+       features.require("amsmath");
+       MathNestInset::validate(features);
+}