]> git.lyx.org Git - lyx.git/blob - src/insets/insetnote.h
*** empty log message ***
[lyx.git] / src / insets / insetnote.h
1 // -*- C++ -*-
2 /**
3  * \file insetnote.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef INSETNOTE_H
13 #define INSETNOTE_H
14
15
16 #include "insetcollapsable.h"
17
18 /** The PostIt note inset
19
20 */
21 class InsetNote : public InsetCollapsable {
22 public:
23         ///
24         InsetNote(BufferParams const &);
25         ///
26         InsetNote(InsetNote const &, bool same_id = false);
27         ///
28         Inset * clone(Buffer const &, bool same_id = false) const;
29         /// constructor with initial contents
30         InsetNote(Buffer const *, string const & contents, bool collapsed);
31         ///
32         string const editMessage() const;
33         ///
34         Inset::Code lyxCode() const { return Inset::NOTE_CODE; }
35         ///
36         void write(Buffer const *, std::ostream &) const;
37         ///
38         int latex(Buffer const *, std::ostream &, bool, bool) const
39                 { return 0; }
40         ///
41         int linuxdoc(Buffer const *, std::ostream &) const
42                 { return 0; }
43         ///
44         int docbook(Buffer const *, std::ostream &, bool) const
45                 { return 0; }
46         ///
47         int ascii(Buffer const *, std::ostream &, int) 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