]> git.lyx.org Git - lyx.git/blob - src/insets/insetenv.h
Whitespace cleanup.
[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         void write(Buffer const & buf, std::ostream & os) const;
25         ///
26         void read(Buffer const & buf, LyXLex & lex);
27         ///
28         InsetBase::Code lyxCode() const { return InsetBase::ENVIRONMENT_CODE; }
29         ///
30         int latex(Buffer const &, std::ostream &,
31                   OutputParams const &) const;
32         ///
33         std::string const editMessage() const;
34         ///
35         InsetBase::EDITABLE editable() const { return HIGHLY_EDITABLE; }
36         ///
37         LyXLayout_ptr const & layout() const;
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 protected:
43         InsetEnvironment(InsetEnvironment const &);
44 private:
45         virtual std::auto_ptr<InsetBase> doClone() const;
46         /// the layout
47         LyXLayout_ptr layout_;
48 };
49
50 #endif