4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
12 #ifndef INSETENVIRONMENT_H
13 #define INSETENVIRONMENT_H
15 #include "insetcollapsable.h"
18 class InsetEnvironment : public InsetCollapsable {
21 InsetEnvironment(BufferParams const &, string const & name);
23 InsetEnvironment(InsetEnvironment const &, bool same_id = false);
25 void write(Buffer const * buf, std::ostream & os) const;
27 void read(Buffer const * buf, LyXLex & lex);
29 Inset * clone(Buffer const &, bool same_id = false) const;
31 Inset::Code lyxCode() const { return Inset::ENVIRONMENT_CODE; }
33 int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
35 string const editMessage() const;
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; }