2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
19 #include FORMS_H_LOCATION
24 /** Used for error messages from LaTeX runs.
26 The edit-operation opens a
27 dialog with the text of the error-message. The inset is displayed as
28 "Error" in a box, and automatically deleted. */
29 class InsetError: public Inset {
33 InsetError(string const & string);
39 int ascent(Painter &, LyXFont const & font) const;
41 int descent(Painter &, LyXFont const & font) const;
43 int width(Painter &, LyXFont const & font) const;
45 void draw(Painter &, LyXFont const & font, int baseline, float & x) const;
47 void Write(Buffer const *, std::ostream &) const;
49 void Read(Buffer const *, LyXLex & lex);
51 int Latex(Buffer const *, std::ostream &, bool fragile, bool free_spc) const;
53 int Ascii(Buffer const *, std::ostream &) const;
55 int Linuxdoc(Buffer const *, std::ostream &) const;
57 int DocBook(Buffer const *, std::ostream &) const;
59 bool AutoDelete() const;
60 /// what appears in the minibuffer when opening
61 char const * EditMessage() const;
63 void Edit(BufferView *, int x, int y, unsigned int button);
65 EDITABLE Editable() const;
67 Inset * Clone() const;
69 Inset::Code LyxCode() const { return Inset::NO_CODE; }
70 /// We don't want "begin" and "end inset" in lyx-file
71 bool DirectWrite() const { return true; };
73 static void CloseErrorCB(FL_OBJECT *, long data);