]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetinfo.h
updates to minipage inset
[lyx.git] / src / insets / insetinfo.h
index 2ff60dde43e65732b7294ce579ec953c0f95e3c1..6312551c7c62595197b36567a3a88fd978a73065 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Processor
  *      
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-1999 the LyX Team.
+ *           Copyright 1995-2000 the LyX Team.
  *
  * ====================================================== */
 
@@ -33,38 +33,33 @@ public:
        ///
        InsetInfo();
        ///
+       explicit
        InsetInfo(string const & string);
        ///
        ~InsetInfo();
        ///
-       int ascent(Painter &, LyXFont const &) const;
+       int ascent(BufferView *, LyXFont const &) const;
        ///
-       int descent(Painter &, LyXFont const &) const;
+       int descent(BufferView *, LyXFont const &) const;
        ///
-       int width(Painter &, LyXFont const &) const;
+       int width(BufferView *, LyXFont const &) const;
        ///
-       void draw(Painter &, LyXFont const &, int baseline, float & x) const;
+       void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       void Write(ostream &) const;
+       void Write(Buffer const *, std::ostream &) const;
        ///
-       void Read(LyXLex & lex);
+       void Read(Buffer const *, LyXLex & lex);
        ///
-       int Latex(ostream &, signed char fragile) const;
-#ifndef USE_OSTREAM_ONLY
+       int Latex(Buffer const *, std::ostream &,
+                 bool fragile, bool free_spc) const;
        ///
-       int Latex(string & file, signed char fragile) const;
+       int Ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(string & file) const;
+       int Linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(string & file) const;
-#else
-       ///
-       int Linuxdoc(ostream &) const;
-       ///
-       int DocBook(ostream &) const;
-#endif
+       int DocBook(Buffer const *, std::ostream &) const;
        /// what appears in the minibuffer when opening
-       const char * EditMessage() const {return _("Opened note");}
+       string const EditMessage() const;
        ///
        void Edit(BufferView *, int, int, unsigned int);
        ///
@@ -72,7 +67,7 @@ public:
        ///
        Inset::Code LyxCode() const;
        ///
-       Inset * Clone() const;
+       Inset * Clone(Buffer const &) const;
        ///
        static void CloseInfoCB(FL_OBJECT *, long data);
 private:
@@ -82,5 +77,7 @@ private:
        FL_FORM * form;
        ///
        FL_OBJECT * strobj;
+       ///
+       LyXFont labelfont;
 };
 #endif