+2005-05-17 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * insetbase.C (getStatus): allow LFUN_INSET_MODIFY unconditionally
+ * insetbibitem.C, insetbibtex.C, insetlabel.C (doDispatch): call
+ cur.noUpdate() if nothing changed
+ * insetlatexaccent.[Ch]: spelling fixes
+
2005-05-13 Martin Vermeer <martin.vermeer@hut.fi>
* insetcollapsable.C (doDispatch): fix
switch (cmd.action) {
case LFUN_INSET_MODIFY:
- // Only allow modification of our own data.
+ // Allow modification of our data.
// This needs to be handled in the doDispatch method of our
// instantiatable children.
- if (lyxCode() == translate(cmd.getArg(0))) {
- flag.enabled(true);
- return true;
- }
- return false;
+ flag.enabled(true);
+ return true;
case LFUN_INSET_INSERT:
// Don't allow insertion of new insets.
InsetCommandMailer::string2params("bibitem", cmd.argument, p);
if (!p.getCmdName().empty())
setParams(p);
+ else
+ cur.noUpdate();
break;
}
InsetCommandMailer::string2params("bibtex", cmd.argument, p);
if (!p.getCmdName().empty())
setParams(p);
+ else
+ cur.noUpdate();
break;
}
InsetCommandParams p;
InsetCommandMailer::string2params("label", cmd.argument, p);
if (p.getCmdName().empty()) {
- cur.undispatched();
+ cur.noUpdate();
break;
}
if (p.getContents() != params().getContents())
break;
default:
lyxerr[Debug::KEY] << "Default" << endl;
- // unknow accent (or something else)
+ // unknown accent (or something else)
return;
}
// should this inset be handled like a normal charater
bool isChar() const { return true; }
- // is this equivalent to a letter?
+ /// is this equivalent to a letter?
virtual bool isLetter() const { return candisp; }
/// all the accent types