]> git.lyx.org Git - lyx.git/blob - src/insets/insetenv.h
fix #832
[lyx.git] / src / insets / insetenv.h
1 // -*- C++ -*-
2 /**
3  * \file insetenv.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef INSETENVIRONMENT_H
13 #define INSETENVIRONMENT_H
14
15 #include "insettext.h"
16
17 class InsetEnvironment : public InsetText {
18 public:
19         ///
20         InsetEnvironment(BufferParams const &, string const & name);
21         ///
22         InsetEnvironment(InsetEnvironment const &, bool same_id = false);
23         ///
24         void write(Buffer const * buf, std::ostream & os) const;
25         ///
26         void read(Buffer const * buf, LyXLex & lex);
27         ///
28         Inset * clone(Buffer const &, bool same_id = false) const;
29         ///
30         Inset::Code lyxCode() const { return Inset::ENVIRONMENT_CODE; }
31         ///
32         int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
33         ///
34         string const editMessage() const;
35         ///
36         Inset::EDITABLE editable() const { return HIGHLY_EDITABLE; }
37         ///
38         bool isTextInset() const { return true; }
39         ///
40         bool needFullRow() const { return true; }
41         /** returns true if, when outputing LaTeX, font changes should
42             be closed before generating this inset. This is needed for
43             insets that may contain several paragraphs */
44         bool noFontChange() const { return true; }
45
46 private:
47         /// LaTeX footer
48         string header_;
49         /// LaTeX footer
50         string footer_;
51 };
52
53 #endif