* Created: January 1996
* Description: Allows the edition of math paragraphs inside Lyx.
*
- * Copyright: (c) 1996, Alejandro Aguilar Sierra
+ * Copyright: 1996, Alejandro Aguilar Sierra
*
* Version: 0.4, Lyx project.
*
///
InsetFormulaMacro();
///
+ explicit
InsetFormulaMacro(string name, int na = 0, bool env = false);
///
~InsetFormulaMacro();
///
- int ascent(Painter &, LyXFont const &) const;
+ int ascent(BufferView *, LyXFont const &) const;
///
- int descent(Painter &, LyXFont const &) const;
+ int descent(BufferView *, LyXFont const &) const;
///
- int width(Painter &, LyXFont const &) const;
+ int width(BufferView *, LyXFont const &) const;
///
- void draw(Painter &, LyXFont const &, int baseline, float & x) const;
+ void draw(BufferView *,LyXFont const &, int, float &, bool) const;
///
- void Read(LyXLex & lex);
+ void Read(Buffer const *, LyXLex & lex);
///
- void Write(ostream & os);
+ void Write(Buffer const *, std::ostream & os) const;
///
- int Latex(ostream & os, signed char fragile);
+ int Latex(Buffer const *, std::ostream & os, bool fragile,
+ bool free_spc) const;
///
- int Latex(string & file, signed char fragile);
+ int Linuxdoc(Buffer const *, std::ostream & os) const;
///
- int Linuxdoc(string & file);
+ int DocBook(Buffer const *, std::ostream &) const;
///
- int DocBook(string & file);
+ Inset * Clone(Buffer const &) const;
///
- Inset * Clone() const;
-
+ Inset::Code LyxCode() const { return Inset::MATHMACRO_CODE; }
/// what appears in the minibuffer when opening
- char const * EditMessage() const {return _("Math macro editor mode");}
- ///
- void Edit(int x, int y);
+ string const EditMessage() const;
///
- void InsetUnlock();
+ void Edit(BufferView *, int x, int y, unsigned int button);
///
- bool LocalDispatch(int, char const *);
-protected:
+ void InsetUnlock(BufferView *);
///
- void UpdateLocal();
+ RESULT LocalDispatch(BufferView *, int, string const &);
+
private:
///
bool opened;