- lyxerr << "ParPosCache contains:" << std::endl;
- for (ParPosCache::const_iterator it = getParPos().begin(); it != getParPos().end(); ++it) {
- Text const * lt = it->first;
- InnerParPosCache const & cache = it->second;
- lyxerr << "Text:" << lt << std::endl;
- for (InnerParPosCache::const_iterator jt = cache.begin(); jt != cache.end(); ++jt) {
- pit_type pit = jt->first;
- Paragraph const & par = lt->getPar(pit);
- Point p = jt->second;
- lyxerr << "Paragraph " << pit << ": \"";
- int const n = std::min(static_cast<lyx::pos_type>(10), par.size());
- for (int k = 0; k < n; ++k)
- lyxerr << to_utf8(docstring(1, par.getChar(k)));
- lyxerr << "\" has point " << p.x_ << "," << p.y_ << std::endl;
- }