class Buffer;
class FuncRequest;
class Inset;
-class Lexer;
+namespace support { class Lexer; }
/// creates inset according to 'cmd'
-Inset * createInset(Buffer & buf, FuncRequest const & cmd);
+Inset * createInset(Buffer * buf, FuncRequest const & cmd);
/// read inset from a file
-Inset * readInset(Lexer & lex, Buffer const & buf);
+Inset * readInset(support::Lexer & lex, Buffer * buf);
} // namespace lyx