- /// fb__ is only used to open files, the stream is accessed through is
- std::filebuf fb__;
- /// the stream that we use.
- std::istream is;
- ///
- string name;
- ///
- int lineno;
- ///
- keyword_item * table;
- ///
- int no_items;
- ///
- char buff[LEX_MAX_BUFF];
- ///
- pushed_table * pushed;
- ///
- int search_kw(char const * const) const;
- ///
- short status;
+ /// extract string
+ LyXLex & operator>>(std::string &);
+ /// extract docstring
+ LyXLex & operator>>(docstring &);
+ /// extract double
+ LyXLex & operator>>(double &);
+ /// extract integer
+ LyXLex & operator>>(int &);
+ /// extract unsigned integer
+ LyXLex & operator>>(unsigned int &);
+ /// extract bool
+ LyXLex & operator>>(bool &);
+
+ /// Quotes a string so that reading it again with LyXLex::next(true)
+ /// gets the original string
+ static std::string const quoteString(std::string const &);
+
+private:
+ class Pimpl;
+ ///
+ Pimpl * pimpl_;