]> git.lyx.org Git - lyx.git/commitdiff
Finish the cleanup in graphics.
authorPavel Sanda <sanda@lyx.org>
Thu, 25 Sep 2008 20:50:33 +0000 (20:50 +0000)
committerPavel Sanda <sanda@lyx.org>
Thu, 25 Sep 2008 20:50:33 +0000 (20:50 +0000)
LFUN_GRAPHICS_GROUPS_UNIFY is not needed anymore.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26550 a592a061-630c-0410-9148-cb99ea01b6c8

RELEASE-NOTES
src/BufferView.cpp
src/FuncCode.h
src/LyXAction.cpp

index 0951dd1c7befeaa46aeb352b2e7a8f03814580aa..87bdabbd86f71d1333a36bdda61d4a3665b09a94 100644 (file)
@@ -170,8 +170,6 @@ The following new LyX functions have been introduced:
 
 - LFUN_SET_GRAPHICS_GROUP, "set-graphics-group"
 
-- LFUN_GRAPHICS_GROUPS_UNIFY, "graphics-groups-unify"
-
 - LFUN_BRANCH_ACTIVATE, "branch-activate"
 
 - LFUN_BRANCH_DEACTIVATE, "branch-deactivate" 
index 9daa2aaa55ec5bfae5aca6f79438a45dc443f8db..054fadbbabab473aa0f3fbe0db7aca753e1b8f13 100644 (file)
@@ -873,7 +873,6 @@ FuncStatus BufferView::getStatus(FuncRequest const & cmd)
        case LFUN_SCREEN_RECENTER:
        case LFUN_BIBTEX_DATABASE_ADD:
        case LFUN_BIBTEX_DATABASE_DEL:
-       case LFUN_GRAPHICS_GROUPS_UNIFY:
        case LFUN_NOTES_MUTATE:
        case LFUN_ALL_INSETS_TOGGLE:
        case LFUN_STATISTICS:
@@ -1427,16 +1426,8 @@ bool BufferView::dispatch(FuncRequest const & cmd)
                processUpdateFlags(Update::Force);
                break;
 
-       // These two could be rewriten using some command like forall <insetname> <command>
+       // This could be rewriten using some command like forall <insetname> <command>
        // once the insets refactoring is done.
-       case LFUN_GRAPHICS_GROUPS_UNIFY: {
-               if (cmd.argument().empty())
-                       break;
-               graphics::unifyGraphicsGroups(cur.buffer(), to_utf8(cmd.argument()));
-               processUpdateFlags(Update::Force | Update::FitCursor);
-               break;
-       }
-
        case LFUN_NOTES_MUTATE: {
                if (cmd.argument().empty())
                        break;
index 6a009a2f3f7b2179f6208a9344cb4d252a882ca8..1a57ce227fd42eb5b3a6e2fec799d094517a2af4 100644 (file)
@@ -403,12 +403,11 @@ enum FuncCode
        LFUN_COMPLETION_INLINE,
        // 310
        LFUN_COMPLETION_COMPLETE,
-       LFUN_GRAPHICS_GROUPS_UNIFY,
        LFUN_SET_GRAPHICS_GROUP,
        LFUN_COMPLETION_CANCEL,
        LFUN_COMPLETION_ACCEPT,
-       // 315
        LFUN_COMMAND_ALTERNATIVES,
+       // 315
        LFUN_LASTACTION                  // end of the table
 };
 
index 6aeb69c3b558146d3b674df4da510d489875d0e0..ceee3bca7030c775aff0be696a5e53d30661f109 100644 (file)
@@ -2124,17 +2124,6 @@ void LyXAction::init()
  * \endvar
  */
                { LFUN_ALL_INSETS_TOGGLE, "all-insets-toggle", ReadOnly, Edit },
-/*!
- * \var lyx::FuncCode lyx::LFUN_GRAPHICS_GROUPS_UNIFY
- * \li Action: Unify all graphics insets with the one given as an parameter.
- * \li Notion: This is internally used for synchronize certain group of graphics insets.
- * \li Syntax: graphics-groups-unigfy <GRAPHICS_PARAMS>
- * \li Params: <GRAPHICS_PARAMS>: Parameters for graphics inset
-                                  (syntax can be seen in .lyx files).
- * \li Origin: sanda, 6 May 2008
- * \endvar
- */
-               { LFUN_GRAPHICS_GROUPS_UNIFY, "graphics-groups-unify", Argument, Edit },
 /*!
  * \var lyx::FuncCode lyx::LFUN_SET_GRAPHICS_GROUP
  * \li Action: Set the group for the graphics inset on the cursor position.