]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex_pimpl.h
minimal effort implementation of:
[lyx.git] / src / lyxlex_pimpl.h
index 681c0a746ff82ce9d43d7f459a86019527fa0bc4..55f9e8c596d480e7c8d9cfa69b203271ddb07183 100644 (file)
 
 #include "lyxlex.h"
 
-#include "support/gzstream.h"
+#include "support/types.h"
+
+# include <boost/iostreams/filtering_streambuf.hpp>
+# include <boost/iostreams/filter/gzip.hpp>
+# include <boost/iostreams/device/file.hpp>
+namespace io = boost::iostreams;
 
 #include <boost/utility.hpp>
 
+#include <fstream>
+#include <istream>
 #include <stack>
 #include <vector>
 
@@ -29,6 +36,8 @@ public:
        ///
        std::string const getString() const;
        ///
+       lyx::docstring const getDocString() const;
+       ///
        void printError(std::string const & message) const;
        ///
        void printTable(std::ostream & os);
@@ -56,8 +65,9 @@ public:
        void pushToken(std::string const &);
        /// fb_ is only used to open files, the stream is accessed through is.
        std::filebuf fb_;
+
        /// gz_ is only used to open files, the stream is accessed through is.
-       gz::gzstreambuf gz_;
+       io::filtering_istreambuf gz_;
 
        /// the stream that we use.
        std::istream is;