mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 16:31:13 +00:00
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:
parent
faa37a30d4
commit
b171a9b6fb
@ -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
|
||||
|
@ -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")
|
||||
|
10
src/text3.C
10
src/text3.C
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user