X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finseterror.h;h=519da5fe93dff0ddeeac40001ac9138aee86016f;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=cdc03f41dcae981bc9b287bbff68ce92587f80c2;hpb=c35b288b74ac9b1450a81c1520292ab95735bb0f;p=lyx.git diff --git a/src/insets/inseterror.h b/src/insets/inseterror.h index cdc03f41dc..519da5fe93 100644 --- a/src/insets/inseterror.h +++ b/src/insets/inseterror.h @@ -1,15 +1,16 @@ // -*- C++ -*- /* This file is part of* - * ====================================================== + * ====================================================== * * LyX, The Document Processor * - * Copyright (C) 1995 Matthias Ettrich + * Copyright 1995 Matthias Ettrich + * Copyright 1995-2000 The LyX Team. * - *======================================================*/ + * ====================================================== */ -#ifndef _INSET_ERROR_H -#define _INSET_ERROR_H +#ifndef INSET_ERROR_H +#define INSET_ERROR_H #ifdef __GNUG__ #pragma interface @@ -28,41 +29,42 @@ class InsetError: public Inset { public: /// + explicit InsetError(string const & string); /// InsetError(); /// ~InsetError(); /// - int Ascent(LyXFont const &font) const; + int ascent(Painter &, LyXFont const & font) const; /// - int Descent(LyXFont const &font) const; + int descent(Painter &, LyXFont const & font) const; /// - int Width(LyXFont const &font) const; + int width(Painter &, LyXFont const & font) const; /// - void Draw(LyXFont font, LyXScreen &scr, int baseline, float &x); + void draw(Painter &, LyXFont const & font, int baseline, float & x) const; /// - void Write(FILE *file); + void Write(std::ostream &) const; /// - void Read(LyXLex &lex); + void Read(LyXLex & lex); /// - int Latex(FILE *file, signed char fragile); + int Latex(std::ostream &, bool fragile, bool free_spc) const; /// - int Latex(string &file, signed char fragile); + int Ascii(std::ostream &) const; /// - int Linuxdoc(string &file); + int Linuxdoc(std::ostream &) const; /// - int DocBook(string &file); + int DocBook(std::ostream &) const; /// bool AutoDelete() const; /// what appears in the minibuffer when opening - char const* EditMessage() {return _("Opened error");} + char const * EditMessage() const; /// - void Edit(int, int); + void Edit(BufferView *, int x, int y, unsigned int button); /// - unsigned char Editable() const; + EDITABLE Editable() const; /// - Inset* Clone(); + Inset * Clone() const; /// Inset::Code LyxCode() const { return Inset::NO_CODE; } /// We don't want "begin" and "end inset" in lyx-file @@ -73,8 +75,8 @@ private: /// string contents; /// - FL_FORM *form; + FL_FORM * form; /// - FL_OBJECT *strobj; + FL_OBJECT * strobj; }; #endif