2002-08-27 10:14:56 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-09-12 14:58:06 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file factory.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-08-27 10:14:56 +00:00
|
|
|
|
*
|
2002-09-12 14:58:06 +00:00
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
2002-08-27 10:14:56 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-09-12 14:58:06 +00:00
|
|
|
|
*/
|
2002-08-27 10:14:56 +00:00
|
|
|
|
|
|
|
|
|
#ifndef FACTORY_H
|
|
|
|
|
#define FACTORY_H
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
|
2004-01-15 17:34:44 +00:00
|
|
|
|
class Buffer;
|
|
|
|
|
class BufferView;
|
2002-08-27 10:14:56 +00:00
|
|
|
|
class FuncRequest;
|
2007-04-29 13:39:47 +00:00
|
|
|
|
class Inset;
|
2007-04-26 11:30:54 +00:00
|
|
|
|
class Lexer;
|
2004-01-15 17:34:44 +00:00
|
|
|
|
|
2002-08-27 10:14:56 +00:00
|
|
|
|
|
|
|
|
|
/// creates inset according to 'cmd'
|
2007-04-29 13:39:47 +00:00
|
|
|
|
Inset * createInset(BufferView * bv, FuncRequest const & cmd);
|
2002-08-27 10:14:56 +00:00
|
|
|
|
|
2003-03-12 11:52:23 +00:00
|
|
|
|
/// read inset from a file
|
2007-04-29 13:39:47 +00:00
|
|
|
|
Inset * readInset(Lexer & lex, Buffer const & buf);
|
2003-03-12 11:52:23 +00:00
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2003-03-12 11:52:23 +00:00
|
|
|
|
#endif // FACTORY_H
|