]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formulabase.C
enable direct input of #1...#9; some whitespace changes
[lyx.git] / src / mathed / formulabase.C
index 26a4f1b526488754d961ccaf5ebd96c113e39377..13e92157c053988393acd3033b7fcbdf1d93492c 100644 (file)
@@ -280,8 +280,8 @@ void InsetFormulaBase::insetButtonPress(BufferView * bv,
                return;
        }
 
-       //lyxerr << "insetButtonPress: " << x + xo_ << " " << y + yo_
-       //      << " but: " << button << "\n";
+       lyxerr << "insetButtonPress: " << x + xo_ << " " << y + yo_
+               << " but: " << button << "\n";
        switch (button) {
                default:
                case 1:
@@ -368,7 +368,6 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
        hideInsetCursor(bv);
 
        mathcursor->normalize();
-
        switch (action) {
 
                // --- Cursor Movements ---------------------------------------------
@@ -509,6 +508,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
        case LFUN_CARON:        handleAccent(bv, "check"); break;
        case LFUN_BREVE:        handleAccent(bv, "breve"); break;
        case LFUN_VECTOR:       handleAccent(bv, "vec"); break;
+       case LFUN_UNDERBAR:     handleAccent(bv, "underbar"); break;
 
        //  Math fonts
        case LFUN_GREEK_TOGGLE: handleFont(bv, LM_TC_GREEK); break;
@@ -517,8 +517,11 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
        case LFUN_EMPH:         handleFont(bv, LM_TC_CAL); break;
        case LFUN_ROMAN:        handleFont(bv, LM_TC_RM); break;
        case LFUN_CODE:         handleFont(bv, LM_TC_TT); break;
+       case LFUN_FRAK:         handleFont(bv, LM_TC_EUFRAK); break;
+       case LFUN_ITAL:         handleFont(bv, LM_TC_IT); 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 +531,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;