X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxlex_pimpl.h;h=a5cb4a9d78e9e3ccf908cf9c643374386905d289;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=79f4393acef51621bf74b71f86cf0513b947fc12;hpb=984a123af39f99d3e5db645312054dd67a8eee8e;p=lyx.git diff --git a/src/lyxlex_pimpl.h b/src/lyxlex_pimpl.h index 79f4393ace..a5cb4a9d78 100644 --- a/src/lyxlex_pimpl.h +++ b/src/lyxlex_pimpl.h @@ -14,9 +14,12 @@ #include "lyxlex.h" -#ifdef USE_COMPRESSION -# include "support/gzstream.h" -#endif +#include "support/types.h" + +# include +# include +# include +namespace io = boost::iostreams; #include @@ -25,6 +28,9 @@ #include #include + +namespace lyx { + /// class LyXLex::Pimpl : boost::noncopyable { public: @@ -33,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); @@ -61,10 +69,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; @@ -75,7 +81,7 @@ public: /// int no_items; /// - std::vector buff; + std::string buff; /// int status; /// @@ -104,4 +110,7 @@ private: /// std::stack pushed; }; + +} // namespace lyx + #endif