*
* \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 InsetOld;
+namespace lyx {
+
+class Buffer;
+class BufferView;
class FuncRequest;
+class InsetBase;
class LyXLex;
-class Buffer;
+
/// creates inset according to 'cmd'
-InsetOld * createInset(FuncRequest const & cmd);
+InsetBase * createInset(BufferView * bv, FuncRequest const & cmd);
/// read inset from a file
-InsetOld * readInset(LyXLex & lex, Buffer const & buf);
+InsetBase * readInset(LyXLex & lex, Buffer const & buf);
+
+
+} // namespace lyx
#endif // FACTORY_H