#include "Encoding.h"
#include "FuncRequest.h"
#include "FuncStatus.h"
-#include "LyXFunc.h"
+#include "LyX.h"
#include "LyXRC.h"
#include "OutputParams.h"
#include "Text.h"
}
+void InsetMathNest::updateLabels(ParIterator const & it, UpdateType utype)
+{
+ for (idx_type i = 0, n = nargs(); i != n; ++i)
+ cell(i).updateLabels(it, utype);
+}
+
+
+
bool InsetMathNest::idxNext(Cursor & cur) const
{
LASSERT(&cur.inset() == this, /**/);
void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
{
- //lyxerr << "InsetMathNest: request: " << cmd << endl;
+ //LYXERR0("InsetMathNest: request: " << cmd);
Parse::flags parseflg = Parse::QUIET | Parse::USETEXT;
}
cur.niceInsert(topaste, parseflg, false);
cur.clearSelection(); // bug 393
+ // FIXME audit setBuffer/updateLabels calls
+ cur.buffer()->updateLabels();
cur.finishUndo();
break;
}
// Prevent stale position >= size crash
// Probably not necessary anymore, see eraseSelection (gb 2005-10-09)
cur.normalize();
+ // FIXME audit setBuffer/updateLabels calls
+ cur.buffer()->updateLabels();
break;
case LFUN_COPY:
cur.posBackward();
cur.pushBackward(*cur.nextInset());
cur.niceInsert(save_selection);
+ // FIXME audit setBuffer/updateLabels calls
+ cur.buffer()->updateLabels();
#else
if (currentMode() == Inset::TEXT_MODE) {
cur.recordUndoSelection();
case LFUN_REGEXP_MODE: {
InsetMathHull * i = dynamic_cast<InsetMathHull *>(cur.inset().asInsetMath());
if (i && i->getType() == hullRegexp) {
- cur.message(_("Already in regexp mode"));
+ cur.message(_("Already in regular expression mode"));
break;
}
cur.macroModeClose();
cur.posBackward();
cur.pushBackward(*cur.nextInset());
cur.niceInsert(save_selection);
- cur.message(_("Regexp editor mode"));
+ cur.message(_("Regular expression editor mode"));
break;
}
if (createInsetMath_fromDialogStr(cmd.argument(), ar)) {
cur.recordUndoSelection();
cur.insert(ar);
+ // FIXME audit setBuffer/updateLabels calls
+ cur.buffer()->updateLabels();
} else
cur.undispatched();
break;
bool ret = true;
string const arg = to_utf8(cmd.argument());
switch (cmd.action) {
- case LFUN_TABULAR_FEATURE:
+ case LFUN_INSET_MODIFY:
flag.setEnabled(false);
break;
#if 0
- case LFUN_TABULAR_FEATURE:
+ case LFUN_INSET_MODIFY:
// FIXME: check temporarily disabled
// valign code
char align = mathcursor::valign();