#include "math_support.h"
#include "math_mathmlstream.h"
#include "textpainter.h"
-#include "preview.h"
#include <fstream>
#include <boost/bind.hpp>
// is this old data?
if (it != theCache.end()) {
// we have already a loader, connect to it anyway
- lyxerr << "### updatePreview(), old loader: " << loader_ << "\n";
+ //lyxerr << "### updatePreview(), old loader: " << loader_ << "\n";
loader_ = it->second.get();
loader_->statusChanged.connect
(boost::bind(&InsetFormula::statusChanged, this));
string file = os.str();
// the real work starts
- lyxerr << "### updatePreview(), new file " << file << "\n";
+ //lyxerr << "### updatePreview(), new file " << file << "\n";
std::ofstream of(file.c_str());
of << "\\batchmode"
<< "\\documentclass{article}"
// now we are done, start actual loading we will get called back via
// InsetFormula::statusChanged() if this is finished
- lyxerr << "### updatePreview(), new loader: " << loader_ << "\n";
theCache[data].reset(new grfx::Loader(file));
+ //lyxerr << "### updatePreview(), new loader: " << loader_ << "\n";
loader_ = theCache.find(data)->second.get();
loader_->startLoading();
loader_->statusChanged.connect(boost::bind(&InsetFormula::statusChanged, this));