add a checkbox to current document in document list

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3521 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-02-11 15:51:03 +00:00
parent af7a06dd86
commit e369d83035
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-02-11 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lyxfunc.C (getStatus): handle LFUN_SWITCHBUFFER so that the
document menu has a nice checkbox
2002-02-07 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lyxlength.C (asLatexString): change PW to output as percent of

View File

@ -676,6 +676,12 @@ FuncStatus LyXFunc::getStatus(kb_action action,
case LFUN_APPENDIX:
flag.setOnOff(TEXT(false)->cursor.par()->params().startOfAppendix());
break;
case LFUN_SWITCHBUFFER:
// toggle on the current buffer, but do not toggle off
// the other ones (is that a good idea?)
if (argument == buf->fileName())
flag.setOnOff(true);
break;
default:
break;
}