mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Rename LFUN_OPTIONAL_INSERT as LFUN_ARGUMENT_INSERT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34597 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8480d1dd9a
commit
319ca06167
@ -126,6 +126,9 @@ The following LyX functions have been changed:
|
|||||||
arguments have been inverted in order to allow the replacement of the word
|
arguments have been inverted in order to allow the replacement of the word
|
||||||
at current cursor position, even if it is not selected.
|
at current cursor position, even if it is not selected.
|
||||||
|
|
||||||
|
- LFUN_OPTIONAL_INSERT ("optional-insert") has been renamed LFUN_ARGUMENT_INSERT
|
||||||
|
("argument-insert").
|
||||||
|
|
||||||
|
|
||||||
New external programs and libaries:
|
New external programs and libaries:
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
@ -219,7 +219,7 @@ Menuset
|
|||||||
Item "Label...|L" "label-insert"
|
Item "Label...|L" "label-insert"
|
||||||
Item "Footnote|F" "footnote-insert"
|
Item "Footnote|F" "footnote-insert"
|
||||||
Item "Marginal Note|M" "marginalnote-insert"
|
Item "Marginal Note|M" "marginalnote-insert"
|
||||||
Item "Short Title" "optional-insert"
|
Item "Short Title" "argument-insert"
|
||||||
Item "Index Entry|I" "index-insert"
|
Item "Index Entry|I" "index-insert"
|
||||||
Item "Nomenclature Entry" "nomencl-insert"
|
Item "Nomenclature Entry" "nomencl-insert"
|
||||||
Item "URL...|U" "url-insert"
|
Item "URL...|U" "url-insert"
|
||||||
|
@ -308,7 +308,7 @@ Menuset
|
|||||||
OptItem "Demote Section|m" "outline-in"
|
OptItem "Demote Section|m" "outline-in"
|
||||||
OptItem "Move Section Down|D" "outline-down"
|
OptItem "Move Section Down|D" "outline-down"
|
||||||
OptItem "Move Section Up|U" "outline-up"
|
OptItem "Move Section Up|U" "outline-up"
|
||||||
OptItem "Insert Short Title|T" "optional-insert"
|
OptItem "Insert Short Title|T" "argument-insert"
|
||||||
OptSubMenu "Insert Regular Expression..." "context-edit-regexp"
|
OptSubMenu "Insert Regular Expression..." "context-edit-regexp"
|
||||||
Separator
|
Separator
|
||||||
OptItem "Accept Change|c" "change-accept"
|
OptItem "Accept Change|c" "change-accept"
|
||||||
|
@ -362,7 +362,7 @@ Menuset
|
|||||||
Item "Hyperlink...|k" "href-insert"
|
Item "Hyperlink...|k" "href-insert"
|
||||||
Item "Footnote|F" "footnote-insert"
|
Item "Footnote|F" "footnote-insert"
|
||||||
Item "Marginal Note|M" "marginalnote-insert"
|
Item "Marginal Note|M" "marginalnote-insert"
|
||||||
Item "Short Title|S" "optional-insert"
|
Item "Short Title|S" "argument-insert"
|
||||||
Item "TeX Code|X" "ert-insert"
|
Item "TeX Code|X" "ert-insert"
|
||||||
Item "Program Listing[[Menu]]" "listing-insert"
|
Item "Program Listing[[Menu]]" "listing-insert"
|
||||||
Item "Date" "date-insert"
|
Item "Date" "date-insert"
|
||||||
|
@ -274,7 +274,7 @@ enum FuncCode
|
|||||||
LFUN_CHARS_TRANSPOSE, // Lgb 20010425
|
LFUN_CHARS_TRANSPOSE, // Lgb 20010425
|
||||||
LFUN_ESCAPE, // Lgb 20010517
|
LFUN_ESCAPE, // Lgb 20010517
|
||||||
LFUN_THESAURUS_ENTRY, // Levon 20010720
|
LFUN_THESAURUS_ENTRY, // Levon 20010720
|
||||||
LFUN_OPTIONAL_INSERT, // Martin 12 Aug 2002
|
LFUN_ARGUMENT_INSERT, // Martin 12 Aug 2002
|
||||||
// 205
|
// 205
|
||||||
LFUN_MOUSE_PRESS, // André 9 Aug 2002
|
LFUN_MOUSE_PRESS, // André 9 Aug 2002
|
||||||
LFUN_MOUSE_MOTION, // André 9 Aug 2002
|
LFUN_MOUSE_MOTION, // André 9 Aug 2002
|
||||||
|
@ -317,13 +317,13 @@ void LyXAction::init()
|
|||||||
*/
|
*/
|
||||||
{ LFUN_WRAP_INSERT, "wrap-insert", Noop, Edit },
|
{ LFUN_WRAP_INSERT, "wrap-insert", Noop, Edit },
|
||||||
/*!
|
/*!
|
||||||
* \var lyx::FuncCode lyx::LFUN_OPTIONAL_INSERT
|
* \var lyx::FuncCode lyx::LFUN_ARGUMENT_INSERT
|
||||||
* \li Action: Inserts an optional-argument (short title) inset.
|
* \li Action: Inserts an argument (short title) inset.
|
||||||
* \li Syntax: optional-insert
|
* \li Syntax: argument-insert
|
||||||
* \li Origin: vermeer, 12 Aug 2002
|
* \li Origin: vermeer, 12 Aug 2002
|
||||||
* \endvar
|
* \endvar
|
||||||
*/
|
*/
|
||||||
{ LFUN_OPTIONAL_INSERT, "optional-insert", Noop, Edit },
|
{ LFUN_ARGUMENT_INSERT, "argument-insert", Noop, Edit },
|
||||||
/*!
|
/*!
|
||||||
* \var lyx::FuncCode lyx::LFUN_LINE_INSERT
|
* \var lyx::FuncCode lyx::LFUN_LINE_INSERT
|
||||||
* \li Action: Inserts a horizontal line.
|
* \li Action: Inserts a horizontal line.
|
||||||
|
@ -1570,7 +1570,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
case LFUN_ERT_INSERT:
|
case LFUN_ERT_INSERT:
|
||||||
case LFUN_LISTING_INSERT:
|
case LFUN_LISTING_INSERT:
|
||||||
case LFUN_MARGINALNOTE_INSERT:
|
case LFUN_MARGINALNOTE_INSERT:
|
||||||
case LFUN_OPTIONAL_INSERT:
|
case LFUN_ARGUMENT_INSERT:
|
||||||
case LFUN_INDEX_INSERT:
|
case LFUN_INDEX_INSERT:
|
||||||
case LFUN_PREVIEW_INSERT:
|
case LFUN_PREVIEW_INSERT:
|
||||||
// Open the inset, and move the current selection
|
// Open the inset, and move the current selection
|
||||||
@ -2341,7 +2341,7 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
case LFUN_INFO_INSERT:
|
case LFUN_INFO_INSERT:
|
||||||
code = INFO_CODE;
|
code = INFO_CODE;
|
||||||
break;
|
break;
|
||||||
case LFUN_OPTIONAL_INSERT: {
|
case LFUN_ARGUMENT_INSERT: {
|
||||||
code = ARG_CODE;
|
code = ARG_CODE;
|
||||||
Layout const & lay = cur.paragraph().layout();
|
Layout const & lay = cur.paragraph().layout();
|
||||||
int const numargs = lay.reqargs + lay.optargs;
|
int const numargs = lay.reqargs + lay.optargs;
|
||||||
|
@ -144,7 +144,7 @@ Inset * createInsetHelper(Buffer * buf, FuncRequest const & cmd)
|
|||||||
case LFUN_MARGINALNOTE_INSERT:
|
case LFUN_MARGINALNOTE_INSERT:
|
||||||
return new InsetMarginal(buf);
|
return new InsetMarginal(buf);
|
||||||
|
|
||||||
case LFUN_OPTIONAL_INSERT:
|
case LFUN_ARGUMENT_INSERT:
|
||||||
return new InsetArgument(buf);
|
return new InsetArgument(buf);
|
||||||
|
|
||||||
case LFUN_FLOAT_INSERT:
|
case LFUN_FLOAT_INSERT:
|
||||||
|
@ -198,7 +198,7 @@ bool InsetCaption::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
status.setEnabled(false);
|
status.setEnabled(false);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case LFUN_OPTIONAL_INSERT:
|
case LFUN_ARGUMENT_INSERT:
|
||||||
status.setEnabled(cur.paragraph().insetList().find(ARG_CODE) == -1);
|
status.setEnabled(cur.paragraph().insetList().find(ARG_CODE) == -1);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
@ -4296,7 +4296,7 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
case LFUN_MATH_MUTATE:
|
case LFUN_MATH_MUTATE:
|
||||||
case LFUN_MATH_DISPLAY:
|
case LFUN_MATH_DISPLAY:
|
||||||
case LFUN_NOTE_INSERT:
|
case LFUN_NOTE_INSERT:
|
||||||
case LFUN_OPTIONAL_INSERT:
|
case LFUN_ARGUMENT_INSERT:
|
||||||
case LFUN_BOX_INSERT:
|
case LFUN_BOX_INSERT:
|
||||||
case LFUN_BRANCH_INSERT:
|
case LFUN_BRANCH_INSERT:
|
||||||
case LFUN_PHANTOM_INSERT:
|
case LFUN_PHANTOM_INSERT:
|
||||||
|
Loading…
Reference in New Issue
Block a user