]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathUnknown.cpp
Small improvement for bug #7509 as suggested by JMarc
[lyx.git] / src / mathed / InsetMathUnknown.cpp
index 41baefc92c1b54e974c96519593deb6a407bf721..03c41462f03ab680ad9b7cda87863facfa03309f 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);
 }
 
 
@@ -90,9 +86,15 @@ void InsetMathUnknown::mathematica(MathematicaStream & os) const
 }
 
 
-void InsetMathUnknown::mathmlize(MathStream & os) const
+void InsetMathUnknown::mathmlize(MathStream &) const
+{
+       throw MathExportException();
+}
+
+
+void InsetMathUnknown::htmlize(HtmlStream &) const
 {
-       os << MTag("mi") << name_ << ETag("mi");
+       throw MathExportException();
 }