]> git.lyx.org Git - features.git/commitdiff
Remove LFUN_FILE_NEW.
authorPavel Sanda <sanda@lyx.org>
Wed, 13 Feb 2008 14:07:50 +0000 (14:07 +0000)
committerPavel Sanda <sanda@lyx.org>
Wed, 13 Feb 2008 14:07:50 +0000 (14:07 +0000)
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

src/LyXAction.cpp
src/LyXFunc.cpp
src/lfuns.h

index 321d38f50fa74e7d1874dca405056a5e940a4a02..94f84b1c322dd12e623043b834d0450946c01057 100644 (file)
@@ -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 },
 
 
index 1cb8870a3d71fc292cc7f6b26120abaa888fb30e..4bd6d49f1a2dde9c916dd86dce5bbc11930bd23f 100644 (file)
@@ -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());
index 31331d1b08483b07f0a1907952991c6b110aeeb8..3564c32309ce0b13f37726303300fe907f11527f 100644 (file)
@@ -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