flag.setEnabled(! this->cursor().inRegexped());
break;
- case LFUN_COPY_LABEL_AS_REF: {
+ case LFUN_LABEL_COPY_AS_REF: {
// if there is an inset at cursor, see whether it
// handles the lfun
Inset * inset = cur.nextInset();
buffer_.params().compressed = !buffer_.params().compressed;
break;
- case LFUN_COPY_LABEL_AS_REF: {
+ case LFUN_LABEL_COPY_AS_REF: {
// if there is an inset at cursor, try to copy it
Inset * inset = &cur.inset();
if (!inset || !inset->asInsetMath())
LFUN_REGEXP_MODE, // Tommaso, 20081003
LFUN_VC_COMMAND,
// 320
- LFUN_COPY_LABEL_AS_REF, // sts, 20081116
- LFUN_INSERT_LABEL_AS_REF, // vfr, 20090407
+ LFUN_LABEL_COPY_AS_REF, // sts, 20081116
+ LFUN_LABEL_INSERT_AS_REF, // vfr, 20090407
LFUN_PHANTOM_INSERT, // uwestoehr, 20090130
LFUN_INSET_BEGIN, // JMarc, 20090316
LFUN_INSET_END, // JMarc, 20090316
{ LFUN_BRANCH_DEACTIVATE, "branch-deactivate", AtPoint, Buffer },
/*!
- * \var lyx::FuncCode lyx::LFUN_COPY_LABEL_AS_REF
+ * \var lyx::FuncCode lyx::LFUN_LABEL_COPY_AS_REF
* \li Action: Copies the label at the cursor as a cross-reference to be pasted elsewhere.
* \li Syntax: copy-label-as-reference
* \li Origin: sts, 16 Nov 2008
* \endvar
*/
- { LFUN_COPY_LABEL_AS_REF, "copy-label-as-reference", ReadOnly | NoUpdate, Edit },
+ { LFUN_LABEL_COPY_AS_REF, "copy-label-as-reference", ReadOnly | NoUpdate, Edit },
/*!
- * \var lyx::FuncCode lyx::LFUN_INSERT_LABEL_AS_REF
+ * \var lyx::FuncCode lyx::LFUN_LABEL_INSERT_AS_REF
* \li Action: Inserts the label as a cross-reference at the position of the cursor.
* \li Syntax: insert-label-as-reference
* \li Origin: vfr, 7 Apr 2009
* \endvar
*/
- { LFUN_INSERT_LABEL_AS_REF, "insert-label-as-reference", Noop, Edit},
+ { LFUN_LABEL_INSERT_AS_REF, "insert-label-as-reference", Noop, Edit},
/*!
* \var lyx::FuncCode lyx::LFUN_BUFFER_ZOOM_IN
{
bool enabled;
switch (cmd.action) {
- case LFUN_INSERT_LABEL_AS_REF:
- case LFUN_COPY_LABEL_AS_REF:
+ case LFUN_LABEL_INSERT_AS_REF:
+ case LFUN_LABEL_COPY_AS_REF:
enabled = true;
break;
default:
break;
}
- case LFUN_COPY_LABEL_AS_REF: {
+ case LFUN_LABEL_COPY_AS_REF: {
InsetCommandParams p(REF_CODE, "ref");
p["reference"] = getParam("name");
cap::clearSelection();
break;
}
- case LFUN_INSERT_LABEL_AS_REF: {
+ case LFUN_LABEL_INSERT_AS_REF: {
InsetCommandParams p(REF_CODE, "ref");
p["reference"] = getParam("name");
string const data = InsetCommand::params2string("ref", p);
break;
}
- case LFUN_COPY_LABEL_AS_REF: {
+ case LFUN_LABEL_COPY_AS_REF: {
row_type const row = (type_ == hullMultline) ? nrows() - 1 : cur.row();
InsetCommandParams p(REF_CODE, "ref");
p["reference"] = label(row);
status.setEnabled(type_ != hullSimple);
return true;
- case LFUN_COPY_LABEL_AS_REF: {
+ case LFUN_LABEL_COPY_AS_REF: {
row_type const row = (type_ == hullMultline) ? nrows() - 1 : cur.row();
status.setEnabled(numberedType() && label_[row] && !nonum_[row]);
return true;