* Licence details can be found in the file COPYING.
*
* \author Alejandro Aguilar Sierra
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
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);
///
- bool metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void draw(PainterInfo & pi, int x, int y) const;
///
- void read(Buffer const &, Lexer & lex);
+ void read(Lexer & lex);
///
- void write(Buffer const &, std::ostream & os) const;
+ void write(std::ostream & os) const;
///
- int latex(Buffer const &, odocstream & os,
- OutputParams const &) const;
+ int latex(odocstream & os, OutputParams const &) const;
///
- int plaintext(Buffer const &, odocstream &,
- OutputParams const &) const;
+ int plaintext(odocstream &, OutputParams const &) const;
///
- int docbook(Buffer const &, odocstream &,
- OutputParams const &) const;
+ int docbook(odocstream &, OutputParams const &) const;
///
- Inset::Code 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;