#ifndef LYX_CB_H
#define LYX_CB_H
-#include <string>
+#include "support/docstring.h"
+
+namespace lyx {
class Buffer;
class BufferView;
+class LyXView;
///
extern bool quitting;
/// write the given file, or ask if no name given
bool writeAs(Buffer * buffer, std::string const & filename = std::string());
///
-void quitLyX(bool noask);
-///
void autoSave(BufferView * bv);
///
void newFile(BufferView * bv, std::string const & filename);
///
-void insertAsciiFile(BufferView * bv, std::string const & f, bool asParagraph);
-///
-std::string getContentsOfAsciiFile(BufferView * bv, std::string const & f, bool asParagraph);
+void insertPlaintextFile(BufferView * bv, std::string const & f, bool asParagraph);
+/// read plain text file (if \p f is empty, prompt for a filename)
+docstring const getContentsOfPlaintextFile(BufferView * bv,
+ std::string const & f, bool asParagraph);
///
-void reconfigure(BufferView * bv);
+void reconfigure(LyXView & lv);
+
+} // namespace lyx
+
#endif