]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetFormulaMacro.h
simplify GuiToc / TocWidget interaction. Much can still be simplified...
[lyx.git] / src / mathed / InsetFormulaMacro.h
index ad27ec2101d621ee898ae9dd1a78c03503902adb..20383169de73467afffcaa2d321f5e19a909265b 100644 (file)
@@ -19,7 +19,7 @@
 namespace lyx {
 
 class MathMacroTemplate;
-class LyXLex;
+class Lexer;
 
 
 // An InsetFormulaMacro only knows its name and asks the global
@@ -40,23 +40,21 @@ public:
        void draw(PainterInfo & pi, int x, int y) const;
 
        ///
-       void read(Buffer const &, LyXLex & lex);
+       void read(Buffer const &, Lexer & lex);
        ///
        void write(Buffer const &, std::ostream & os) const;
        ///
-       int plaintext(Buffer const &, odocstream &,
-                 OutputParams const &) const;
-       ///
        int latex(Buffer const &, odocstream & os,
                  OutputParams const &) const;
        ///
+       int plaintext(Buffer const &, odocstream &,
+                     OutputParams const &) const;
+       ///
        int docbook(Buffer const &, odocstream &,
                    OutputParams const &) const;
 
        ///
-       std::auto_ptr<InsetBase> clone() const;
-       ///
-       InsetBase::Code lyxCode() const { return MATHMACRO_CODE; }
+       InsetCode lyxCode() const { return MATHMACRO_CODE; }
        ///
        docstring const & getInsetName() const { return name_; }
        ///
@@ -70,6 +68,8 @@ private:
        docstring prefix() const;
        ///
        docstring name_;
+       ///
+       Inset * clone() const;
 };