]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_stringinset.C
some (yet unfinished) up/down work
[lyx.git] / src / mathed / math_stringinset.C
index 68e604ccb13f9d7f458faeb560249feb0c0eab6d..8b157df513b33cd6a4da1684f25a740ca00deb97 100644 (file)
@@ -14,8 +14,9 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 #include "math_support.h"
-#include "debug.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
@@ -24,7 +25,7 @@ MathStringInset::MathStringInset(string const & s)
 {}
 
 
-auto_ptr<InsetBase> MathStringInset::clone() const
+auto_ptr<InsetBase> MathStringInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathStringInset(*this));
 }
@@ -39,7 +40,7 @@ void MathStringInset::metrics(MetricsInfo & mi, Dimension & dim) const
 void MathStringInset::draw(PainterInfo & pi, int x, int y) const
 {
        //lyxerr << "drawing '" << str_ << "' code: " << code_ << endl;
-       drawStr(pi, pi.base.font, x, y, str_);
+       pi.draw(x, y, str_);
 }