fix bug 1879 (first part, not completely fixed yet)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9948 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-05-17 11:11:45 +00:00
parent 36c3528db8
commit 3682fa502a
7 changed files with 17 additions and 9 deletions

View File

@ -1,3 +1,10 @@
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

View File

@ -151,14 +151,11 @@ bool InsetBase::getStatus(LCursor &, FuncRequest const & cmd,
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;
case LFUN_INSET_INSERT:
// Don't allow insertion of new insets.

View File

@ -63,6 +63,8 @@ void InsetBibitem::doDispatch(LCursor & cur, FuncRequest & cmd)
InsetCommandMailer::string2params("bibitem", cmd.argument, p);
if (!p.getCmdName().empty())
setParams(p);
else
cur.noUpdate();
break;
}

View File

@ -78,6 +78,8 @@ void InsetBibtex::doDispatch(LCursor & cur, FuncRequest & cmd)
InsetCommandMailer::string2params("bibtex", cmd.argument, p);
if (!p.getCmdName().empty())
setParams(p);
else
cur.noUpdate();
break;
}

View File

@ -100,7 +100,7 @@ void InsetLabel::doDispatch(LCursor & cur, FuncRequest & cmd)
InsetCommandParams p;
InsetCommandMailer::string2params("label", cmd.argument, p);
if (p.getCmdName().empty()) {
cur.undispatched();
cur.noUpdate();
break;
}
if (p.getContents() != params().getContents())

View File

@ -166,7 +166,7 @@ void InsetLatexAccent::checkContents()
break;
default:
lyxerr[Debug::KEY] << "Default" << endl;
// unknow accent (or something else)
// unknown accent (or something else)
return;
}

View File

@ -66,7 +66,7 @@ public:
// 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