]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_cb.h
Restore the version number position on the splash screen
[lyx.git] / src / lyx_cb.h
index 67bc2bddd82c954dc8404e6cdb3718bd806bf701..f320a1ffe0de7e5a851072d1326923fe36c5b58a 100644 (file)
 #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();
-///
-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