]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_cb.h
add GuiView parent to QToc for proper memory management.
[lyx.git] / src / lyx_cb.h
index a9bdde8161d77ea606ba430d659274f0a3a144c5..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;
@@ -29,9 +32,13 @@ 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