#include "insetinclude.h"
#include "buffer.h"
#include "bufferlist.h"
-#include "error.h"
+#include "debug.h"
#include "support/filetools.h"
#include "lyxrc.h"
#include "LyXView.h"
Buffer *tmp = bufferlist.getBuffer(getFileName());
if (tmp->params.textclass != master->params.textclass) {
- lyxerr.print("ERROR: Cannot handle include file `"
- + MakeDisplayPath(getFileName())
- + "' which has textclass `"
- + lyxstyle.NameOfClass(tmp->params.textclass)
- + "' instead of `"
- + lyxstyle.NameOfClass(master->params.textclass)
- + "'.");
+ lyxerr << "ERROR: Cannot handle include file `"
+ << MakeDisplayPath(getFileName())
+ << "' which has textclass `"
+ << lyxstyle.NameOfClass(tmp->params.textclass)
+ << "' instead of `"
+ << lyxstyle.NameOfClass(master->params.textclass)
+ << "'." << endl;
return 0;
}
} else
writefile = getFileName();
writefile = ChangeExtension(writefile,".tex",false);
- lyxerr.debug("incfile:" + incfile, Error::LATEX);
- lyxerr.debug("writefile:" + writefile, Error::LATEX);
+ lyxerr[Debug::LATEX] << "incfile:" << incfile << endl;
+ lyxerr[Debug::LATEX] << "writefile:" << writefile << endl;
tmp->markDepClean(master->tmppath);