]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetFormulaMacro.h
Try to finally fix #6930. All the paths that did not come from context
[lyx.git] / src / mathed / InsetFormulaMacro.h
index 5929c1b33017cda4f714360431434797ae91e8e6..6e3752a36d749666ff5dad3db9836c2e951ce510 100644 (file)
@@ -29,9 +29,9 @@ class Lexer;
 class InsetFormulaMacro : public InsetMathNest {
 public:
        ///
-       InsetFormulaMacro();
+       InsetFormulaMacro(Buffer * buf);
        /// construct a macro hull from its name and the number of arguments
-       InsetFormulaMacro(docstring const & name, int nargs, docstring const & t);
+       InsetFormulaMacro(Buffer * buf, docstring const & name, int nargs, docstring const & t);
        /// constructs a mocro from its LaTeX definition
        explicit InsetFormulaMacro(docstring const & s);
        ///
@@ -51,11 +51,13 @@ public:
        int docbook(odocstream &, OutputParams const &) const;
 
        ///
-       InsetCode lyxCode() const { return MATHMACRO_CODE; }
+       InsetCode lyxCode() const { return MATHMACRO_CODE_CODE; }
        ///
        docstring const & getInsetName() const { return name_; }
        ///
-       EDITABLE editable() const { return HIGHLY_EDITABLE; }
+       bool editable() const { return true; }
+       ///
+       InsetCode lyxCode() const { return MATH_FORMULA_MACRO_CODE; }
 private:
        ///
        MathAtom & tmpl() const;