#include "insets/insetminipage.h"
#include "insets/insetnote.h"
#include "insets/insetoptarg.h"
-#include "insets/insetparent.h"
#include "insets/insetref.h"
#include "insets/insetspace.h"
#include "insets/insettabular.h"
#include <cstdio>
+using namespace lyx::support;
+
using std::endl;
Inset * createInset(FuncRequest const & cmd)
case LFUN_TOC_INSERT:
return new InsetTOC(InsetCommandParams("tableofcontents"));
- case LFUN_PARENTINSERT:
- return new InsetParent(
- InsetCommandParams("lyxparent", cmd.argument), *bv->buffer());
-
case LFUN_ENVIRONMENT_INSERT:
return new InsetEnvironment(params, cmd.argument);
InsetExternal::Params iep;
InsetExternalMailer::string2params(cmd.argument, iep);
InsetExternal * inset = new InsetExternal;
- inset->setFromParams(iep);
+ string const fpath = cmd.view()->buffer()->filePath();
+ inset->setParams(iep, fpath);
return inset;
} else if (name == "graphics") {
InsetGraphicsParams igp;
InsetGraphicsMailer::string2params(cmd.argument, igp);
InsetGraphics * inset = new InsetGraphics;
- string const fpath = cmd.view()->buffer()->filePath();
- inset->setParams(igp, fpath);
+ inset->setParams(igp);
return inset;
} else if (name == "include") {
} else if (cmdName == "bibitem") {
lex.printError("Wrong place for bibitem");
inset = new InsetBibitem(inscmd);
- } else if (cmdName == "BibTeX") {
+ } else if (cmdName == "bibtex") {
inset = new InsetBibtex(inscmd);
} else if (cmdName == "index") {
inset = new InsetIndex(inscmd);
inset = new InsetFloatList("table");
} else if (cmdName == "printindex") {
inset = new InsetPrintIndex(inscmd);
- } else if (cmdName == "lyxparent") {
- inset = new InsetParent(inscmd, buf);
}
} else {
if (tmptok == "Quotes") {