*José Abílio de Oliveira Matos writes:
 |  Such as it is now inseturl is only available for edition inside a
 | linuxdoc, do you want inseturl to be available from any lyx
 | document?

Yes.

 | I know the problem of edition, that was my first xforms code
 | contact...
 | 
 | I was thinking to make UrlCB and HtmlUrlCB in lyx_cb to have an

We should get rid of UrlCB and HtmlCB and move that code into the
inset.

 | optional argument, of type *inseturl. The default value would be
 | NULL. If the argument is NULL then read the values and then create
 | a new inset, if the argument is not NULL then if the changes are
 | accepted update that inset.

yes.

 | This implies 2 options: 1) to have a new parameter in class
 | FD_form_url, the pointer to the url inset, or NULL if a new inset.
 | 2) use a variable with scope local to lyx_cb to carry that
 | information.

neither I think.

we could use code like this in lyxfunc instead:

owner->currentBuffer()->insertInset(inset, arg1, arg2, type)
inset->edit();

 |  Thanks, that was my idea. If url.sty is present then use it.

We currently use it even if we don't have it...
(what should the fallback be?)

 |  Agreed, but are those the only objections?

basicly yes.

        Lgb

Reply via email to