]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseterror.C
add parOwner to Inset, optimize LyXText::workWidth, fix memory corruption with lots...
[lyx.git] / src / insets / inseterror.C
index 767548ffc40c8d23e44e91cd027a9d5dc2fc9c5d..611558bcb4642928da13c1090e36908b2b7ebe68 100644 (file)
@@ -4,7 +4,7 @@
  *           LyX, The Document Processor
  *      
  *         Copyright 1995 Matthias Ettrich
- *          Copyright 1995-2000 The LyX Team.
+ *          Copyright 1995-2001 The LyX Team.
  *
  * ====================================================== */
 
@@ -16,6 +16,7 @@
 
 #include "BufferView.h"
 #include "font.h"
+#include "lyxfont.h"
 #include "gettext.h"
 #include "inseterror.h"
 #include "LyXView.h"
@@ -26,7 +27,7 @@ using std::ostream;
 
 /* Error, used for the LaTeX-Error Messages */
 
-InsetError::InsetError(string const & str)
+InsetError::InsetError(string const & str, bool)
        : contents(str)
 {}
 
@@ -79,13 +80,19 @@ void InsetError::draw(BufferView * bv, LyXFont const & font,
 }
 
 
-string const InsetError::EditMessage() const 
+string const InsetError::editMessage() const 
 {
        return _("Opened error");
 }
 
 
-void InsetError::Edit(BufferView * bv, int, int, unsigned int)
+void InsetError::edit(BufferView * bv, int, int, unsigned int)
 {
        bv->owner()->getDialogs()->showError( this );
 }
+
+
+void InsetError::edit(BufferView * bv, bool)
+{
+       edit(bv, 0, 0, 0);
+}