mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Get rid of LFUN_LINE_INSERT: we use LFUN_INSET_INSERT "line".
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35344 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cfe3bdbe30
commit
a648c39b70
@ -117,6 +117,8 @@ The following LyX functions have been removed:
|
|||||||
|
|
||||||
- LFUN_TABULAR_FEATURE ("tabular-feature"): use "inset-modify" instead.
|
- LFUN_TABULAR_FEATURE ("tabular-feature"): use "inset-modify" instead.
|
||||||
|
|
||||||
|
- LFUN_LINE_INSERT ("line-insert"): use "inset-insert line" instead.
|
||||||
|
|
||||||
|
|
||||||
The following LyX functions have been changed:
|
The following LyX functions have been changed:
|
||||||
|
|
||||||
|
@ -390,7 +390,7 @@ Menuset
|
|||||||
Item "Interword Space|w" "space-insert normal"
|
Item "Interword Space|w" "space-insert normal"
|
||||||
Item "Thin Space|T" "space-insert thin"
|
Item "Thin Space|T" "space-insert thin"
|
||||||
Item "Horizontal Space...|o" "dialog-show-new-inset space"
|
Item "Horizontal Space...|o" "dialog-show-new-inset space"
|
||||||
Item "Horizontal Line|L" "line-insert"
|
Item "Horizontal Line...|L" "dialog-show-new-inset line"
|
||||||
Item "Vertical Space...|V" "dialog-show-new-inset vspace"
|
Item "Vertical Space...|V" "dialog-show-new-inset vspace"
|
||||||
Submenu "Phantom" "insert_phantom"
|
Submenu "Phantom" "insert_phantom"
|
||||||
Separator
|
Separator
|
||||||
|
@ -1027,7 +1027,6 @@ bool BufferView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
|
|||||||
|
|
||||||
case LFUN_FONT_STATE:
|
case LFUN_FONT_STATE:
|
||||||
case LFUN_LABEL_INSERT:
|
case LFUN_LABEL_INSERT:
|
||||||
case LFUN_LINE_INSERT:
|
|
||||||
case LFUN_INFO_INSERT:
|
case LFUN_INFO_INSERT:
|
||||||
case LFUN_PARAGRAPH_GOTO:
|
case LFUN_PARAGRAPH_GOTO:
|
||||||
case LFUN_NOTE_NEXT:
|
case LFUN_NOTE_NEXT:
|
||||||
|
@ -310,7 +310,7 @@ enum FuncCode
|
|||||||
LFUN_INSET_EDIT, // JSpitzm 20080427
|
LFUN_INSET_EDIT, // JSpitzm 20080427
|
||||||
LFUN_BRANCH_INSERT,
|
LFUN_BRANCH_INSERT,
|
||||||
LFUN_BOX_INSERT,
|
LFUN_BOX_INSERT,
|
||||||
LFUN_LINE_INSERT,
|
LFUN_BUFFER_TOGGLE_OUTPUT_SYNC,
|
||||||
// 235
|
// 235
|
||||||
LFUN_NEWPAGE_INSERT, // uwestoehr, 20071124
|
LFUN_NEWPAGE_INSERT, // uwestoehr, 20071124
|
||||||
LFUN_REPEAT,
|
LFUN_REPEAT,
|
||||||
@ -448,7 +448,6 @@ enum FuncCode
|
|||||||
LFUN_PREVIEW_INSERT, // vfr, 20100328
|
LFUN_PREVIEW_INSERT, // vfr, 20100328
|
||||||
LFUN_FORWARD_SEARCH,
|
LFUN_FORWARD_SEARCH,
|
||||||
LFUN_INSET_COPY_AS, // vfr, 20100419
|
LFUN_INSET_COPY_AS, // vfr, 20100419
|
||||||
LFUN_BUFFER_TOGGLE_OUTPUT_SYNC,
|
|
||||||
|
|
||||||
LFUN_LASTACTION // end of the table
|
LFUN_LASTACTION // end of the table
|
||||||
};
|
};
|
||||||
|
@ -324,14 +324,6 @@ void LyXAction::init()
|
|||||||
* \endvar
|
* \endvar
|
||||||
*/
|
*/
|
||||||
{ LFUN_ARGUMENT_INSERT, "argument-insert", Noop, Edit },
|
{ LFUN_ARGUMENT_INSERT, "argument-insert", Noop, Edit },
|
||||||
/*!
|
|
||||||
* \var lyx::FuncCode lyx::LFUN_LINE_INSERT
|
|
||||||
* \li Action: Inserts a horizontal line.
|
|
||||||
* \li Syntax: line-insert
|
|
||||||
* \li Origin: Andre, Oct 27 2003
|
|
||||||
* \endvar
|
|
||||||
*/
|
|
||||||
{ LFUN_LINE_INSERT, "line-insert", Noop, Edit },
|
|
||||||
/*!
|
/*!
|
||||||
* \var lyx::FuncCode lyx::LFUN_NEWPAGE_INSERT
|
* \var lyx::FuncCode lyx::LFUN_NEWPAGE_INSERT
|
||||||
* \li Action: Inserts a new page.
|
* \li Action: Inserts a new page.
|
||||||
@ -2317,7 +2309,7 @@ void LyXAction::init()
|
|||||||
* \li Action: Insert new inset (type given by the parameters).
|
* \li Action: Insert new inset (type given by the parameters).
|
||||||
* \li Syntax: inset-insert <INSET> <ARGS>
|
* \li Syntax: inset-insert <INSET> <ARGS>
|
||||||
* \li Params: <INSET>: <bibitem|bibtex|cite|ert|listings|external|graphics|tabular
|
* \li Params: <INSET>: <bibitem|bibtex|cite|ert|listings|external|graphics|tabular
|
||||||
hyperlink|include|index|label|nomencl|vspace|ref|toc>\n
|
hyperlink|include|index|label|nomencl|line|vspace|ref|toc>\n
|
||||||
<ARGS>: depends on the given inset. Use "lyx -dbg action" to explore.
|
<ARGS>: depends on the given inset. Use "lyx -dbg action" to explore.
|
||||||
* \li Sample: inset-insert ref LatexCommand <Format> reference "<label name>"\end_inset \n
|
* \li Sample: inset-insert ref LatexCommand <Format> reference "<label name>"\end_inset \n
|
||||||
where <label name> is the name of the referenced label and
|
where <label name> is the name of the referenced label and
|
||||||
|
@ -1548,22 +1548,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case LFUN_LINE_INSERT: {
|
|
||||||
InsetCommandParams p(LINE_CODE);
|
|
||||||
p["offset"] = from_ascii(".5ex");
|
|
||||||
p["width"] = from_ascii("100col%");
|
|
||||||
p["height"] = from_ascii("1pt");
|
|
||||||
string const data = InsetCommand::params2string("line", p);
|
|
||||||
|
|
||||||
if (cmd.argument().empty()) {
|
|
||||||
bv->showDialog("line", data);
|
|
||||||
} else {
|
|
||||||
FuncRequest fr(LFUN_INSET_INSERT, data);
|
|
||||||
dispatch(cur, fr);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case LFUN_INFO_INSERT: {
|
case LFUN_INFO_INSERT: {
|
||||||
Inset * inset;
|
Inset * inset;
|
||||||
if (cmd.argument().empty() && cur.selection()) {
|
if (cmd.argument().empty() && cur.selection()) {
|
||||||
@ -2377,9 +2361,6 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
case LFUN_LABEL_INSERT:
|
case LFUN_LABEL_INSERT:
|
||||||
code = LABEL_CODE;
|
code = LABEL_CODE;
|
||||||
break;
|
break;
|
||||||
case LFUN_LINE_INSERT:
|
|
||||||
code = LINE_CODE;
|
|
||||||
break;
|
|
||||||
case LFUN_INFO_INSERT:
|
case LFUN_INFO_INSERT:
|
||||||
code = INFO_CODE;
|
code = INFO_CODE;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user