]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseterror.h
fix compilation pb ; update eu.po
[lyx.git] / src / insets / inseterror.h
index d2b79d33cb84195919231a91d47dcfa5a152968a..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;
        ///
@@ -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;