X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxlex_pimpl.h;h=a5cb4a9d78e9e3ccf908cf9c643374386905d289;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=e449c8b08ec5b34695489b15c11e846ca1546871;hpb=5cf8376ef7cd5f1132c5f9ebb66db59d06bbb64b;p=lyx.git diff --git a/src/lyxlex_pimpl.h b/src/lyxlex_pimpl.h index e449c8b08e..a5cb4a9d78 100644 --- a/src/lyxlex_pimpl.h +++ b/src/lyxlex_pimpl.h @@ -14,12 +14,12 @@ #include "lyxlex.h" -#ifdef USE_COMPRESSION +#include "support/types.h" + # include # include # include namespace io = boost::iostreams; -#endif #include @@ -28,6 +28,9 @@ namespace io = boost::iostreams; #include #include + +namespace lyx { + /// class LyXLex::Pimpl : boost::noncopyable { public: @@ -36,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); @@ -64,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. io::filtering_istreambuf gz_; -#endif /// the stream that we use. std::istream is; @@ -78,7 +81,7 @@ public: /// int no_items; /// - std::vector buff; + std::string buff; /// int status; /// @@ -107,4 +110,7 @@ private: /// std::stack pushed; }; + +} // namespace lyx + #endif