]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetinfo.h
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / insetinfo.h
index 5023a069fdc93e611f395663bcf60764544e6fac..2e4267a8880f91efc0c68dad0fe99b895c44ab25 100644 (file)
@@ -1,13 +1,13 @@
 // -*- C++ -*-
 /* This file is part of*
- * ======================================================
+ * ====================================================== 
  *
  *           LyX, The Document Processor
  *      
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-1999 the LyX Team.
+ *           Copyright 1995-2000 the LyX Team.
  *
- * ======================================================*/
+ * ====================================================== */
 
 #ifndef INSET_INFO_H
 #define INSET_INFO_H
   in a yellow box. Currently, the Read-function is a terrible hack. 
   Some day in the distant future, this will hopefully be obsoleted by 
   a true comment-environment. */
-class InsetInfo: public Inset {
+class InsetInfo : public Inset {
 public:
        ///
        InsetInfo();
        ///
+       explicit
        InsetInfo(string const & string);
        ///
        ~InsetInfo();
        ///
-       int Ascent(LyXFont const & font) const;
+       int ascent(Painter &, LyXFont const &) const;
        ///
-       int Descent(LyXFont const & font) const;
+       int descent(Painter &, LyXFont const &) const;
        ///
-       int Width(LyXFont const & font) const;
+       int width(Painter &, LyXFont const &) const;
        ///
-       void Draw(LyXFont font, LyXScreen & scr, int baseline, float & x);
+       void draw(Painter &, LyXFont const &, int baseline, float & x) const;
        ///
-       void Write(FILE * file);
+       void Write(std::ostream &) const;
        ///
        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;
        /// what appears in the minibuffer when opening
-       char const * EditMessage() {return "Opened note";}
+       char const * EditMessage() const;
        ///
-       void Edit(int, int);
+       void Edit(BufferView *, int, int, unsigned int);
        ///
-       unsigned char Editable() const;
+       EDITABLE Editable() const;
        ///
        Inset::Code LyxCode() const;
        ///
-       Inset * Clone();
+       Inset * Clone() const;
        ///
        static void CloseInfoCB(FL_OBJECT *, long data);
 private: