#include "InsetEnvironment.h"
#include "BufferParams.h"
-#include "gettext.h"
+#include "support/gettext.h"
+#include "Layout.h"
#include "OutputParams.h"
#include "output_latex.h"
#include "TexRow.h"
+#include "TextClass.h"
+using namespace std;
namespace lyx {
-using std::string;
-using std::auto_ptr;
-using std::ostream;
-
InsetEnvironment::InsetEnvironment
(BufferParams const & bp, docstring const & name)
{}
-auto_ptr<Inset> InsetEnvironment::doClone() const
+Inset * InsetEnvironment::clone() const
{
- return auto_ptr<Inset>(new InsetEnvironment(*this));
+ return new InsetEnvironment(*this);
}
// FIXME UNICODE
os << from_utf8(layout_->latexheader);
TexRow texrow;
- latexParagraphs(buf, paragraphs(), os, texrow, runparams,
+ latexParagraphs(buf, text_, os, texrow, runparams,
layout_->latexparagraph);
// FIXME UNICODE
os << from_utf8(layout_->latexfooter);