]> git.lyx.org Git - lyx.git/blob - src/insets/insettheorem.h
The BIG UNDO patch. Recodes undo handling for better use inside InsetText.
[lyx.git] / src / insets / insettheorem.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1998 The LyX Team.
8  *
9  * ======================================================
10  */
11
12 #ifndef InsetTheorem_H
13 #define InsetTheorem_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "insetcollapsable.h"
20
21 /** The theorem inset
22   
23 */
24 class InsetTheorem : public InsetCollapsable {
25 public:
26         ///
27         InsetTheorem();
28         ///
29         void write(Buffer const * buf, std::ostream & os) const;
30         ///
31         virtual Inset * clone(Buffer const &, bool same_id = false) const;
32         ///
33         Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
34         ///
35         bool display() const { return true; }
36         ///
37         int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
38         ///
39         string const editMessage() const;
40         ///
41         bool insertInsetAllowed(Inset * inset) const;
42 };
43
44 #endif