]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formulamacro.h
small cleanup, doxygen, formatting changes
[lyx.git] / src / mathed / formulamacro.h
index 2ae57cb6eeaa5e898b02afe96e2ce20146e1b83e..5eb113fb7215f0505e83101d582e17e00ed53657 100644 (file)
@@ -37,11 +37,11 @@ public:
        ///
        ~InsetFormulaMacro();
        ///
-       int ascent(Painter &, LyXFont const &) const;
+       int ascent(BufferView *, LyXFont const &) const;
        ///
-       int descent(Painter &, LyXFont const &) const;
+       int descent(BufferView *, LyXFont const &) const;
        ///
-       int width(Painter &, LyXFont const &) const;
+       int width(BufferView *, LyXFont const &) const;
        ///
        void draw(BufferView *,LyXFont const &, int, float &, bool) const;
        ///
@@ -56,10 +56,11 @@ public:
        ///
        int DocBook(Buffer const *, std::ostream &) const;
        ///
-       Inset * Clone() const;
-
+       Inset * Clone(Buffer const &) const;
+       ///
+       Inset::Code LyxCode() const { return Inset::MATHMACRO_CODE; }
        /// what appears in the minibuffer when opening
-       char const * EditMessage() const;
+       string const EditMessage() const;
        ///
        void Edit(BufferView *, int x, int y, unsigned int button);
        ///
@@ -67,10 +68,6 @@ public:
        ///
        RESULT LocalDispatch(BufferView *, int, string const &);
 
-protected:
-       ///
-       //void UpdateLocal();
-
 private:
        ///
         bool opened;