*
* \author André Pönitz
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#ifndef FACTORY_H
#define FACTORY_H
-class Inset;
+class Buffer;
+class BufferView;
class FuncRequest;
+class InsetBase;
class LyXLex;
-class Buffer;
+
/// creates inset according to 'cmd'
-Inset * createInset(FuncRequest const & cmd);
+InsetBase * createInset(BufferView * bv, FuncRequest const & cmd);
/// read inset from a file
-Inset * readInset(LyXLex & lex, Buffer const & buf);
+InsetBase * readInset(LyXLex & lex, Buffer const & buf);
#endif // FACTORY_H