* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-1999 The LyX Team.
+ * Copyright 1995-2000 The LyX Team.
*
* ====================================================== */
#include "gettext.h"
#include "lyx_gui_misc.h" // CancelCloseBoxCB
#include "Painter.h"
+#include "font.h"
+
+using std::ostream;
/* Error, used for the LaTeX-Error Messages */
{
LyXFont efont;
efont.setSize(font.size()).decSize();
- return efont.maxAscent() + 1;
+ return lyxfont::maxAscent(efont) + 1;
}
{
LyXFont efont;
efont.setSize(font.size()).decSize();
- return efont.maxDescent() + 1;
+ return lyxfont::maxDescent(efont) + 1;
}
{
LyXFont efont;
efont.setSize(font.size()).decSize();
- return 6 + efont.textWidth(_("Error"), strlen(_("Error")));
+ return 6 + lyxfont::width(_("Error"), efont);
}
}
-int InsetError::Latex(ostream &, signed char /*fragile*/, bool /*fs*/) const
+int InsetError::Latex(ostream &,
+ bool /*fragile*/, bool /*fs*/) const
+{
+ return 0;
+}
+
+
+int InsetError::Ascii(ostream &) const
{
return 0;
}
}
+char const * InsetError::EditMessage() const
+{
+ return _("Opened error");
+}
+
+
void InsetError::Edit(BufferView *, int, int, unsigned int)
{
static int ow = 400, oh = 240;