]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetnote.h
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetnote.h
index c531a6a5d481ebab5aa01bdfae4acafbdcbd46b3..f33f82b22500b4d78189b6adbf66d3f788490998 100644 (file)
 
 #include "insetcollapsable.h"
 
-  
+
  struct InsetNoteParams {
-       ///
-       void write(std::ostream & os) const;
-       ///
-       void read(LyXLex & lex);
-       ///
-       string type;
+       ///
+       void write(std::ostream & os) const;
+       ///
+       void read(LyXLex & lex);
+       ///
+       string type;
 };
+
+
 /** The PostIt note inset, and other annotations
 
 */
@@ -33,18 +33,18 @@ class InsetNote : public InsetCollapsable {
 public:
        ///
 
-       
+
        InsetNote(BufferParams const &, string const &);
        /// Copy constructor
        InsetNote(InsetNote const &);
        ///
        ~InsetNote();
        ///
-       InsetBase * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
        string const editMessage() const;
        ///
-       Inset::Code lyxCode() const { return Inset::NOTE_CODE; }
+       InsetOld::Code lyxCode() const { return InsetOld::NOTE_CODE; }
        ///
        void write(Buffer const *, std::ostream &) const;
        ///
@@ -89,7 +89,7 @@ public:
        ///
        virtual string const & name() const { return name_; }
        ///
-       virtual string const inset2string() const;
+       virtual string const inset2string(Buffer const &) const;
        ///
        static string const params2string(string const &, InsetNoteParams const &);
        ///