X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finseterror.h;h=8619f644a17cd9f3767c7772e259fa6c7c19183f;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=d2b79d33cb84195919231a91d47dcfa5a152968a;hpb=99d6f056e4e1c7514696ca29cf567d6cbb300aee;p=lyx.git diff --git a/src/insets/inseterror.h b/src/insets/inseterror.h index d2b79d33cb..8619f644a1 100644 --- a/src/insets/inseterror.h +++ b/src/insets/inseterror.h @@ -5,7 +5,7 @@ * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. + * Copyright 1995-2001 The LyX Team. * * ====================================================== */ @@ -16,14 +16,10 @@ #pragma interface #endif -#include "lyxinset.h" +#include "inset.h" #include "LString.h" #include -#ifdef SIGC_CXX_NAMESPACES -using SigC::Signal0; -#endif - /** Used for error messages from LaTeX runs. The edit-operation opens a @@ -33,9 +29,9 @@ class InsetError : public Inset { public: /// explicit - InsetError(string const &); + InsetError(string const &, bool same_id = false); /// - ~InsetError() { hide(); } + ~InsetError() { hideDialog(); } /// int ascent(BufferView *, LyXFont const &) const; /// @@ -45,35 +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); + void edit(BufferView * bv, bool front = true); /// - EDITABLE Editable() const { return IS_EDITABLE; } + EDITABLE editable() const { return IS_EDITABLE; } /// - Inset * Clone() 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::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; }; + bool directWrite() const { return true; }; /// string const & getContents() const { return contents; } /// - Signal0 hide; + SigC::Signal0 hideDialog; private: /// string contents;