#include "InsetEnvironment.h"
#include "BufferParams.h"
-#include "gettext.h"
-#include "Paragraph.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, string const & name)
- : InsetText(bp), layout_(bp.getTextClass()[name]), name_(from_utf8(name))
+ (BufferParams const & bp, docstring const & name)
+ : InsetText(bp), layout_(bp.getTextClass()[name]), name_(name)
{
setAutoBreakRows(true);
setDrawFrame(true);
{}
-auto_ptr<Inset> InsetEnvironment::doClone() const
+Inset * InsetEnvironment::clone() const
{
- return auto_ptr<Inset>(new InsetEnvironment(*this));
+ return new InsetEnvironment(*this);
}
}
-Layout_ptr const & InsetEnvironment::layout() const
+LayoutPtr const & InsetEnvironment::layout() const
{
return layout_;
}