]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetenv.C
changelogs
[lyx.git] / src / insets / insetenv.C
index 86bfc50a773cb35d73e83199c4992a0ec7d61615..478d2a9f359ba1940387330a5e2638404f7342f0 100644 (file)
 #include <config.h>
 
 #include "insetenv.h"
-#include "gettext.h"
-#include "lyxtextclass.h"
-#include "paragraph_funcs.h"
-#include "lyxlayout.h"
+
 #include "bufferparams.h"
-#include "support/LOstream.h"
-#include "debug.h"
+#include "gettext.h"
+#include "paragraph.h"
+#include "output_latex.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
@@ -30,8 +31,8 @@ InsetEnvironment::InsetEnvironment
        : InsetText(bp), layout_(bp.getLyXTextClass()[name])
 {
        setInsetName(name);
-       autoBreakRows = true;
-       drawFrame_ = ALWAYS;
+       setAutoBreakRows(true);
+       setDrawFrame(true);
 }
 
 
@@ -40,7 +41,7 @@ InsetEnvironment::InsetEnvironment(InsetEnvironment const & in)
 {}
 
 
-auto_ptr<InsetBase> InsetEnvironment::clone() const
+auto_ptr<InsetBase> InsetEnvironment::doClone() const
 {
        return auto_ptr<InsetBase>(new InsetEnvironment(*this));
 }
@@ -66,11 +67,11 @@ string const InsetEnvironment::editMessage() const
 
 
 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();