]> 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 47fd08f982f8326360f3eb140183b40be2de8527..6d3529bd33378bcb46ee4dd125b18a5a17f1cda0 100644 (file)
@@ -31,24 +31,21 @@ 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;
 };