*** empty log message ***

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4296 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-05-30 09:51:28 +00:00
parent aedf7c6b5b
commit a2ff5dd7ac
2 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2002-03-30 André Pönitz <poenitz@gmx.net>
* lyxfunc.C: mathed font changes
2002-05-30 John Levon <moz@compsoc.man.ac.uk> 2002-05-30 John Levon <moz@compsoc.man.ac.uk>
* LaTeX.C: * LaTeX.C:

View File

@ -537,6 +537,8 @@ FuncStatus LyXFunc::getStatus(kb_action action,
flag.setOnOff(type == LM_OT_EQNARRAY); flag.setOnOff(type == LM_OT_EQNARRAY);
} else if (argument == "align") { } else if (argument == "align") {
flag.setOnOff(type == LM_OT_ALIGN); flag.setOnOff(type == LM_OT_ALIGN);
} else if (argument == "none") {
flag.setOnOff(type == LM_OT_NONE);
} else { } else {
disable = true; disable = true;
} }
@ -723,28 +725,28 @@ FuncStatus LyXFunc::getStatus(kb_action action,
} }
} }
else { else {
MathTextCodes tc = mathcursor->getLastCode(); string tc = mathcursor->getLastCode();
switch (action) { switch (action) {
case LFUN_BOLD: case LFUN_BOLD:
flag.setOnOff(tc == LM_TC_BF); flag.setOnOff(tc == "mathbf");
break; break;
case LFUN_SANS: case LFUN_SANS:
flag.setOnOff(tc == LM_TC_SF); flag.setOnOff(tc == "mathsf");
break; break;
case LFUN_EMPH: case LFUN_EMPH:
flag.setOnOff(tc == LM_TC_CAL); flag.setOnOff(tc == "mathcal");
break; break;
case LFUN_ROMAN: case LFUN_ROMAN:
flag.setOnOff(tc == LM_TC_RM); flag.setOnOff(tc == "mathrm");
break; break;
case LFUN_CODE: case LFUN_CODE:
flag.setOnOff(tc == LM_TC_TT); flag.setOnOff(tc == "mathtt");
break; break;
case LFUN_NOUN: case LFUN_NOUN:
flag.setOnOff(tc == LM_TC_BB); flag.setOnOff(tc == "mathbb");
break; break;
case LFUN_DEFAULT: case LFUN_DEFAULT:
flag.setOnOff(tc == LM_TC_VAR); flag.setOnOff(tc == "mathnormal");
break; break;
default: default:
break; break;