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>
25 struct LyXLex::Pimpl : boost::noncopyable {
27 Pimpl(keyword_item * tab, int num);
29 string const getString() const;
31 void printError(string const & message) const;
33 void printTable(std::ostream & os);
35 void pushTable(keyword_item * tab, int num);
39 bool setFile(string const & filename);
41 void setStream(std::istream & i);
43 void setCommentChar(char c);
45 bool next(bool esc = false);
47 int search_kw(char const * const tag) const;
55 void pushToken(string const &);
56 /// fb__ is only used to open files, the stream is accessed through is.
58 /// gz__ is only used to open files, the stream is accessed through is.
61 /// the stream that we use.
70 std::vector<char> buff;
86 : table_elem(0), table_siz(0) {}
88 pushed_table(keyword_item * ki, int siz)
89 : table_elem(ki), table_siz(siz) {}
91 keyword_item * table_elem;
96 std::stack<pushed_table> pushed;