]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathUnknown.cpp
A little cleanup of the layout files.
[lyx.git] / src / mathed / InsetMathUnknown.cpp
index 41baefc92c1b54e974c96519593deb6a407bf721..2cd11c2a8666ed1f537ab58ac6e026fcbe3b6552 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #include "MathStream.h"
 #include "MathStream.h"
 
+#include "frontends/Painter.h"
+
 
 namespace lyx {
 
-InsetMathUnknown::InsetMathUnknown(docstring const & nm, bool final, bool black)
-       : name_(nm), final_(final), black_(black)
+InsetMathUnknown::InsetMathUnknown(docstring const & nm,
+       docstring const & selection, bool final, bool black)
+       : name_(nm), final_(final), black_(black), selection_(selection)
 {}
 
 
-Inset * InsetMathUnknown::clone() const
-{
-       return new InsetMathUnknown(*this);
-}
-
-
 docstring InsetMathUnknown::name() const
 {
        return name_;
@@ -62,7 +59,6 @@ void InsetMathUnknown::draw(PainterInfo & pi, int x, int y) const
                drawStrBlack(pi, x, y, name_);
        else
                drawStrRed(pi, x, y, name_);
-       setPosCache(pi, x, y);
 }