]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseterror.h
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / inseterror.h
index 8233d2dbe61d132f8f47adf3adae0f982fca378d..8619f644a17cd9f3767c7772e259fa6c7c19183f 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Processor
  *      
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team. 
+ *           Copyright 1995-2001 The LyX Team. 
  *
  * ====================================================== */
 
 #pragma interface
 #endif
 
-#include "lyxinset.h"
+#include "inset.h"
 #include "LString.h"
 #include <sigc++/signal_system.h>
 
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-#endif
-
 /** Used for error messages from LaTeX runs.
   
   The edit-operation opens a 
@@ -33,7 +29,7 @@ class InsetError : public Inset {
 public:
        ///
        explicit
-       InsetError(string const &);
+       InsetError(string const &, bool same_id = false);
        ///
        ~InsetError() { hideDialog(); }
        ///
@@ -45,36 +41,39 @@ public:
        ///
        void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       void Write(Buffer const *, std::ostream &) const {}
+       void write(Buffer const *, std::ostream &) const {}
        ///
-       void Read(Buffer const *, LyXLex &) {}
+       void read(Buffer const *, LyXLex &) {}
        ///
-       int Latex(Buffer const *, std::ostream &, bool, bool) const { return 0; }
+       int latex(Buffer const *, std::ostream &, bool, bool) const { return 0; }
        ///
-       int Ascii(Buffer const *, std::ostream &, int) const { return 0; }
+       int ascii(Buffer const *, std::ostream &, int) const { return 0; }
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const { return 0; }
+       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; }
+       bool autoDelete() const { return true; }
        /// what appears in the minibuffer when opening
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView *, int, int, unsigned int);
        ///
-       EDITABLE Editable() const { return IS_EDITABLE; }
+       void edit(BufferView * bv, bool front = true);
        ///
-       Inset * Clone(Buffer const &) const { return new InsetError(contents); }
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code LyxCode() const { return Inset::ERROR_CODE; }
+       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
-       bool DirectWrite() const { return true; };
+       bool directWrite() const { return true; };
        ///
        string const & getContents() const { return contents; }
        ///
-       Signal0<void> hideDialog;
-
+       SigC::Signal0<void> hideDialog;
 private:
        ///
        string contents;