using std::find;
using std::ostream_iterator;
-namespace lyx{
-
namespace {
string const sec_lastfiles = "[recent files]";
} // anon namespace
+namespace lyx {
+
Session::Session(unsigned int num) :
default_num_last_files(4),
absolute_max_last_files(100),
} else if (section == id_lastfilepos) {
// read lastfilepos
// pos, file\n
- lyx::pit_type pit;
- lyx::pos_type pos;
+ pit_type pit;
+ pos_type pos;
string fname;
istringstream itmp(tmp);
itmp >> pit;
// bookmarkid, id, pos, file\n
unsigned int num;
unsigned int id;
- lyx::pos_type pos;
+ pos_type pos;
string fname;
istringstream itmp(tmp);
itmp >> num;
}
-void Session::setLastOpenedFiles(vector<string> const & files)
+void Session::addLastOpenedFile(string const & file)
{
- lastopened = files;
+ lastopened.push_back(file);
}