]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseterror.h
some reindentation, revert workarea xpos++, constify, remove all traces of LyXParagra...
[lyx.git] / src / insets / inseterror.h
index 47a67a9bc250b2edb7755a6f911684b319dc3f7c..82779294dddd234a2a16e691943eccf0c7367ef5 100644 (file)
 #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 
@@ -35,7 +31,7 @@ public:
        explicit
        InsetError(string const &);
        ///
-       ~InsetError() { hide(); }
+       ~InsetError() { hideDialog(); }
        ///
        int ascent(BufferView *, LyXFont const &) const;
        ///
@@ -51,7 +47,7 @@ public:
        ///
        int Latex(Buffer const *, std::ostream &, bool, bool) const { return 0; }
        ///
-       int Ascii(Buffer const *, std::ostream &) const { return 0; }
+       int Ascii(Buffer const *, std::ostream &, int) const { return 0; }
        ///
        int Linuxdoc(Buffer const *, std::ostream &) const { return 0; }
        ///
@@ -65,15 +61,15 @@ public:
        ///
        EDITABLE Editable() const { return IS_EDITABLE; }
        ///
-       Inset * Clone() const { return new InsetError(contents); }
+       Inset * Clone(Buffer const &) const { return new InsetError(contents); }
        ///
-       Inset::Code LyxCode() const { return Inset::NO_CODE; }
+       Inset::Code LyxCode() const { return Inset::ERROR_CODE; }
        /// We don't want "begin" and "end inset" in lyx-file
        bool DirectWrite() const { return true; };
        ///
        string const & getContents() const { return contents; }
        ///
-       Signal0<void> hide;
+       SigC::Signal0<void> hideDialog;
 private:
        ///
        string contents;