]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetEnvironment.cpp
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetEnvironment.cpp
index f665e86b342a2676c35a3713724c000ddf60b1d3..0c444af84100b52902be5b40162ddef2609c9bb4 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "BufferParams.h"
 #include "gettext.h"
+#include "Layout.h"
 #include "OutputParams.h"
 #include "output_latex.h"
 #include "TexRow.h"
 
 namespace lyx {
 
-using std::string;
-using std::auto_ptr;
-using std::ostream;
-
 
 InsetEnvironment::InsetEnvironment
                (BufferParams const & bp, docstring const & name)
@@ -40,13 +37,13 @@ InsetEnvironment::InsetEnvironment(InsetEnvironment const & in)
 {}
 
 
-auto_ptr<Inset> InsetEnvironment::doClone() const
+Inset * InsetEnvironment::clone() const
 {
-       return auto_ptr<Inset>(new InsetEnvironment(*this));
+       return new InsetEnvironment(*this);
 }
 
 
-void InsetEnvironment::write(Buffer const & buf, ostream & os) const
+void InsetEnvironment::write(Buffer const & buf, std::ostream & os) const
 {
        os << "Environment " << to_utf8(name()) << "\n";
        InsetText::write(buf, os);
@@ -90,7 +87,7 @@ int InsetEnvironment::plaintext(Buffer const & buf, odocstream & os,
 }
 
 
-Layout_ptr const & InsetEnvironment::layout() const
+LayoutPtr const & InsetEnvironment::layout() const
 {
        return layout_;
 }