]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFont.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathFont.h
index 085ca65b566e6c8a38feee60d49b8c68e2956dca..a55c1f77b16ca7910ef503ea18c45e2529d62ee0 100644 (file)
@@ -34,7 +34,7 @@ public:
        ///
        docstring name() const;
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -45,9 +45,11 @@ public:
        void validate(LaTeXFeatures & features) const;
        ///
        void infoize(odocstream & os) const;
+       ///
+       int kerning(BufferView const * bv) const { return cell(0).kerning(bv); }
 
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        /// the font to be used on screen
        latexkeys const * key_;
 };