]> git.lyx.org Git - lyx.git/commitdiff
next try, part I
authorAndré Pönitz <poenitz@gmx.net>
Thu, 3 Jan 2002 18:37:18 +0000 (18:37 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 3 Jan 2002 18:37:18 +0000 (18:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3291 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/FormMathsPanel.C
src/mathed/BUGS
src/mathed/formulabase.C

index bb9a3f135693efaa1c5dd681ab6bc3a0056eb66c..8d3af6cdf0c5ae7ecae82ebed222fe6dbc9c9703 100644 (file)
@@ -231,10 +231,12 @@ bool FormMathsPanel::input(FL_OBJECT *, long data)
                break;
 
        case MM_SUPER:
+               lv_->getLyXFunc()->dispatch(LFUN_MATH_MODE);
                lv_->getLyXFunc()->dispatch(LFUN_SUPERSCRIPT);
                break;
 
        case MM_SUB:
+               lv_->getLyXFunc()->dispatch(LFUN_MATH_MODE);
                lv_->getLyXFunc()->dispatch(LFUN_SUBSCRIPT);
                break;
 
index dd47d7953f5e54155441f638dacea466a9bfd0b2..f24207b8e7ebfc99b2f80d95fb22d1d5d0367f9e 100644 (file)
@@ -53,9 +53,6 @@ Eran Tromer:
 
 Rainer Dorsch:
 
-- Entering \mathbf{c} in math mode is displayed as written (without
-  backslash)
-
 - I know the latex code of a lot of math symbols displayed by lyx,
   but not all of them. Thus I have to use the math panel for only a single
   symbol in a formula. I think it would be very useful, if the latex code
index 5c275b1ddfb24148db2c7ceb39d777704416aa84..3eb3d1eceaf844de197abaab9b065e532e11d59d 100644 (file)
@@ -519,6 +519,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
        case LFUN_CODE:         handleFont(bv, LM_TC_TT); break;
        case LFUN_NOUN:         handleFont(bv, LM_TC_BB); break;
        case LFUN_DEFAULT:      handleFont(bv, LM_TC_VAR); break;
+       case LFUN_FREE:         handleFont(bv, LM_TC_TEXTRM); break;
 
        case LFUN_GREEK: 
                handleFont(bv, LM_TC_GREEK1);
@@ -528,8 +529,10 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
 
        case LFUN_MATH_MODE:
                //handleFont(bv, LM_TC_TEXTRM);
-               mathcursor->niceInsert(MathAtom(new MathHullInset(LM_OT_SIMPLE)));
-               updateLocal(bv, true);
+
+               //mathcursor->niceInsert(MathAtom(new MathHullInset(LM_OT_SIMPLE)));
+               //updateLocal(bv, true);
+
                //bv->owner()->message(_("math text mode toggled"));
                break;