#include <config.h>
#include "insetenv.h"
+
+#include "bufferparams.h"
#include "gettext.h"
-#include "lyxtextclass.h"
+#include "paragraph.h"
#include "paragraph_funcs.h"
-#include "lyxlayout.h"
-#include "bufferparams.h"
-#include "support/LOstream.h"
-#include "debug.h"
+#include "texrow.h"
+#include "support/std_ostream.h"
-using std::ostream;
-using std::endl;
+
+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(ALWAYS);
}