]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathMacro.h
last commit was incomplete... not sure how I managed this..
[lyx.git] / src / mathed / MathMacro.h
index 8e9f1b23d051560462e892d7340cc94058b988a7..c0a9c7d4c0386ed95ddd068d7ce27741a473e4cb 100644 (file)
@@ -37,7 +37,7 @@ public:
        void drawDecoration(PainterInfo & pi, int x, int y) const
        { drawMarkers2(pi, x, y); }
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        /// get cursor position
        void cursorPos(BufferView const & bv, CursorSlice const & sl,
                bool boundary, int & x, int & y) const;
@@ -54,6 +54,8 @@ public:
        ///
        docstring name() const;
        ///
+       int kerning() const { return kerning_; }
+       ///
        void setExpansion(MathData const & exp, MathData const & args) const;
 
        ///
@@ -71,7 +73,7 @@ public:
        void infoize2(odocstream &) const;
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        ///
        void updateExpansion() const;
 
@@ -85,6 +87,8 @@ private:
        mutable MacroData macroBackup_;
        ///
        mutable bool editing_;
+       ///
+       mutable int kerning_;
 };