]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetnote.h
The markDirty() and fitCursor() changes
[lyx.git] / src / insets / insetnote.h
index 7bf3954c8ef98d60e59cb66c30679690b9592d03..1043300d92fd5cedc03d25d41a31fd55a7ee46be 100644 (file)
@@ -1,45 +1,55 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
- * 
- *           LyX, The Document Processor
+/**
+ * \file insetnote.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           Copyright 2001 The LyX Team.
+ * \author Angus Leeming
  *
- *======================================================
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef INSETNOTE_H
 #define INSETNOTE_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #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;
        ///
-       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::NOTE_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 &, bool) 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