Make LFUN_FONT_ITAL actually do something.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27712 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-11-26 18:47:52 +00:00
parent 077baded5c
commit 9a67491a3f

View File

@ -1582,6 +1582,13 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
break; break;
} }
case LFUN_FONT_ITAL: {
Font font(ignore_font, ignore_language);
font.fontInfo().setShape(ITALIC_SHAPE);
toggleAndShow(cur, this, font);
break;
}
case LFUN_FONT_BOLD: case LFUN_FONT_BOLD:
case LFUN_FONT_BOLDSYMBOL: { case LFUN_FONT_BOLDSYMBOL: {
Font font(ignore_font, ignore_language); Font font(ignore_font, ignore_language);
@ -2104,6 +2111,10 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
flag.setOnOff(fontinfo.emph() == FONT_ON); flag.setOnOff(fontinfo.emph() == FONT_ON);
break; break;
case LFUN_FONT_ITAL:
flag.setOnOff(fontinfo.shape() == ITALIC_SHAPE);
break;
case LFUN_FONT_NOUN: case LFUN_FONT_NOUN:
flag.setOnOff(fontinfo.noun() == FONT_ON); flag.setOnOff(fontinfo.noun() == FONT_ON);
break; break;