]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseterror.h
quick fix for commented out figures
[lyx.git] / src / insets / inseterror.h
index 95cd3ee1cb74f7369c3306e3392474625cbf9425..fb9d00459ea672aa958bdc4dbb22cd3a18253e7a 100644 (file)
@@ -1,11 +1,11 @@
 // -*- C++ -*-
 /* This file is part of*
- * ====================================================== 
+ * ======================================================
  *
  *           LyX, The Document Processor
- *      
+ *
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team. 
+ *           Copyright 1995-2001 The LyX Team.
  *
  * ====================================================== */
 
 #include <sigc++/signal_system.h>
 
 /** Used for error messages from LaTeX runs.
-  
-  The edit-operation opens a 
-  dialog with the text of the error-message. The inset is displayed as 
+
+  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 {
 public:
        ///
        explicit
-       InsetError(string const &);
+       InsetError(string const &, bool same_id = false);
        ///
        ~InsetError() { hideDialog(); }
        ///
@@ -51,7 +51,7 @@ public:
        ///
        int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
        ///
-       int docBook(Buffer const *, std::ostream &) const { return 0; }
+       int docbook(Buffer const *, std::ostream &) const { return 0; }
        ///
        bool autoDelete() const { return true; }
        /// what appears in the minibuffer when opening
@@ -59,9 +59,13 @@ public:
        ///
        void edit(BufferView *, int, int, unsigned int);
        ///
+       void edit(BufferView * bv, bool front = true);
+       ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset * clone(Buffer const &) const { return new InsetError(contents); }
+       Inset * clone(Buffer const &, bool same_id = false) const {
+               return new InsetError(contents, same_id);
+       }
        ///
        Inset::Code lyxCode() const { return Inset::ERROR_CODE; }
        /// We don't want "begin" and "end inset" in lyx-file