]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex_pimpl.h
Updates from Bennett and myself.
[lyx.git] / src / lyxlex_pimpl.h
index 1a9a06c89c8f047fd74ff9533157846c06437c65..eb282ef15f5f80278379627137370f9e62049d13 100644 (file)
@@ -14,6 +14,8 @@
 
 #include "lyxlex.h"
 
+#include "support/types.h"
+
 # include <boost/iostreams/filtering_streambuf.hpp>
 # include <boost/iostreams/filter/gzip.hpp>
 # include <boost/iostreams/device/file.hpp>
@@ -26,6 +28,11 @@ namespace io = boost::iostreams;
 #include <stack>
 #include <vector>
 
+
+namespace lyx {
+
+namespace support { class FileName; }
+
 ///
 class LyXLex::Pimpl : boost::noncopyable {
 public:
@@ -34,6 +41,8 @@ public:
        ///
        std::string const getString() const;
        ///
+       docstring const getDocString() const;
+       ///
        void printError(std::string const & message) const;
        ///
        void printTable(std::ostream & os);
@@ -42,7 +51,7 @@ public:
        ///
        void popTable();
        ///
-       bool setFile(std::string const & filename);
+       bool setFile(support::FileName const & filename);
        ///
        void setStream(std::istream & i);
        ///
@@ -74,7 +83,7 @@ public:
        ///
        int no_items;
        ///
-       std::vector<char> buff;
+       std::string buff;
        ///
        int status;
        ///
@@ -103,4 +112,7 @@ private:
        ///
        std::stack<pushed_table> pushed;
 };
+
+} // namespace lyx
+
 #endif