]> git.lyx.org Git - lyx.git/blobdiff - src/LyXFunc.h
* docstream: factorize out some code and introduce odocfstream::reset()
[lyx.git] / src / LyXFunc.h
index 35f29388b6dd3afd64b27aa9243f689f9cf819d7..bb5cab78ace1df3dd49e80856ad8cf98617400de 100644 (file)
@@ -17,7 +17,7 @@
 
 #include "KeySequence.h"
 #include "lfuns.h"
-#include "TextClass.h"
+#include "TextClassPtr.h"
 
 #include "support/docstring.h"
 
@@ -30,6 +30,10 @@ class FuncStatus;
 class KeySymbol;
 class Text;
 
+namespace support {
+class FileName;
+}
+
 namespace frontend {
 class LyXView;
 }
@@ -83,6 +87,10 @@ public:
        ///             not the current buffer
        void gotoBookmark(unsigned int idx, bool openFile, bool switchToBuffer);
 
+       /// load a buffer into the current workarea.
+       Buffer * loadAndViewFile(support::FileName const &  name, ///< File to load.
+               bool tolastfiles = true);  ///< append to the "Open recent" menu?
+
 private:
        ///
        BufferView * view() const;