2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 1995 Matthias Ettrich
9 *======================================================*/
18 #include FORMS_H_LOCATION
23 /** Used for error messages from LaTeX runs.
25 The edit-operation opens a
26 dialog with the text of the error-message. The inset is displayed as
27 "Error" in a box, and automatically deleted. */
28 class InsetError: public Inset {
31 InsetError(string const & string);
37 int Ascent(LyXFont const & font) const;
39 int Descent(LyXFont const & font) const;
41 int Width(LyXFont const & font) const;
43 void Draw(LyXFont font, LyXScreen & scr, int baseline, float & x);
45 void Write(FILE * file);
47 void Read(LyXLex & lex);
49 int Latex(FILE * file, signed char fragile);
51 int Latex(string & file, signed char fragile);
53 int Linuxdoc(string & file);
55 int DocBook(string & file);
57 bool AutoDelete() const;
58 /// what appears in the minibuffer when opening
59 char const * EditMessage() {return _("Opened error");}
63 unsigned char Editable() const;
67 Inset::Code LyxCode() const { return Inset::NO_CODE; }
68 /// We don't want "begin" and "end inset" in lyx-file
69 bool DirectWrite() const { return true; };
71 static void CloseErrorCB(FL_OBJECT *, long data);