Consider the case where there is not any layout name.
[lyx.git] / src / factory.h
blob0c7ec876009fca605b3b09b5aab217bc7cdaecc3
1 // -*- C++ -*-
2 /**
3 * \file factory.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef FACTORY_H
13 #define FACTORY_H
15 class Buffer;
16 class BufferView;
17 class FuncRequest;
18 class InsetBase;
19 class LyXLex;
22 /// creates inset according to 'cmd'
23 InsetBase * createInset(BufferView * bv, FuncRequest const & cmd);
25 /// read inset from a file
26 InsetBase * readInset(LyXLex & lex, Buffer const & buf);
28 #endif // FACTORY_H