Small step to solving 'impossible to insert some insets' problem

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8077 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2003-11-11 13:59:39 +00:00
parent faa37a30d4
commit b171a9b6fb
3 changed files with 25 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2003-11-11 Martin Vermeer <martin.vermeer@hut.fi>
* text3.C:
* factory.C: Small step to solving 'unable to insert some insets'
problem
2003-11-11 Alfredo Braunstein <abraunst@lyx.org>
* cursor.[Ch] (updatePos): new function for updating the y

View File

@ -278,6 +278,19 @@ InsetOld * createInset(FuncRequest const & cmd)
}
}
case LFUN_INSERT_LABEL: {
InsetCommandParams icp;
InsetCommandMailer::string2params(cmd.argument, icp);
return new InsetLabel(icp);
}
case LFUN_URL:
case LFUN_HTMLURL: {
InsetCommandParams icp;
InsetCommandMailer::string2params(cmd.argument, icp);
return new InsetUrl(icp);
}
case LFUN_SPACE_INSERT: {
string const name = cmd.argument;
if (name == "normal")

View File

@ -1488,15 +1488,17 @@ DispatchResult LyXText::dispatch(FuncRequest const & cmd)
break;
}
case LFUN_HTMLURL: {
InsetCommandParams p("htmlurl");
case LFUN_URL: {
doInsertInset(this, cmd, true, false);
InsetCommandParams p("url");
string const data = InsetCommandMailer::params2string("url", p);
bv->owner()->getDialogs().show("url", data, 0);
break;
}
case LFUN_URL: {
InsetCommandParams p("url");
case LFUN_HTMLURL: {
doInsertInset(this, cmd, true, false);
InsetCommandParams p("htmlurl");
string const data = InsetCommandMailer::params2string("url", p);
bv->owner()->getDialogs().show("url", data, 0);
break;