//
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
}
default:
- lyxerr << "*** UNDISPATCHED: " << cmd;
- //owner_->dispatch(cmd);
+ BOOST_ASSERT(false);
}
return true;
}
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;
}
}
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;
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)
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: {
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;
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);
}