]> git.lyx.org Git - lyx.git/blob - src/insets/insetnote.h
Added copy constructor to inset.h and used it in most insets which permit
[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         /// constructor with initial contents
29         InsetNote(Buffer const *, string const & contents, bool collapsed);
30         ///
31         virtual string const editMessage() const;
32         ///
33         virtual Inset::Code lyxCode() const { return Inset::IGNORE_CODE; }
34         ///
35         virtual void write(Buffer const *, std::ostream &) const;
36         ///
37         virtual int latex(Buffer const *, std::ostream &, bool, bool) const
38                 { return 0; }
39 private:
40         /// used by the constructors
41         void init();
42
43 };
44
45 #endif