]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathArray.h
Put mathed on a diet: transfer dimension cache from inset to BufferView.
[lyx.git] / src / mathed / InsetMathArray.h
index 7387b6ae4cd56707879f1b728747123f7e174a94..f59d9e7304a9090cbad15a03722009359ed071d5 100644 (file)
@@ -31,7 +31,9 @@ public:
        /// convenience constructor from whitespace/newline separated data
        InsetMathArray(docstring const &, docstring const & str);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       ///
+       Dimension const dimension(BufferView const &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -50,7 +52,7 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        ///
        docstring name_;
 };