#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;
///
-bool MenuWrite(Buffer * buffer);
+bool menuWrite(Buffer * buffer);
/// 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);
+bool writeAs(Buffer * buffer, std::string const & filename = std::string());
///
-void NewFile(BufferView * bv, std::string const & filename);
+void autoSave(BufferView * bv);
///
-void InsertAsciiFile(BufferView * bv, std::string const & f, bool asParagraph);
+void newFile(BufferView * bv, std::string const & filename);
///
-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