Issue the math space dialog (not the text one) when in math (bug 7746).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39536 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2011-08-27 10:45:59 +00:00
parent 1bc43396fe
commit 6a3ff009db
3 changed files with 14 additions and 1 deletions

View File

@ -395,7 +395,7 @@ Menuset
Item "Interword Space|w" "space-insert normal"
Item "Visible Space|i" "space-insert visible"
Item "Thin Space|T" "space-insert thin"
Item "Horizontal Space...|o" "dialog-show-new-inset space"
Item "Horizontal Space...|o" "command-alternatives dialog-show-new-inset space;dialog-show-new-inset mathspace"
Item "Horizontal Line...|L" "dialog-show-new-inset line"
Item "Vertical Space...|V" "dialog-show-new-inset vspace"
Submenu "Phantom|m" "insert_phantom"

View File

@ -332,6 +332,11 @@ bool decodeInsetParam(string const & name, string & data,
data = InsetGraphics::params2string(p, buffer);
break;
}
case MATH_SPACE_CODE: {
InsetSpaceParams p(true);
data = InsetSpace::params2string(p);
break;
}
case NOTE_CODE: {
InsetNoteParams p;
data = InsetNote::params2string(p);

View File

@ -1390,6 +1390,14 @@ bool InsetMathNest::getStatus(Cursor & cur, FuncRequest const & cmd,
break;
}
case LFUN_DIALOG_SHOW_NEW_INSET: {
docstring const & name = cmd.argument();
if (name == "space")
flag.setEnabled(false);
break;
}
case LFUN_MATH_DELIM:
case LFUN_MATH_BIGDELIM:
// Don't do this with multi-cell selections