]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex_pimpl.h
* lib/languages:
[lyx.git] / src / lyxlex_pimpl.h
index 55f9e8c596d480e7c8d9cfa69b203271ddb07183..c844fb4c1ca56d4a3baecdd5d44d1032e8250c4d 100644 (file)
@@ -23,11 +23,15 @@ namespace io = boost::iostreams;
 
 #include <boost/utility.hpp>
 
-#include <fstream>
 #include <istream>
 #include <stack>
 #include <vector>
 
+
+namespace lyx {
+
+namespace support { class FileName; }
+
 ///
 class LyXLex::Pimpl : boost::noncopyable {
 public:
@@ -36,7 +40,7 @@ public:
        ///
        std::string const getString() const;
        ///
-       lyx::docstring const getDocString() const;
+       docstring const getDocString() const;
        ///
        void printError(std::string const & message) const;
        ///
@@ -46,7 +50,7 @@ public:
        ///
        void popTable();
        ///
-       bool setFile(std::string const & filename);
+       bool setFile(support::FileName const & filename);
        ///
        void setStream(std::istream & i);
        ///
@@ -78,7 +82,7 @@ public:
        ///
        int no_items;
        ///
-       std::vector<char> buff;
+       std::string buff;
        ///
        int status;
        ///
@@ -107,4 +111,7 @@ private:
        ///
        std::stack<pushed_table> pushed;
 };
+
+} // namespace lyx
+
 #endif