]> git.lyx.org Git - features.git/commitdiff
disable a few messages
authorAndré Pönitz <poenitz@gmx.net>
Fri, 6 Feb 2004 09:34:04 +0000 (09:34 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 6 Feb 2004 09:34:04 +0000 (09:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8406 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView_pimpl.C
src/cursor.C
src/insets/insetcollapsable.C
src/insets/insetert.C
src/lyxfunc.C
src/rowpainter.C

index dee7f7df354ac7192799b9a929cc46956ef85c44..4cc52947650437ec4fde7c09c294fe544c98422a 100644 (file)
@@ -888,7 +888,7 @@ bool BufferView::Pimpl::workAreaDispatch(FuncRequest const & cmd0)
        //
        FuncRequest cmd = cmd0;
        cmd.y += bv_->top_y();
-       lyxerr << "*** workAreaDispatch: request: " << cmd << std::endl;
+       //lyxerr << "*** workAreaDispatch: request: " << cmd << std::endl;
        LCursor cur(*bv_);
        switch (cmd.action) {
 #if 0
@@ -967,8 +967,7 @@ bool BufferView::Pimpl::workAreaDispatch(FuncRequest const & cmd0)
        }
 
        default:
-               lyxerr << "*** UNDISPATCHED: " << cmd;
-               //owner_->dispatch(cmd);
+               BOOST_ASSERT(false);
        }
        return true;
 }
index 02c83938ac1f3265b25249fb4d2bf1e4df1b80ab..2151f6be1273414ecd244ad02f5f2d836d5d6f7e 100644 (file)
@@ -77,7 +77,7 @@ void LCursor::reset()
 
 DispatchResult LCursor::dispatch(FuncRequest const & cmd0)
 {
-       //lyxerr << "\nLCursor::dispatch: cmd: " << cmd0 << endl << *this << endl;
+       lyxerr << "\nLCursor::dispatch: cmd: " << cmd0 << endl << *this << endl;
        FuncRequest cmd = cmd0;
        for (current_ = cursor_.size() - 1; current_ >= 1; --current_) {
                lyxerr << "trying to dispatch to inset " << inset() << endl;
@@ -108,8 +108,8 @@ DispatchResult LCursor::dispatch(FuncRequest const & cmd0)
                }
        }
        BOOST_ASSERT(current_ == 0);
-       lyxerr << "trying to dispatch to main text " << bv_->text()
-               << " with cursor: " << *this << endl;
+       //lyxerr << "trying to dispatch to main text " << bv_->text()
+       //      << " with cursor: " << *this << endl;
        DispatchResult res = bv_->text()->dispatch(*this, cmd);
        //lyxerr << "   result: " << res.val() << endl;
        return res;
index cbea996dcb6792301c377dba04e046929de3d8fe..8a285b8e8e5efcd7efd2aa85e15d5d4c26a0e834 100644 (file)
@@ -317,8 +317,8 @@ void InsetCollapsable::edit(LCursor & cur, int x, int y)
 DispatchResult
 InsetCollapsable::priv_dispatch(LCursor & cur, FuncRequest const & cmd)
 {
-       lyxerr << "\nInsetCollapsable::priv_dispatch (begin): cmd: " << cmd
-               << "  button y: " << button_dim.y2 << endl;
+       //lyxerr << "\nInsetCollapsable::priv_dispatch (begin): cmd: " << cmd
+       //      << "  button y: " << button_dim.y2 << endl;
        switch (cmd.action) {
                case LFUN_MOUSE_PRESS:
                        if (status_ == Inlined)
index 73d067ec5a037aeed214dd8f96c638c6f9adbc1e..4893e5a2a3400766e519e5748b1b9c7bab915b2f 100644 (file)
@@ -210,7 +210,7 @@ int InsetERT::docbook(Buffer const &, ostream & os,
 
 DispatchResult InsetERT::priv_dispatch(LCursor & cur, FuncRequest const & cmd)
 {
-       lyxerr << "\nInsetERT::priv_dispatch (begin): cmd: " << cmd << endl;
+       //lyxerr << "\nInsetERT::priv_dispatch (begin): cmd: " << cmd << endl;
        switch (cmd.action) {
 
        case LFUN_INSET_MODIFY: {
index eee8bb805e99b32a84bb66e41fb365caf3489c8c..fe8805541de4e619ee672980edc0083f3c1ad4fc 100644 (file)
@@ -246,10 +246,7 @@ void LyXFunc::processKeySym(LyXKeySymPtr keysym, key_modifier::state state)
 
        if (func.action == LFUN_SELFINSERT) {
                if (encoded_last_key != 0) {
-                       string arg;
-                       arg += encoded_last_key;
-                       lyxerr << "SelfInsert arg[`"
-                                  << arg << "']" << endl;
+                       string arg(1, encoded_last_key);
                        dispatch(FuncRequest(LFUN_SELFINSERT, arg));
                        lyxerr[Debug::KEY]
                                << "SelfInsert arg[`" << arg << "']" << endl;
index d9f8001afe9fafab5aa5e37ccfa45a5f6e74732f..cea4f0de899ef0f3c94277738b5182ff6abea857 100644 (file)
@@ -890,7 +890,7 @@ int paintText(BufferView const & bv)
        ParagraphList::iterator pit;
        bv.text()->updateParPositions();
        bv.text()->getRowNearY(0, pit);
-       lyxerr << "top_y: " << bv.top_y() << " y: " << pit->y << endl;
+       //lyxerr << "top_y: " << bv.top_y() << " y: " << pit->y << endl;
        return paintPars(bv, *bv.text(), pit, 0, 0, pit->y);
 }