#include "frontends/alert.h"
#include "support/filetools.h"
+#include "support/lstrings.h"
#include "support/Package.h"
#include <boost/bind.hpp>
BOOST_ASSERT(buf);
docstring file;
+
+ // FIXME: Unicode?
if (buf->isUnnamed())
- file = from_utf8(onlyFilename(buf->absFileName()));
+ file = from_utf8(buf->fileName().onlyFileName());
else
- file = makeDisplayPath(buf->absFileName(), 30);
+ file = buf->fileName().displayName(30);
docstring const text =
bformat(_("The document %1$s has unsaved changes.\n\n"
{
auto_ptr<Buffer> tmpbuf(new Buffer(s, ronly));
tmpbuf->params().useClassDefaults();
- LYXERR(Debug::INFO) << "Assigning to buffer "
- << bstore.size() << endl;
+ LYXERR(Debug::INFO, "Assigning to buffer " << bstore.size());
bstore.push_back(tmpbuf.get());
return tmpbuf.release();
}