mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Remove LFUN_FILE_NEW.
Obsoleted by LFUN_BUFFER_NEW, moreover its was currently buggy. See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg135371.html . git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22977 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
eb8468994f
commit
c6161cfdc6
@ -1298,7 +1298,6 @@ void LyXAction::init()
|
||||
{ LFUN_FILE_INSERT, "file-insert", Noop, Edit },
|
||||
{ LFUN_FILE_INSERT_PLAINTEXT, "file-insert-plaintext", Noop, Edit },
|
||||
{ LFUN_FILE_INSERT_PLAINTEXT_PARA, "file-insert-plaintext-para", Noop, Edit },
|
||||
{ LFUN_FILE_NEW, "file-new", NoBuffer, Buffer },
|
||||
{ LFUN_FILE_OPEN, "file-open", NoBuffer, Buffer },
|
||||
|
||||
|
||||
|
@ -593,7 +593,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
|
||||
case LFUN_BUFFER_AUTO_SAVE:
|
||||
case LFUN_RECONFIGURE:
|
||||
case LFUN_HELP_OPEN:
|
||||
case LFUN_FILE_NEW:
|
||||
case LFUN_FILE_OPEN:
|
||||
case LFUN_DROP_LAYOUTS_CHOICE:
|
||||
case LFUN_MENU_OPEN:
|
||||
@ -1114,19 +1113,6 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
||||
reloadBuffer();
|
||||
break;
|
||||
|
||||
// --- buffers ----------------------------------------
|
||||
|
||||
case LFUN_FILE_NEW: {
|
||||
BOOST_ASSERT(lyx_view_);
|
||||
string name;
|
||||
string tmpname = split(argument, name, ':'); // Split filename
|
||||
Buffer * const b = newFile(name, tmpname);
|
||||
if (b)
|
||||
lyx_view_->setBuffer(b);
|
||||
updateFlags = Update::None;
|
||||
break;
|
||||
}
|
||||
|
||||
// --- lyxserver commands ----------------------------
|
||||
case LFUN_SERVER_GET_NAME:
|
||||
BOOST_ASSERT(lyx_view_ && lyx_view_->buffer());
|
||||
|
@ -202,7 +202,6 @@ enum kb_action {
|
||||
// 140
|
||||
LFUN_FILE_INSERT_PLAINTEXT, // CFO-G 1997-11-19
|
||||
LFUN_FILE_INSERT_PLAINTEXT_PARA,// Levon 2001-02-14
|
||||
LFUN_FILE_NEW, // for scripting purposes
|
||||
LFUN_FILE_OPEN,
|
||||
LFUN_PARAGRAPH_UP, // Asger 1996-10-01
|
||||
// 145
|
||||
|
Loading…
Reference in New Issue
Block a user