* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
*
* Full author contact details are available in file CREDITS.
*/
namespace support {
class FileName;
+class FileNameList;
}
/**
public:
BufferList();
+ ~BufferList();
iterator begin();
const_iterator begin() const;
void closeAll();
/// returns a vector with all the buffers filenames
- std::vector<std::string> const getFileNames() const;
+ support::FileNameList const & fileNames() const;
/// FIXME
void updateIncludedTeXfiles(std::string const &, OutputParams const &);
/// emergency save for all buffers
void emergencyWriteAll();
- /// save emergency file for the given buffer
- /**
- * \return a status message towards the user.
- */
- docstring emergencyWrite(Buffer * buf);
-
/// return true if no buffers loaded
bool empty() const;
bool isLoaded(Buffer const * b) const;
/// return index of named buffer in buffer list
- int bufferNum(std::string const & name) const;
+ int bufferNum(support::FileName const & name) const;
/// returns a pointer to the buffer with the given name.
Buffer * getBuffer(support::FileName const &) const;
/// returns a pointer to the buffer with the given number.
/// storage of all buffers
BufferStorage bstore;
+ /// storage of all internal buffers used for cut&paste, etc.
+ BufferStorage binternal;
};
/// Implementation is in LyX.cpp