]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetenv.C
ws changes only
[lyx.git] / src / insets / insetenv.C
index 7e6c7ad70f05eac072ba36ee8dba313bc5b6c804..88f414efe8c19febcbc448d6a029ca31bae927ec 100644 (file)
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /**
  * \file insetenv.C
  * This file is part of LyX, the document processor.
@@ -6,24 +5,25 @@
  *
  * \author André Pönitz
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #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
@@ -31,8 +31,8 @@ InsetEnvironment::InsetEnvironment
        : InsetText(bp), layout_(bp.getLyXTextClass()[name])
 {
        setInsetName(name);
-       autoBreakRows = true;
-       drawFrame_ = ALWAYS;
+       setAutoBreakRows(true);
+       setDrawFrame(ALWAYS);
 }
 
 
@@ -47,14 +47,14 @@ auto_ptr<InsetBase> InsetEnvironment::clone() const
 }
 
 
-void InsetEnvironment::write(Buffer const * buf, ostream & os) const
+void InsetEnvironment::write(Buffer const & buf, ostream & os) const
 {
        os << "Environment " << getInsetName() << "\n";
        InsetText::write(buf, os);
 }
 
 
-void InsetEnvironment::read(Buffer const * buf, LyXLex & lex)
+void InsetEnvironment::read(Buffer const & buf, LyXLex & lex)
 {
        InsetText::read(buf, lex);
 }
@@ -66,7 +66,7 @@ string const InsetEnvironment::editMessage() const
 }
 
 
-int InsetEnvironment::latex(Buffer const * buf, ostream & os,
+int InsetEnvironment::latex(Buffer const & buf, ostream & os,
                            LatexRunParams const & runparams) const
 {
        os << layout_->latexheader;