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);
41 int ascent(BufferView *, LyXFont const & font) const;
43 int descent(BufferView *, LyXFont const & font) const;
45 int width(BufferView *, LyXFont const & font) const;
47 void draw(BufferView *, LyXFont const &, int, float &, bool) const;
49 void Write(Buffer const *, std::ostream &) const;
51 void Read(Buffer const *, LyXLex & lex);
53 int Latex(Buffer const *, std::ostream &,
54 bool fragile, bool free_spc) const;
56 int Ascii(Buffer const *, std::ostream &) const;
58 int Linuxdoc(Buffer const *, std::ostream &) const;
60 int DocBook(Buffer const *, std::ostream &) const;
62 bool AutoDelete() const;
63 /// what appears in the minibuffer when opening
64 char const * EditMessage() const;
66 void Edit(BufferView *, int x, int y, unsigned int button);
68 EDITABLE Editable() const;
70 Inset * Clone() const;
72 Inset::Code LyxCode() const { return Inset::NO_CODE; }
73 /// We don't want "begin" and "end inset" in lyx-file
74 bool DirectWrite() const { return true; };
76 static void CloseErrorCB(FL_OBJECT *, long data);