mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 22:06:15 +00:00
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
This commit is contained in:
parent
df8913b213
commit
7b1bf23337
@ -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"
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
};
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user