]> git.lyx.org Git - lyx.git/blob - src/insets/insetenv.h
The markDirty() and fitCursor() changes
[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 "insetcollapsable.h"
16
17
18 class InsetEnvironment : public InsetCollapsable {
19 public:
20         ///
21         InsetEnvironment(BufferParams const &, string const & name);
22         ///
23         InsetEnvironment(InsetEnvironment const &, bool same_id = false);
24         ///
25         void write(Buffer const * buf, std::ostream & os) const;
26         ///
27         void read(Buffer const * buf, LyXLex & lex);
28         ///
29         Inset * clone(Buffer const &, bool same_id = false) const;
30         ///
31         Inset::Code lyxCode() const { return Inset::ENVIRONMENT_CODE; }
32         ///
33         int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
34         ///
35         string const editMessage() const;
36         ///
37         bool needFullRow() const { return true; }
38         /** returns true if, when outputing LaTeX, font changes should
39             be closed before generating this inset. This is needed for
40             insets that may contain several paragraphs */
41         bool noFontChange() const { return true; }
42
43 private:
44         /// LaTeX footer
45         string header_;
46         /// LaTeX footer
47         string footer_;
48 };
49
50 #endif