]> git.lyx.org Git - features.git/commitdiff
Issue the math space dialog (not the text one) when in math (bug 7746).
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 27 Aug 2011 10:45:59 +0000 (10:45 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 27 Aug 2011 10:45:59 +0000 (10:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39536 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ui/stdmenus.inc
src/insets/InsetCommand.cpp
src/mathed/InsetMathNest.cpp

index 699573bb02117667fc75237abc6d13a8f09e3883..309ed1a6281ccf8a378960802867b426d9ba4b65 100644 (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"
index fd86d03989a9047c038479fb177df6469c2fa295..92eb1a84fce8c81733457502364a57468d0a11ff 100644 (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);
index 9dd01cca0c66562c8516596f58f5d29858ab05a2..0ec27507a4fc06beac765144e5148a6772f02c69 100644 (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