#include <config.h>
#include "insetenv.h"
+
#include "bufferparams.h"
-#include "debug.h"
#include "gettext.h"
-#include "lyxlayout.h"
-#include "lyxtextclass.h"
-#include "paragraph_funcs.h"
+#include "paragraph.h"
+#include "output_latex.h"
#include "texrow.h"
-#include "support/LOstream.h"
-using std::ostream;
-using std::endl;
+#include "support/std_ostream.h"
+
+
+using std::string;
using std::auto_ptr;
+using std::ostream;
InsetEnvironment::InsetEnvironment
: InsetText(bp), layout_(bp.getLyXTextClass()[name])
{
setInsetName(name);
- autoBreakRows = true;
- drawFrame_ = ALWAYS;
+ setAutoBreakRows(true);
+ setDrawFrame(true);
}
{}
-auto_ptr<InsetBase> InsetEnvironment::clone() const
+auto_ptr<InsetBase> InsetEnvironment::doClone() const
{
return auto_ptr<InsetBase>(new InsetEnvironment(*this));
}
int InsetEnvironment::latex(Buffer const & buf, ostream & os,
- LatexRunParams const & runparams) const
+ OutputParams const & runparams) const
{
os << layout_->latexheader;
TexRow texrow;
- latexParagraphs(buf, paragraphs, os, texrow, runparams,
+ latexParagraphs(buf, paragraphs(), os, texrow, runparams,
layout_->latexparagraph);
os << layout_->latexfooter;
return texrow.rows();