- x += width(pain, font) - 1;
-}
-#else
-void InsetError::Draw(LyXFont font, LyXScreen & scr,
- int baseline, float & x)
-{
- LyXFont efont;
- efont.setSize(font.size()).decSize();
- efont.setLatex(LyXFont::ON);
-
- // Draw as "Error" in a framed box
- x += 1;
- scr.fillRectangle(gc_lighted,
- int(x), baseline - Ascent(font)+1,
- Width(font)-2, Ascent(font)+ Descent(font)-2);
- scr.drawRectangle(gc_foot,
- int(x), baseline-Ascent(font)+1,
- Width(font)-2, Ascent(font)+Descent(font)-2);
- scr.drawString(efont, _("Error"), baseline, int(x+2));
-
- x += Width(font) - 1;
-}
-#endif
-
-void InsetError::Write(ostream &)
-{
-}
-
-
-void InsetError::Read(LyXLex &)
-{
-}
-
-
-int InsetError::Latex(ostream &, signed char /*fragile*/)
-{
- return 0;
-}
-
-
-int InsetError::Latex(string &, signed char /*fragile*/)
-{
- return 0;
-}
-
-
-int InsetError::Linuxdoc(string &)
-{
- return 0;
-}
-
-
-int InsetError::DocBook(string &)
-{
- return 0;
-}
-
-
-bool InsetError::AutoDelete() const
-{
- return true;
-}
-
-
-unsigned char InsetError::Editable() const
-{
- return 1;
-}
-
-
-void InsetError::CloseErrorCB(FL_OBJECT * ob, long)
-{
- InsetError * inset = static_cast<InsetError*>(ob->u_vdata);
- if (inset->form) {
- fl_hide_form(inset->form);
- fl_free_form(inset->form);
- inset->form = 0;
- }