]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseterror.h
Rename LatexRunParams::fragile as moving_arg.
[lyx.git] / src / insets / inseterror.h
index 8619f644a17cd9f3767c7772e259fa6c7c19183f..b490f2dba06d206b09102e6d93f0d27e1678d12e 100644 (file)
@@ -1,29 +1,24 @@
 // -*- C++ -*-
-/* This file is part of*
- * ====================================================== 
+/**
+ * \file inseterror.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
- *      
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team. 
+ * \author Lars Gullik Bjønnes
  *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
 
 #ifndef INSET_ERROR_H
 #define INSET_ERROR_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "inset.h"
 #include "LString.h"
-#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:
@@ -31,36 +26,31 @@ public:
        explicit
        InsetError(string const &, bool same_id = false);
        ///
-       ~InsetError() { hideDialog(); }
-       ///
-       int ascent(BufferView *, LyXFont const &) const;
+       ~InsetError();
        ///
-       int descent(BufferView *, LyXFont const &) const;
+       virtual dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       int width(BufferView *, LyXFont const &) const;
+       void dimension(BufferView *, LyXFont const &, Dimension &) const;
        ///
-       void draw(BufferView *, LyXFont const &, int, float &, bool) const;
+       void draw(BufferView *, LyXFont const &, int, float &) const;
        ///
        void write(Buffer const *, std::ostream &) const {}
        ///
        void read(Buffer const *, LyXLex &) {}
        ///
-       int latex(Buffer const *, std::ostream &, bool, bool) const { return 0; }
+       int latex(Buffer const *, std::ostream &,
+                 LatexRunParams const &) const { return 0; }
        ///
        int ascii(Buffer const *, std::ostream &, int) 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 &, bool) const { return 0; }
        ///
        bool autoDelete() const { return true; }
        /// what appears in the minibuffer when opening
        string const editMessage() const;
        ///
-       void edit(BufferView *, int, int, unsigned int);
-       ///
-       void edit(BufferView * bv, bool front = true);
-       ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
        Inset * clone(Buffer const &, bool same_id = false) const {
@@ -72,8 +62,6 @@ public:
        bool directWrite() const { return true; };
        ///
        string const & getContents() const { return contents; }
-       ///
-       SigC::Signal0<void> hideDialog;
 private:
        ///
        string contents;