]> git.lyx.org Git - lyx.git/blob - src/insets/insetenv.h
bug + spped fixes + small stuff
[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 #include "lyxlayout_ptr_fwd.h"
17
18
19 class InsetEnvironment : public InsetText {
20 public:
21         ///
22         InsetEnvironment(BufferParams const &, std::string const & name);
23         ///
24         InsetEnvironment(InsetEnvironment const &);
25         ///
26         void write(Buffer const & buf, std::ostream & os) const;
27         ///
28         void read(Buffer const & buf, LyXLex & lex);
29         ///
30         virtual std::auto_ptr<InsetBase> clone() const;
31         ///
32         InsetOld::Code lyxCode() const { return InsetOld::ENVIRONMENT_CODE; }
33         ///
34         int latex(Buffer const &, std::ostream &,
35                   OutputParams const &) const;
36         ///
37         std::string const editMessage() const;
38         ///
39         InsetOld::EDITABLE editable() const { return HIGHLY_EDITABLE; }
40         ///
41         bool isTextInset() const { return true; }
42         ///
43         LyXLayout_ptr const & layout() const;
44         /** returns true if, when outputing LaTeX, font changes should
45             be closed before generating this inset. This is needed for
46             insets that may contain several paragraphs */
47         bool noFontChange() const { return true; }
48
49 private:
50         /// the layout
51         LyXLayout_ptr layout_;
52 };
53
54 #endif