]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetnote.h
Revert this change as it sneaked in and wasn't discussed yet.
[lyx.git] / src / insets / insetnote.h
index 7bf3954c8ef98d60e59cb66c30679690b9592d03..2c20a8e8996623a45000348f011b7e48a7ea7459 100644 (file)
@@ -1,7 +1,7 @@
 // -*- C++ -*-
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
  *
  *           Copyright 2001 The LyX Team.
 #include "insetcollapsable.h"
 
 /** The PostIt note inset
-  
+
 */
 class InsetNote : public InsetCollapsable {
 public:
        ///
-       InsetNote();
+       InsetNote(BufferParams const &);
        ///
-       virtual Inset * clone(Buffer const &, bool) const;
+       InsetNote(InsetNote const &, bool same_id = false);
        ///
-       virtual string const editMessage() const;
+       Inset * clone(Buffer const &, bool same_id = false) const;
+       /// constructor with initial contents
+       InsetNote(Buffer const *, string const & contents, bool collapsed);
        ///
-       virtual Inset::Code lyxCode() const { return Inset::IGNORE_CODE; }
+       string const editMessage() const;
        ///
-       virtual bool insertInset(BufferView *, Inset *) { return false; }
+       Inset::Code lyxCode() const { return Inset::IGNORE_CODE; }
        ///
-       virtual bool insetAllowed(Inset::Code) const { return false; }
+       void write(Buffer const *, std::ostream &) const;
        ///
-       virtual void write(Buffer const *, std::ostream &) const;
+       int latex(Buffer const *, std::ostream &, bool, bool) const
+               { return 0; }
+       ///
+       int linuxdoc(Buffer const *, std::ostream &) const
+               { return 0; }
        ///
-       virtual int latex(Buffer const *, std::ostream &, bool, bool) const
+       int docbook(Buffer const *, std::ostream &) const
                { return 0; }
+       ///
+       int ascii(Buffer const *, std::ostream &, int) const
+               { return 0; }
+       ///
+       void validate(LaTeXFeatures &) const {}
+private:
+       /// used by the constructors
+       void init();
+
 };
 
 #endif