]> git.lyx.org Git - lyx.git/blob - src/insets/insetnote.h
Finally get round to replacing InsetInfo with the new collabsable InsetNote.
[lyx.git] / src / insets / insetnote.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2001 The LyX Team.
8  *
9  *======================================================
10  */
11
12 #ifndef INSETNOTE_H
13 #define INSETNOTE_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "insetcollapsable.h"
20
21 /** The PostIt note inset
22   
23 */
24 class InsetNote : public InsetCollapsable {
25 public:
26         ///
27         InsetNote();
28         ///
29         virtual Inset * clone(Buffer const &, bool) const;
30         ///
31         virtual string const editMessage() const;
32         ///
33         virtual Inset::Code lyxCode() const { return Inset::IGNORE_CODE; }
34         ///
35         virtual bool insertInset(BufferView *, Inset *) { return false; }
36         ///
37         virtual bool insetAllowed(Inset::Code) const { return false; }
38         ///
39         virtual void write(Buffer const *, std::ostream &) const;
40         ///
41         virtual int latex(Buffer const *, std::ostream &, bool, bool) const
42                 { return 0; }
43 };
44
45 #endif