On 04-Jul-2000 Lars Gullik Bjønnes wrote:
> Juergen Vigna <[EMAIL PROTECTED]> writes:
>
>| Well what about:
>|
>| owner->GetDialogs()->showCitation(argument)
>|
>| but IMO this should be:
>|
>| owner->GetDialogs()->createCitation(argument)
>
> But still the dialog code should not be allowed to insert anything
> into the docment. this is the separation of gui and kernel playing in.
>
Well then you probably need a 'this' argument in the createCitation(...)
call, something like:
owner->GetDialogs()->createCitation(this, argument)
and then if you press OK (or Insert) in the create-citation dialog you could
call
lyxfunc->Dispatch(INSERT_CITATION, new_argument)
in which you then do:
case INSERT_CITATION:
InsetCitation * inset = new InsetCitation(argument);
insertInset(inset);
break;
the good thing here is that if you know the format you can insert a citation
inset also without dialog!
Jürgen
--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED]
Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450296
I-39100 Bozen Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
The Ranger isn't gonna like it, Yogi.