mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
apply layoutno.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3160 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4d5b88d60c
commit
104aed27d7
@ -1,3 +1,9 @@
|
||||
2001-12-05 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* lyxfunc.C:
|
||||
* commandtags.h:
|
||||
* LyXAction.C: remove old LFUN_LAYOUTNO
|
||||
|
||||
2001-12-05 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* paragraph_pimpl.h:
|
||||
|
@ -252,7 +252,6 @@ void LyXAction::init()
|
||||
{ LFUN_LAYOUT_COPY, "layout-copy",
|
||||
N_("Copy paragraph environment type"), Noop },
|
||||
{ LFUN_LAYOUT_DOCUMENT, "layout-document", "", ReadOnly },
|
||||
{ LFUN_LAYOUTNO, "", "internal only", Noop },
|
||||
{ LFUN_LAYOUT_PARAGRAPH, "layout-paragraph", "", ReadOnly },
|
||||
{ LFUN_LAYOUT_PASTE, "layout-paste",
|
||||
N_("Paste paragraph environment type"), Noop },
|
||||
|
@ -158,7 +158,6 @@ enum kb_action {
|
||||
LFUN_MARK_OFF,
|
||||
LFUN_MARK_ON,
|
||||
LFUN_LAYOUT,
|
||||
LFUN_LAYOUTNO, // 130 // Lgb 97-06-10
|
||||
LFUN_LAYOUT_CHARACTER,
|
||||
LFUN_LAYOUT_PARAGRAPH,
|
||||
LFUN_LAYOUT_DOCUMENT,
|
||||
|
@ -1279,26 +1279,6 @@ string const LyXFunc::dispatch(int ac,
|
||||
owner->getDialogs()->showLogFile();
|
||||
break;
|
||||
|
||||
case LFUN_LAYOUTNO:
|
||||
{
|
||||
lyxerr[Debug::INFO] << "LFUN_LAYOUTNO: (arg) " << argument << endl;
|
||||
int sel = strToInt(argument);
|
||||
lyxerr[Debug::INFO] << "LFUN_LAYOUTNO: (sel) "<< sel << endl;
|
||||
|
||||
// Should this give a setMessage instead?
|
||||
if (sel == 0)
|
||||
return string(); // illegal argument
|
||||
|
||||
--sel; // sel 1..., but layout 0...
|
||||
|
||||
// Pretend we got the name instead.
|
||||
dispatch(int(LFUN_LAYOUT),
|
||||
textclasslist.NameOfLayout(owner->view()
|
||||
->buffer()->params.textclass,
|
||||
sel));
|
||||
return string();
|
||||
}
|
||||
|
||||
case LFUN_LAYOUT_DOCUMENT:
|
||||
owner->getDialogs()->showDocument();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user