The edit-operation opens a
dialog with the text of the error-message. The inset is displayed as
"Error" in a box, and automatically deleted. */
-class InsetError: public Inset {
+class InsetError : public Inset {
public:
///
+ explicit
InsetError(string const & string);
+#if 0
///
InsetError();
+#endif
///
~InsetError();
///
- int ascent(Painter &, LyXFont const & font) const;
- ///
- int descent(Painter &, LyXFont const & font) const;
+ int ascent(BufferView *, LyXFont const & font) const;
///
- int width(Painter &, LyXFont const & font) const;
+ int descent(BufferView *, LyXFont const & font) const;
///
- void draw(Painter &, LyXFont const & font, int baseline, float & x) const;
+ int width(BufferView *, LyXFont const & font) 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) const;
-#ifndef USE_OSTREAM_ONLY
+ void Read(Buffer const *, LyXLex & lex);
///
- int Latex(string & file, signed char fragile) 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;
///
bool AutoDelete() const;
/// what appears in the minibuffer when opening
- const char * EditMessage() const {return _("Opened error");}
+ char const * EditMessage() const;
///
void Edit(BufferView *, int x, int y, unsigned int button);
///
- unsigned char Editable() const;
+ EDITABLE Editable() const;
///
Inset * Clone() const;
///