#define INSETENVIRONMENT_H
#include "InsetText.h"
-#include "LayoutPtr.h"
-
namespace lyx {
+class Layout;
+
class InsetEnvironment : public InsetText {
public:
///
- InsetEnvironment(BufferParams const &, docstring const & name);
+ InsetEnvironment(Buffer const &, docstring const & name);
///
docstring name() const { return name_; }
///
///
Inset::EDITABLE editable() const { return HIGHLY_EDITABLE; }
///
- LayoutPtr const & layout() const;
+ Layout const & layout() const;
/** returns true if, when outputing LaTeX, font changes should
be closed before generating this inset. This is needed for
insets that may contain several paragraphs */
bool noFontChange() const { return true; }
-protected:
- InsetEnvironment(InsetEnvironment const &);
private:
///
- Inset * clone() const;
+ Inset * clone() const { return new InsetEnvironment(*this); }
/// the layout
- LayoutPtr layout_;
+ Layout const & layout_;
///
docstring name_;
};