From: Pavel Sanda Date: Thu, 25 Sep 2008 20:50:33 +0000 (+0000) Subject: Finish the cleanup in graphics. X-Git-Tag: 1.6.10~3326 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7b1bf2333704ebdc3ac51fbee49017aff1accc01;p=lyx.git Finish the cleanup in graphics. 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 --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0951dd1c7b..87bdabbd86 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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" diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 9daa2aaa55..054fadbbab 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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 + // This could be rewriten using some command like forall // 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; diff --git a/src/FuncCode.h b/src/FuncCode.h index 6a009a2f3f..1a57ce227f 100644 --- a/src/FuncCode.h +++ b/src/FuncCode.h @@ -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 }; diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index 6aeb69c3b5..ceee3bca70 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -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 - * \li 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.