X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finseterror.h;h=06525a0356c996589b2ece020c9e10e1037f98de;hb=62be565337f08855dbbbeea9d90db2ce497d4c10;hp=95cd3ee1cb74f7369c3306e3392474625cbf9425;hpb=85a5ea7bfc80e179a61a99f2955455e84d3384cc;p=lyx.git diff --git a/src/insets/inseterror.h b/src/insets/inseterror.h index 95cd3ee1cb..06525a0356 100644 --- a/src/insets/inseterror.h +++ b/src/insets/inseterror.h @@ -1,45 +1,38 @@ // -*- 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 /** 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: /// explicit - InsetError(string const &); + InsetError(string const &, bool same_id = false); /// - ~InsetError() { hideDialog(); } + ~InsetError(); /// - int ascent(BufferView *, LyXFont const &) const; + virtual dispatch_result localDispatch(FuncRequest const & cmd); /// - int descent(BufferView *, LyXFont const &) const; + void dimension(BufferView *, LyXFont const &, Dimension &) const; /// - int width(BufferView *, LyXFont const &) 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 {} /// @@ -51,25 +44,23 @@ public: /// 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); - /// EDITABLE editable() const { return IS_EDITABLE; } /// - Inset * clone(Buffer const &) 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::ERROR_CODE; } /// We don't want "begin" and "end inset" in lyx-file bool directWrite() const { return true; }; /// string const & getContents() const { return contents; } - /// - SigC::Signal0 hideDialog; private: /// string contents;