]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathMBox.h
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / mathed / InsetMathMBox.h
index a64d7d7f4fe5f1048097cf8a09743b2423a38bdf..ace477a2f9cecbf6ffea1cb2d5921b348fb1a5e4 100644 (file)
@@ -4,7 +4,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.
  */
@@ -31,24 +31,21 @@ class InsetMathMBox : public InsetMath {
 public:
        ///
        explicit InsetMathMBox();
-       explicit InsetMathMBox(LayoutPtr const & layout);
+       explicit InsetMathMBox(Layout const & layout);
 
        /// this stores metrics information in cache_
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        /// draw according to cached metrics
        void draw(PainterInfo &, int x, int y) const;
        ///
-       void drawSelection(PainterInfo & pi, int x, int y) const;
-       ///
        bool inMathed() const { return false; }
        ///
        bool isActive() const { return true; }
 
        ///
-       void write(Buffer const & buf, WriteStream & os) const;
+       void write(WriteStream & os) const;
        ///
-       int latex(Buffer const &, odocstream & os,
-                       OutputParams const & runparams) const;
+       int latex(odocstream & os, OutputParams const & runparams) const;
        ///
        Text * getText(int) const;
        ///
@@ -61,7 +58,7 @@ protected:
        mutable Text text_;
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 };