]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formulabase.C
fix build, thesaurus
[lyx.git] / src / mathed / formulabase.C
index 3eb3d1eceaf844de197abaab9b065e532e11d59d..d26933e0e556ebfa27aa0bd8ad10cbf94406a025 100644 (file)
@@ -368,7 +368,6 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
        hideInsetCursor(bv);
 
        mathcursor->normalize();
-
        switch (action) {
 
                // --- Cursor Movements ---------------------------------------------
@@ -379,6 +378,8 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
        case LFUN_RIGHT:
                result = mathcursor->right(sel) ? DISPATCHED : FINISHED_RIGHT;
                updateLocal(bv, false);
+               // write something to the minibuffer
+               //bv->owner()->message(mathcursor->info());
                break;
 
 
@@ -509,6 +510,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,6 +519,8 @@ 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;
@@ -724,7 +728,7 @@ int InsetFormulaBase::xhigh() const
 
 
 bool InsetFormulaBase::searchForward(BufferView * bv, string const & str,
-                   bool const &, bool const &)
+                                    bool, bool)
 {
 #ifdef WITH_WARNINGS
 #warning pretty ugly
@@ -771,7 +775,7 @@ bool InsetFormulaBase::searchForward(BufferView * bv, string const & str,
 
 
 bool InsetFormulaBase::searchBackward(BufferView * bv, string const & what,
-                    bool const & a, bool const & b)
+                                     bool a, bool b)
 {
        lyxerr << "searching backward not implemented in mathed" << endl;
        return searchForward(bv, what, a, b);