#include "buffer.h"
#include "bufferlist.h"
+using std::ostream;
using std::for_each;
using std::remove_if;
using std::find_if;
+using std::endl;
extern BufferList bufferlist;
text_fits(Buffer * b, unsigned short p)
: buf(b), pw(p) {}
bool operator()(TextCache::value_type & vt) {
- if (vt->params == buf && vt->paperWidth() == pw) return true;
+ if (vt->buffer == buf && vt->paperWidth() == pw) return true;
return false;
}
private:
public:
show_text(ostream & o) : os(o) {}
void operator()(TextCache::value_type & vt) {
- os << "\tBuffer: " << vt->params
+ os << "\tBuffer: " << vt->buffer
<< "\tWidth: " << vt->paperWidth() << endl;
}
private:
void TextCache::add(LyXText * text)
{
lyxerr.debug() << "TextCache::add " << text;
- if (bufferlist.isLoaded(text->params)) {
+ if (bufferlist.isLoaded(text->buffer)) {
cache.push_back(text);
lyxerr.debug() << " added" << endl;
} else {
has_buffer(Buffer * b)
: buf(b) {}
bool operator()(TextCache::value_type & vt) {
- if (vt->params == buf) return true;
+ if (vt->buffer == buf) return true;
return false;
}
private: