#define INSETENVIRONMENT_H
#include "insettext.h"
+#include "lyxlayout_ptr_fwd.h"
class InsetEnvironment : public InsetText {
public:
///
InsetEnvironment(BufferParams const &, string const & name);
///
- InsetEnvironment(InsetEnvironment const &, bool same_id = false);
+ InsetEnvironment(InsetEnvironment const &);
///
void write(Buffer const * buf, std::ostream & os) const;
///
void read(Buffer const * buf, LyXLex & lex);
///
- Inset * clone(Buffer const &, bool same_id = false) const;
+ virtual std::auto_ptr<InsetBase> clone() const;
///
- Inset::Code lyxCode() const { return Inset::ENVIRONMENT_CODE; }
+ InsetOld::Code lyxCode() const { return InsetOld::ENVIRONMENT_CODE; }
///
- int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+ int latex(Buffer const *, std::ostream &,
+ LatexRunParams const &) const;
///
string const editMessage() const;
///
- Inset::EDITABLE editable() const { return HIGHLY_EDITABLE; }
+ InsetOld::EDITABLE editable() const { return HIGHLY_EDITABLE; }
///
bool isTextInset() const { return true; }
///
+ LyXLayout_ptr const & layout() const;
+ ///
bool needFullRow() const { return true; }
/** returns true if, when outputing LaTeX, font changes should
be closed before generating this inset. This is needed for
bool noFontChange() const { return true; }
private:
- /// LaTeX footer
- string header_;
- /// LaTeX footer
- string footer_;
+ /// the layout
+ LyXLayout_ptr layout_;
};
#endif