#include "insets/InsetSpace.h"
#include "insets/InsetTabular.h"
#include "insets/InsetTOC.h"
-#include "insets/InsetUrl.h"
+#include "insets/InsetHyperlink.h"
#include "insets/InsetVSpace.h"
#include "insets/InsetWrap.h"
case LFUN_INFO_INSERT:
return new InsetInfo(params, to_utf8(cmd.argument()));
#if 0
- case LFUN_LIST_INSERT:
- return new InsetList;
-
case LFUN_THEOREM_INSERT:
return new InsetTheorem;
#endif
inset->setParams(igp);
return inset.release();
+ } else if (name == "href") {
+ InsetCommandParams icp(name);
+ InsetCommandMailer::string2params(name, to_utf8(cmd.argument()),
+ icp);
+ return new InsetHyperlink(icp);
+
} else if (name == "include") {
InsetCommandParams iip(name);
InsetIncludeMailer::string2params(to_utf8(cmd.argument()), iip);
icp);
return new InsetTOC(icp);
- } else if (name == "url") {
- InsetCommandParams icp(name);
- InsetCommandMailer::string2params(name, to_utf8(cmd.argument()),
- icp);
- return new InsetUrl(icp);
-
} else if (name == "vspace") {
VSpace vspace;
InsetVSpaceMailer::string2params(to_utf8(cmd.argument()), vspace);
inset.reset(new InsetBibtex(inscmd));
} else if (insetType == "index") {
inset.reset(new InsetIndex(buf.params()));
- } else if (insetType == "nomenclature") {
- inset.reset(new InsetNomencl(inscmd));
+ } else if (insetType == "href") {
+ inset.reset(new InsetHyperlink(inscmd));
} else if (insetType == "include") {
inset.reset(new InsetInclude(inscmd));
} else if (insetType == "label") {
inset.reset(new InsetLabel(inscmd));
- } else if (insetType == "url") {
- inset.reset(new InsetUrl(inscmd));
+ } else if (insetType == "nomenclature") {
+ inset.reset(new InsetNomencl(inscmd));
} else if (insetType == "ref") {
if (!inscmd["name"].empty()
|| !inscmd["reference"].empty()) {
string tmptok = lex.getString();
inset.reset(new InsetWrap(buf.params(), tmptok));
#if 0
- } else if (tmptok == "List") {
- inset.reset(new InsetList);
} else if (tmptok == "Theorem") {
inset.reset(new InsetList);
#endif