]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathMBox.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathMBox.h
index 8fea011a14ef19289eba2186eb2fbb4e25960c04..6d3529bd33378bcb46ee4dd125b18a5a17f1cda0 100644 (file)
@@ -16,7 +16,7 @@
 #ifndef MATH_MBOXINSET_H
 #define MATH_MBOXINSET_H
 
-#include "InsetMathDim.h"
+#include "InsetMath.h"
 #include "Text.h"
 
 
@@ -27,28 +27,25 @@ class BufferView;
 
 // almost a substitute for the real text inset...
 
-class InsetMathMBox : public InsetMathDim {
+class InsetMathMBox : public InsetMath {
 public:
        ///
        explicit InsetMathMBox();
-       explicit InsetMathMBox(Layout_ptr 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;
 };