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