X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxlex_pimpl.h;h=a5cb4a9d78e9e3ccf908cf9c643374386905d289;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=d95367f75d0e6bb91cae082c32fb1bcbd3feec40;hpb=0de22c86f8b444caf8d66f597ef7c8b538c99c22;p=lyx.git diff --git a/src/lyxlex_pimpl.h b/src/lyxlex_pimpl.h index d95367f75d..a5cb4a9d78 100644 --- a/src/lyxlex_pimpl.h +++ b/src/lyxlex_pimpl.h @@ -14,16 +14,23 @@ #include "lyxlex.h" -#ifdef USE_COMPRESSION -# include "support/gzstream.h" -#endif +#include "support/types.h" + +# include +# include +# include +namespace io = boost::iostreams; #include +#include #include #include #include + +namespace lyx { + /// class LyXLex::Pimpl : boost::noncopyable { public: @@ -32,6 +39,8 @@ public: /// std::string const getString() const; /// + docstring const getDocString() const; + /// void printError(std::string const & message) const; /// void printTable(std::ostream & os); @@ -60,10 +69,8 @@ public: /// fb_ is only used to open files, the stream is accessed through is. std::filebuf fb_; -#ifdef HAVE_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; @@ -74,7 +81,7 @@ public: /// int no_items; /// - std::vector buff; + std::string buff; /// int status; /// @@ -103,4 +110,7 @@ private: /// std::stack pushed; }; + +} // namespace lyx + #endif