4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
12 #ifndef LYXLEX_PIMPL_H
13 #define LYXLEX_PIMPL_H
17 #include "support/gzstream.h"
19 #include <boost/utility.hpp>
26 struct LyXLex::Pimpl : boost::noncopyable {
28 Pimpl(keyword_item * tab, int num);
30 string const getString() const;
32 void printError(string const & message) const;
34 void printTable(std::ostream & os);
36 void pushTable(keyword_item * tab, int num);
40 bool setFile(string const & filename);
42 void setStream(std::istream & i);
44 void setCommentChar(char c);
46 bool next(bool esc = false);
48 int search_kw(char const * const tag) const;
56 void pushToken(string const &);
57 /// fb__ is only used to open files, the stream is accessed through is.
59 /// gz__ is only used to open files, the stream is accessed through is.
62 /// the stream that we use.
71 std::vector<char> buff;
87 : table_elem(0), table_siz(0) {}
89 pushed_table(keyword_item * ki, int siz)
90 : table_elem(ki), table_siz(siz) {}
92 keyword_item * table_elem;
97 std::stack<pushed_table> pushed;