if (!buffer_)
return false;
+ lyxerr[Debug::WORKAREA] << "BufferView::update" << std::endl;
+
// Update macro store
buffer_->buildMacros();
lyxerr << "\" has point " << p.x_ << "," << p.y_ << std::endl;
}
}
+
+ lyxerr << "InsetCache contains:" << std::endl;
+ for (CoordCacheBase<InsetBase>::cache_type::const_iterator i = getInsets().getData().begin(); i != getInsets().getData().end(); ++i) {
+ InsetBase const * inset = (*i).first;
+ Point p = (*i).second;
+ lyxerr << "Inset " << inset << "(" << inset->getInsetName() << ") has point " << p.x_ << "," << p.y_ << std::endl;
+ }
}
} // namespace lyx
typedef std::map<T const *, Point> cache_type;
cache_type data_;
+
+public:
+ cache_type const & getData() const { return data_; }
};
/**
void LyXView::redrawWorkArea()
{
+ lyxerr[Debug::WORKAREA] << "redrawWorkArea" << std::endl;
work_area_->redraw();
updateStatusBar();
}
greyed_out_ = false;
getPainter().start();
paintText(*buffer_view_, vi, getPainter());
- lyxerr[Debug::DEBUG] << "Redraw screen" << endl;
+ lyxerr[Debug::WORKAREA] << "WorkArea::redraw screen" << endl;
int const ymin = std::max(vi.y1, 0);
int const ymax =
( vi.p2 < vi.size - 1 ? vi.y2 : height() );
void InsetText::doDispatch(LCursor & cur, FuncRequest & cmd)
{
- lyxerr[Debug::DEBUG] << BOOST_CURRENT_FUNCTION
+ lyxerr[Debug::ACTION] << BOOST_CURRENT_FUNCTION
<< " [ cmd.action = "
<< cmd.action << ']' << endl;
setViewCache(&cur.bv());
// sets cursor recursively descending into nested editable insets
InsetBase * LyXText::editXY(LCursor & cur, int x, int y)
{
+ if (lyxerr.debugging(Debug::WORKAREA)) {
+ bv()->coordCache().dump();
+ }
pit_type pit = getPitNearY(y);
BOOST_ASSERT(pit != -1);
Row const & row = getRowNearY(y, pit);