#include "bufferlist.h"
+#include "author.h"
#include "buffer.h"
+#include "bufferparams.h"
#include "debug.h"
#include "gettext.h"
#include "lastfiles.h"
#include "frontends/Alert.h"
#include "support/filetools.h"
-#include "support/LAssert.h"
#include "support/lyxfunctional.h"
#include <boost/bind.hpp>
-using namespace lyx::support;
+using lyx::support::AddName;
+using lyx::support::bformat;
+using lyx::support::GetEnvPath;
+using lyx::support::MakeAbsPath;
+using lyx::support::MakeDisplayPath;
+using lyx::support::OnlyFilename;
+using lyx::support::removeAutosaveFile;
using std::endl;
using std::find;
using std::find_if;
using std::for_each;
-
+using std::string;
using std::vector;
void BufferList::release(Buffer * buf)
{
- Assert(buf);
+ BOOST_ASSERT(buf);
BufferStorage::iterator it = find(bstore.begin(), bstore.end(), buf);
if (it != bstore.end()) {
// Make sure that we don't store a LyXText in
bool BufferList::close(Buffer * buf, bool ask)
{
- Assert(buf);
+ BOOST_ASSERT(buf);
// FIXME: is the quitting check still necessary ?
if (!ask || buf->isClean() || quitting || buf->paragraphs().empty()) {
bool BufferList::isLoaded(Buffer const * b) const
{
- Assert(b);
-
+ BOOST_ASSERT(b);
BufferStorage::const_iterator cit =
find(bstore.begin(), bstore.end(), b);
return cit != bstore.end();
BufferStorage::iterator it = bstore.begin();
BufferStorage::iterator end = bstore.end();
for (; it != end; ++it) {
- (*it)->authors().record(0, Author(name, email));
+ (*it)->params().authors().record(0, Author(name, email));
}
}