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"
16 #include "lyxlayout_ptr_fwd.h"
18 class InsetEnvironment : public InsetText {
21 InsetEnvironment(BufferParams const &, string const & name);
23 InsetEnvironment(InsetEnvironment const &);
25 void write(Buffer const * buf, std::ostream & os) const;
27 void read(Buffer const * buf, LyXLex & lex);
29 Inset * clone() const;
31 Inset::Code lyxCode() const { return Inset::ENVIRONMENT_CODE; }
33 int latex(Buffer const *, std::ostream &,
34 LatexRunParams const &) const;
36 string const editMessage() const;
38 Inset::EDITABLE editable() const { return HIGHLY_EDITABLE; }
40 bool isTextInset() const { return true; }
42 LyXLayout_ptr const & layout() const;
44 bool needFullRow() const { return true; }
45 /** returns true if, when outputing LaTeX, font changes should
46 be closed before generating this inset. This is needed for
47 insets that may contain several paragraphs */
48 bool noFontChange() const { return true; }
52 LyXLayout_ptr layout_;