]> git.lyx.org Git - lyx.git/blobdiff - src/LyXFunc.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / LyXFunc.cpp
index cc213313e61198926aff2a835591644bb783908b..6a619200e28f9ad6a9f5acd461eae7a59eac991e 100644 (file)
@@ -142,7 +142,7 @@ void LyXFunc::gotoBookmark(unsigned int idx, bool openFile, bool switchToBuffer)
        int new_id = cur.paragraph().id();
 
        // if bottom_pit, bottom_pos or top_id has been changed, update bookmark
-       // see http://bugzilla.lyx.org/show_bug.cgi?id=3092
+       // see http://www.lyx.org/trac/ticket/3092
        if (bm.bottom_pit != new_pit || bm.bottom_pos != new_pos 
                || bm.top_id != new_id) {
                const_cast<BookmarksSection::Bookmark &>(bm).updatePos(
@@ -247,6 +247,7 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
        case LFUN_REPEAT:
        case LFUN_PREFERENCES_SAVE:
        case LFUN_BUFFER_SAVE_AS_DEFAULT:
+       case LFUN_DEBUG_LEVEL_SET:
                // these are handled in our dispatch()
                break;
 
@@ -487,6 +488,10 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                        theSession().bookmarks().clear();
                        break;
 
+               case LFUN_DEBUG_LEVEL_SET:
+                       lyxerr.setLevel(Debug::value(to_utf8(cmd.argument())));
+                       break;
+
                default:
                        DispatchResult dr;
 
@@ -541,20 +546,6 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                                }
                        }
 
-                       // Is this a function that acts on inset at point?
-                       Inset * inset = bv->cursor().nextInset();
-                       if (lyxaction.funcHasFlag(action, LyXAction::AtPoint)
-                           && inset) {
-                               bv->cursor().result().dispatched(true);
-                               bv->cursor().result().update(Update::FitCursor | Update::Force);
-                               FuncRequest tmpcmd = cmd;
-                               inset->dispatch(bv->cursor(), tmpcmd);
-                               if (bv->cursor().result().dispatched()) {
-                                       updateFlags = bv->cursor().result().update();
-                                       break;
-                               }
-                       }
-
                        // Let the current Cursor dispatch its own actions.
                        Cursor old = bv->cursor();
                        bv->cursor().getPos(cursorPosBeforeDispatchX_,
@@ -592,7 +583,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                        && flag.enabled()
                    && !lyxaction.funcHasFlag(action, LyXAction::NoBuffer)
                    && !lyxaction.funcHasFlag(action, LyXAction::ReadOnly))
-                       doc_buffer->markDirty();                        
+                       lv->currentBufferView()->buffer().markDirty();                  
 
                if (lv && lv->currentBufferView()) {
                        // BufferView::update() updates the ViewMetricsInfo and