add onoff support for "inset-modify changetype xxx" in include inset

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30305 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-06-29 12:41:43 +00:00
parent 2efcbb74d6
commit 4594b1425b

View File

@ -302,10 +302,16 @@ bool InsetInclude::getStatus(Cursor & cur, FuncRequest const & cmd,
switch (cmd.action) {
case LFUN_INSET_EDIT:
case LFUN_INSET_MODIFY:
flag.setEnabled(true);
return true;
case LFUN_INSET_MODIFY:
if (cmd.getArg(0) == "changetype")
return InsetCommand::getStatus(cur, cmd, flag);
else
flag.setEnabled(true);
return true;
default:
return InsetCommand::getStatus(cur, cmd, flag);
}