]> git.lyx.org Git - lyx.git/blob - src/insets/insetnote.h
3725b5333892ee935539ef7ea419cd563293e487
[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(BufferParams const &);
28         ///
29         InsetNote(InsetNote const &, bool same_id = false);
30         ///
31         Inset * clone(Buffer const &, bool same_id = false) const;
32         /// constructor with initial contents
33         InsetNote(Buffer const *, string const & contents, bool collapsed);
34         ///
35         string const editMessage() const;
36         ///
37         Inset::Code lyxCode() const { return Inset::IGNORE_CODE; }
38         ///
39         void write(Buffer const *, std::ostream &) const;
40         ///
41         int latex(Buffer const *, std::ostream &, bool, bool) const
42                 { return 0; }
43         ///
44         int linuxdoc(Buffer const *, std::ostream &) const
45                 { return 0; }
46         ///
47         int docbook(Buffer const *, std::ostream &) const
48                 { return 0; }
49         ///
50         void validate(LaTeXFeatures &) const {}
51 private:
52         /// used by the constructors
53         void init();
54
55 };
56
57 #endif