]> 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 da520d82b1edc0ae6c1fb08c97c7c9d2c561925f..f320a1ffe0de7e5a851072d1326923fe36c5b58a 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef LYX_CB_H
 #define LYX_CB_H
 
-#include <string>
+#include "support/docstring.h"
 
 namespace lyx {
 
@@ -32,9 +32,10 @@ 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(LyXView & lv);