// -*- C++ -*-
/* This file is part of
- * ======================================================
+ * ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-1999 The LyX Team.
+ * Copyright 1995-2000 The LyX Team.
*
* ====================================================== */
#endif
#include <deque>
-using std::deque;
#include "LString.h"
-
/** The latest documents loaded
This class takes care of the last .lyx files used by the LyX user. It
both reads and writes this information to a file. The number of files
kept are user defined, but defaults to four.
*/
-class LastFiles
-{
+class LastFiles {
public:
///
- typedef deque<string> Files;
+ typedef std::deque<string> Files;
+ ///
+ typedef Files::const_iterator const_iterator;
+
/**@name Constructors and Deconstructors */
//@{
/**
Parameters are: name of file to read. Whether LastFiles should
check for file existance, and the number of files to remember.
*/
- LastFiles(string const &, bool dostat = true, unsigned int num = 4);
+ explicit LastFiles(string const &,
+ bool dostat = true, unsigned int num = 4);
//@}
/**@name Methods */