mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
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:
parent
36c3528db8
commit
3682fa502a
@ -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
|
||||
|
@ -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;
|
||||
flag.enabled(true);
|
||||
return true;
|
||||
|
||||
case LFUN_INSET_INSERT:
|
||||
// Don't allow insertion of new insets.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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())
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user