]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetinfo.h
pos=string::npos for regex not found, use handcoded transform in lstring.C, fix the...
[lyx.git] / src / insets / insetinfo.h
index 5023a069fdc93e611f395663bcf60764544e6fac..b4f9fe9dbb5a1ff893d695577ff2d9654508f9b9 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.
  *
- * ======================================================*/
+ * ====================================================== */
 
 #ifndef INSET_INFO_H
 #define INSET_INFO_H
@@ -28,7 +28,7 @@
   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();
@@ -45,11 +45,11 @@ public:
        ///
        void Draw(LyXFont font, LyXScreen & scr, int baseline, float & x);
        ///
-       void Write(FILE * file);
+       void Write(ostream &);
        ///
        void Read(LyXLex & lex);
        ///
-       int Latex(FILE * file, signed char fragile);
+       int Latex(ostream &, signed char fragile);
        ///
        int Latex(string & file, signed char fragile);
        ///
@@ -57,7 +57,7 @@ public:
        ///
        int DocBook(string & file);
        /// what appears in the minibuffer when opening
-       char const * EditMessage() {return "Opened note";}
+       char const * EditMessage() const {return _("Opened note");}
        ///
        void Edit(int, int);
        ///
@@ -65,7 +65,7 @@ public:
        ///
        Inset::Code LyxCode() const;
        ///
-       Inset * Clone();
+       Inset * Clone() const;
        ///
        static void CloseInfoCB(FL_OBJECT *, long data);
 private: