]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetinfo.h
reformatting and remove using delc
[lyx.git] / src / insets / insetinfo.h
index edd3e9fa1e33d76713bd6e7aea6d5ca566c6e6ca..6312551c7c62595197b36567a3a88fd978a73065 100644 (file)
@@ -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_INFO_H
-#define _INSET_INFO_H
+#ifndef INSET_INFO_H
+#define INSET_INFO_H
 
 #ifdef __GNUG__
 #pragma interface
   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(BufferView *, LyXFont const &) const;
        ///
-       int Descent(LyXFont const &font) const;
+       int descent(BufferView *, LyXFont const &) const;
        ///
-       int Width(LyXFont const &font) const;
+       int width(BufferView *, LyXFont const &) const;
        ///
-       void Draw(LyXFont font, LyXScreen &scr, int baseline, float &x);
+       void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       void Write(FILE *file);
+       void Write(Buffer const *, std::ostream &) const;
        ///
-       void Read(LyXLex &lex);
+       void Read(Buffer const *, LyXLex & lex);
        ///
-       int Latex(FILE *file, signed char fragile);
+       int Latex(Buffer const *, std::ostream &,
+                 bool fragile, bool free_spc) const;
        ///
-       int Latex(string &file, signed char fragile);
+       int Ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(string &file);
+       int Linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(string &file);
+       int DocBook(Buffer const *, std::ostream &) const;
        /// what appears in the minibuffer when opening
-       char const* EditMessage() {return "Opened note";}
+       string 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(Buffer const &) const;
        ///
        static void CloseInfoCB(FL_OBJECT *, long data);
 private:
        ///
        string contents;
        ///
-       FL_FORM *form;
+       FL_FORM * form;
        ///
-       FL_OBJECT *strobj;
+       FL_OBJECT * strobj;
+       ///
+       LyXFont labelfont;
 };
-
 #endif