]> 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 b14f9b2e4e366d95423cec82917ef4d39ce7aa3f..f59d9e7304a9090cbad15a03722009359ed071d5 100644 (file)
@@ -33,6 +33,8 @@ public:
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
+       Dimension const dimension(BufferView const &) const;
+       ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
        InsetMathArray * asArrayInset() { return this; }
@@ -50,7 +52,7 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        ///
        docstring name_;
 };