]> git.lyx.org Git - lyx.git/blob - src/insets/insettheorem.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insettheorem.h
1 // -*- C++ -*-
2 /**
3  * \file insettheorem.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef InsetTheorem_H
13 #define InsetTheorem_H
14
15
16 #include "insetcollapsable.h"
17
18
19 namespace lyx {
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         Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
32         ///
33         bool metrics(MetricsInfo &, Dimension &) const;
34         ///
35         void draw(PainterInfo & pi, int x, int y) const;
36         ///
37         int latex(Buffer const &, odocstream &,
38                   OutputParams const &) const;
39         ///
40         virtual docstring const editMessage() const;
41 private:
42         virtual std::auto_ptr<InsetBase> doClone() const;
43
44         ///
45         mutable unsigned int center_indent_;
46 };
47
48
49 } // namespace lyx
50
51 #endif