#include "formulabase.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
class MathMacroTemplate;
///
InsetFormulaMacro();
/// construct a macro hull from its name and the number of arguments
- explicit InsetFormulaMacro(string const & name, int nargs);
+ explicit InsetFormulaMacro(string const & name, int nargs, string const & t);
/// constructs a mocro from its LaTeX definition
explicit InsetFormulaMacro(string const & s);
///
- int ascent(BufferView *, LyXFont const &) const;
- ///
- int descent(BufferView *, LyXFont const &) const;
- ///
- int width(BufferView *, LyXFont const &) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
///
- void draw(BufferView *, LyXFont const &, int, float &, bool) const;
+ void draw(PainterInfo & pi, int x, int y) const;
///
void read(Buffer const *, LyXLex & lex);
///
int ascii(Buffer const *, std::ostream &, int linelen) const;
///
- int latex(Buffer const *, std::ostream & os, bool fragile, bool free_spc) const;
+ int latex(Buffer const *, std::ostream & os,
+ LatexRunParams const &) const;
///
int linuxdoc(Buffer const *, std::ostream & os) const;
///
int docbook(Buffer const *, std::ostream &, bool mixcont) const;
///
- Inset * clone(Buffer const &, bool same_id = false) const;
+ virtual std::auto_ptr<InsetBase> clone() const;
///
- Inset::Code lyxCode() const;
+ InsetOld::Code lyxCode() const;
///
MathAtom const & par() const;
///