]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetFormulaMacro.h
Natbib authoryear uses (Ref1; Ref2) by default.
[lyx.git] / src / mathed / InsetFormulaMacro.h
index 47dc2664d82c19b669a165acbd92a38f82075315..25e896958004ee37c4a0d84bf897d1671724ecbb 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);
        ///
@@ -44,18 +44,20 @@ public:
        ///
        void write(std::ostream & os) const;
        ///
-       int latex(odocstream & os, OutputParams const &) const;
+       int latex(otexstream & os, OutputParams const &) const;
        ///
-       int plaintext(odocstream &, OutputParams const &) const;
+       int plaintext(odocstringstream &, OutputParams const &, size_t) const;
        ///
        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_; }
        ///
        bool editable() const { return true; }
+       ///
+       InsetCode lyxCode() const { return MATH_FORMULA_MACRO_CODE; }
 private:
        ///
        MathAtom & tmpl() const;