]> git.lyx.org Git - features.git/blobdiff - src/mathed/formulamacro.h
fix macro, small cleanup
[features.git] / src / mathed / formulamacro.h
index c63419c6c5469681f2969898e465abe2bdb05028..8eab7cc3d210a21904a0edaa891314dc29fbc85e 100644 (file)
@@ -33,7 +33,7 @@ public:
        InsetFormulaMacro();
        ///
        explicit
-       InsetFormulaMacro(string name, int na = 0, bool env = false);
+       InsetFormulaMacro(string name, int na = 0);
        ///
        ~InsetFormulaMacro();
        ///
@@ -58,7 +58,7 @@ public:
        ///
        Inset * Clone(Buffer const &) const;
        ///
-       Inset::Code LyxCode() const { return Inset::MATHMACRO_CODE; }
+       Inset::Code LyxCode() const;
        /// what appears in the minibuffer when opening
        string const EditMessage() const;
        ///
@@ -70,11 +70,17 @@ public:
 
 private:
        ///
-        bool opened;
+        bool opened_;
        ///
-        string name;
+        string name_;
        ///
-        MathMacroTemplate * tmacro;
+        MathMacroTemplate * tmacro_;
 };
 
+
+inline
+Inset::Code InsetFormulaMacro::LyxCode() const
+{
+       return Inset::MATHMACRO_CODE;
+}
 #endif