]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex_pimpl.h
* remove various xforms relicts, in particular:
[lyx.git] / src / lyxlex_pimpl.h
index 797605dc08f0002405a9e57789ea7509c4282f66..1a9a06c89c8f047fd74ff9533157846c06437c65 100644 (file)
 
 #include "lyxlex.h"
 
-#ifdef USE_COMPRESSION
-# include "support/gzstream.h"
-#endif
+# 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>
@@ -60,10 +62,8 @@ public:
        /// fb_ is only used to open files, the stream is accessed through is.
        std::filebuf fb_;
 
-#ifdef USE_COMPRESSION
        /// gz_ is only used to open files, the stream is accessed through is.
-       gz::gzstreambuf gz_;
-#endif
+       io::filtering_istreambuf gz_;
 
        /// the stream that we use.
        std::istream is;