#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>
+
+namespace lyx {
+
///
-struct LyXLex::Pimpl : boost::noncopyable {
+class LyXLex::Pimpl : boost::noncopyable {
+public:
///
Pimpl(keyword_item * tab, int num);
///
std::string const getString() const;
///
+ docstring const getDocString() const;
+ ///
void printError(std::string const & message) const;
///
void printTable(std::ostream & os);
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;
///
void verifyTable();
///
- struct pushed_table {
+ class pushed_table {
+ public:
///
pushed_table()
: table_elem(0), table_siz(0) {}
///
std::stack<pushed_table> pushed;
};
+
+} // namespace lyx
+
#endif