]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSplit.cpp
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathSplit.cpp
index a8575ac6878b8f199debd6c20b417c122bf62dfa..647f5cf7371eeed6b9354a4041cf2138bb05b532 100644 (file)
 #include <config.h>
 
 #include "InsetMathSplit.h"
+
 #include "MathData.h"
 #include "MathStream.h"
 #include "MathStream.h"
 
-#include "funcrequest.h"
+#include "FuncRequest.h"
 #include "FuncStatus.h"
-#include "gettext.h"
+#include "support/gettext.h"
 #include "LaTeXFeatures.h"
 
 #include "support/lstrings.h"
-#include "support/std_ostream.h"
 
+#include <ostream>
+
+using namespace std;
 
 namespace lyx {
 
 using support::bformat;
 
-using std::string;
-using std::auto_ptr;
-
 
 InsetMathSplit::InsetMathSplit(docstring const & name, char valign)
        : InsetMathGrid(1, 1, valign, docstring()), name_(name)
@@ -38,9 +38,9 @@ InsetMathSplit::InsetMathSplit(docstring const & name, char valign)
 }
 
 
-auto_ptr<InsetBase> InsetMathSplit::doClone() const
+Inset * InsetMathSplit::clone() const
 {
-       return auto_ptr<InsetBase>(new InsetMathSplit(*this));
+       return new InsetMathSplit(*this);
 }
 
 
@@ -65,7 +65,7 @@ void InsetMathSplit::draw(PainterInfo & pi, int x, int y) const
 }
 
 
-bool InsetMathSplit::getStatus(LCursor & cur, FuncRequest const & cmd,
+bool InsetMathSplit::getStatus(Cursor & cur, FuncRequest const & cmd,
                FuncStatus & flag) const
 {
        switch (cmd.action) {