mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 05:40:59 +00:00
Change LFUN_FONT_CODE to LFUN_FONT_TYPEWERITER, possibly in preparation for a move to character-style-based font changes, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20381 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1a221943db
commit
aa01777060
@ -60,7 +60,7 @@
|
||||
# used below for line-delete-forward
|
||||
#\bind "C-k" "font-noun" # 'k' for capitals
|
||||
\bind "C-u" "font-underline"
|
||||
\bind "C-S-P" "font-code" # 'P' for program
|
||||
\bind "C-S-P" "font-typewriter" # 'P' for Program
|
||||
|
||||
\bind "C-m" "math-mode"
|
||||
\bind "C-S-M" "math-display"
|
||||
|
@ -169,7 +169,7 @@ void LyXAction::init()
|
||||
{ LFUN_FLOAT_WIDE_INSERT, "float-wide-insert", Noop },
|
||||
{ LFUN_WRAP_INSERT, "wrap-insert", Noop },
|
||||
{ LFUN_FONT_BOLD, "font-bold", Noop },
|
||||
{ LFUN_FONT_CODE, "font-code", Noop },
|
||||
{ LFUN_FONT_TYPEWRITER, "font-typewriter", Noop },
|
||||
{ LFUN_FONT_DEFAULT, "font-default", Noop },
|
||||
{ LFUN_FONT_EMPH, "font-emph", Noop },
|
||||
{ LFUN_FONT_FREE_APPLY, "font-free-apply", Noop },
|
||||
|
@ -1302,7 +1302,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
}
|
||||
|
||||
case LFUN_FONT_CODE: {
|
||||
case LFUN_FONT_TYPEWRITER: {
|
||||
Font font(Font::ALL_IGNORE);
|
||||
font.setFamily(Font::TYPEWRITER_FAMILY); // no good
|
||||
toggleAndShow(cur, this, font);
|
||||
@ -1770,7 +1770,7 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
flag.setOnOff(font.family() == Font::ROMAN_FAMILY);
|
||||
return true;
|
||||
|
||||
case LFUN_FONT_CODE:
|
||||
case LFUN_FONT_TYPEWRITER:
|
||||
flag.setOnOff(font.family() == Font::TYPEWRITER_FAMILY);
|
||||
return true;
|
||||
|
||||
|
@ -301,7 +301,7 @@ bool InsetERT::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
case LFUN_FLOAT_WIDE_INSERT:
|
||||
case LFUN_WRAP_INSERT:
|
||||
case LFUN_FONT_BOLD:
|
||||
case LFUN_FONT_CODE:
|
||||
case LFUN_FONT_TYPEWRITER:
|
||||
case LFUN_FONT_DEFAULT:
|
||||
case LFUN_FONT_EMPH:
|
||||
case LFUN_FONT_FREE_APPLY:
|
||||
|
@ -3447,7 +3447,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
case LFUN_FONT_NOUN:
|
||||
case LFUN_FONT_ITAL:
|
||||
case LFUN_FONT_FRAK:
|
||||
case LFUN_FONT_CODE:
|
||||
case LFUN_FONT_TYPEWRITER:
|
||||
case LFUN_FONT_SANS:
|
||||
case LFUN_FONT_FREE_APPLY:
|
||||
case LFUN_FONT_FREE_UPDATE:
|
||||
|
@ -199,7 +199,7 @@ enum kb_action {
|
||||
LFUN_LAYOUT,
|
||||
LFUN_LAYOUT_PARAGRAPH,
|
||||
LFUN_DROP_LAYOUTS_CHOICE, // used in bindings as of 20060905
|
||||
LFUN_FONT_CODE,
|
||||
LFUN_FONT_TYPEWRITER, // changed from FONT_CODE 20070920
|
||||
// 125
|
||||
LFUN_FONT_SANS,
|
||||
LFUN_FONT_DEFAULT,
|
||||
|
@ -813,7 +813,7 @@ goto_char_backwards:
|
||||
else
|
||||
handleFont(cur, cmd.argument(), "mathrm");
|
||||
break;
|
||||
case LFUN_FONT_CODE:
|
||||
case LFUN_FONT_TYPEWRITER:
|
||||
if (currentMode() == TEXT_MODE)
|
||||
handleFont(cur, cmd.argument(), "texttt");
|
||||
else
|
||||
@ -1043,7 +1043,7 @@ bool InsetMathNest::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
case LFUN_FONT_BOLD:
|
||||
case LFUN_FONT_SANS:
|
||||
case LFUN_FONT_EMPH:
|
||||
case LFUN_FONT_CODE:
|
||||
case LFUN_FONT_TYPEWRITER:
|
||||
case LFUN_FONT_NOUN:
|
||||
case LFUN_FONT_ROMAN:
|
||||
case LFUN_FONT_DEFAULT:
|
||||
|
Loading…
Reference in New Issue
Block a user