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 "insettext.h"
17 class InsetEnvironment : public InsetText {
20 InsetEnvironment(BufferParams const &, string const & name);
22 InsetEnvironment(InsetEnvironment const &, bool same_id = false);
24 void write(Buffer const * buf, std::ostream & os) const;
26 void read(Buffer const * buf, LyXLex & lex);
28 Inset * clone(Buffer const &, bool same_id = false) const;
30 Inset::Code lyxCode() const { return Inset::ENVIRONMENT_CODE; }
32 int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
34 string const editMessage() const;
36 Inset::EDITABLE editable() const { return HIGHLY_EDITABLE; }
38 bool isTextInset() const { return true; }
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; }