#include "lyxlex.h"
-#ifdef USE_COMPRESSION
-# include "support/gzstream.h"
-#endif
+#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>
+
+namespace lyx {
+
///
class LyXLex::Pimpl : boost::noncopyable {
public:
///
std::string const getString() const;
///
+ docstring const getDocString() const;
+ ///
void printError(std::string const & message) const;
///
void printTable(std::ostream & os);
/// 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;
///
std::stack<pushed_table> pushed;
};
+
+} // namespace lyx
+
#endif