X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathCases.cpp;h=6ade4d2ebe875d6eacc725b769a7a6e7e6e6d8a8;hb=5e0121cf5854a2a0039e6cb4970aeddb18bd4b23;hp=46d2602ab7dfa521113cea3e0b2862f6f62e3988;hpb=137158532b1ac0cde1557226ee486b3fda39b545;p=lyx.git diff --git a/src/mathed/InsetMathCases.cpp b/src/mathed/InsetMathCases.cpp index 46d2602ab7..6ade4d2ebe 100644 --- a/src/mathed/InsetMathCases.cpp +++ b/src/mathed/InsetMathCases.cpp @@ -11,25 +11,25 @@ #include #include "InsetMathCases.h" + +#include "Cursor.h" +#include "FuncRequest.h" +#include "FuncStatus.h" +#include "support/gettext.h" +#include "LaTeXFeatures.h" #include "MathData.h" #include "MathStream.h" #include "MathSupport.h" -#include "FuncStatus.h" -#include "LaTeXFeatures.h" -#include "support/std_ostream.h" -#include "Cursor.h" -#include "FuncRequest.h" -#include "gettext.h" -#include "Undo.h" +#include "MetricsInfo.h" #include "support/lstrings.h" +#include -namespace lyx { - -using support::bformat; +using namespace std; +using namespace lyx::support; -using std::endl; +namespace lyx { InsetMathCases::InsetMathCases(row_type n) @@ -72,7 +72,7 @@ void InsetMathCases::doDispatch(Cursor & cur, FuncRequest & cmd) //lyxerr << "*** InsetMathCases: request: " << cmd << endl; switch (cmd.action) { case LFUN_TABULAR_FEATURE: { - recordUndo(cur); + cur.recordUndo(); docstring const & s = cmd.argument(); if (s == "add-vline-left" || s == "add-vline-right") { cur.undispatched();