#pragma interface
#endif
+#include <iosfwd>
+
#include "insets/lyxinset.h"
-#include "support/LOstream.h"
class MathParInset;
class MathedCursor;
+class Buffer;
///
class InsetFormula: public UpdatableInset {
public:
///
+ explicit
InsetFormula(bool display = false);
///
+ explicit
InsetFormula(MathParInset *);
///
~InsetFormula();
///
- int ascent(Painter &, LyXFont const &) const;
- ///
- int descent(Painter &, LyXFont const &) const;
+ int ascent(BufferView *, LyXFont const &) const;
///
- int width(Painter &, LyXFont const &) const;
+ int descent(BufferView *, LyXFont const &) const;
///
- void draw(Painter &, LyXFont const &, int baseline, float & x) const;
+ int width(BufferView *, LyXFont const &) const;
///
- void Write(ostream &) const;
+ void draw(BufferView *,LyXFont const &, int, float &, bool) const;
///
- void Read(LyXLex & lex);
+ void Write(Buffer const *, std::ostream &) const;
///
- int Latex(ostream &, signed char fragile, bool free_spc) const;
-#ifndef USE_OSTREAM_ONLY
+ void Read(Buffer const *, LyXLex & lex);
///
- int Latex(string & file, signed char fragile, bool free_spc) const;
+ int Latex(Buffer const *, std::ostream &,
+ bool fragile, bool free_spc) const;
///
- int Linuxdoc(string & file) const;
+ int Ascii(Buffer const *, std::ostream &) const;
///
- int DocBook(string & file) const;
-#else
+ int Linuxdoc(Buffer const *, std::ostream &) const;
///
- int Linuxdoc(ostream &) const;
- ///
- int DocBook(ostream &) const;
-#endif
+ int DocBook(Buffer const *, std::ostream &) const;
///
void Validate(LaTeXFeatures &) const;
///
}
/// what appears in the minibuffer when opening
- const char * EditMessage() const {return _("Math editor mode");}
+ char const * EditMessage() const;
///
void Edit(BufferView *, int x, int y, unsigned int button);
///
///
void HideInsetCursor(BufferView *);
///
- void GetCursorPos(int &, int &) const;
+ void GetCursorPos(BufferView *, int &, int &) const;
///
void ToggleInsetSelection(BufferView * bv);
///
///
bool SetNumber(bool);
///
- int GetNumberOfLabels() const;
- ///
- string getLabel(int) const;
+ std::vector<string> getLabelList() const;
protected:
+ ///
void UpdateLocal(BufferView * bv);
+ ///
MathParInset * par;
+ ///
static MathedCursor * mathcursor;
private:
+ ///
bool disp_flag;
+ ///
string label;
};