>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus> Communicating info to the GUI frontend
Angus> =============================== We can tell LyX to open or
Angus> close the dialog for an existing inset: LFUN_INSET_DIALOG_OPEN
Angus> LFUN_INSET_DIALOG_CLOSE

Angus> Note that we need just two LFUNs here. LyX will find the next
Angus> inset following the current cursor position and apply the LFUNs
Angus> to it.

Angus> This is similar to the toggle scheme that JMarc and I played
Angus> with some time ago (and that I'm going to resurrect). Indeed I
Angus> think we should also have LFUN_INSET_DIALOG_TOGGLE that invokes
Angus> the two LFUNs above.

THis should be done indeed.

Angus> We can tell LyX to open an inset dialog when no inset exists,
Angus> the idea being that the user can then subsequently create an
Angus> inset by apply()ing the dialog's parameters. We'll need LFUNs
Angus> for each inset type: LFUN_BIBTEX_DIALOG_OPEN
Angus> LFUN_CITATION_DIALOG_OPEN LFUN_TABULAR_DIALOG_OPEN

If the inset did autoregister themselves with a name, we could reduce
this to only one LFUN (and get rid of LFUN_CODE altogether).

JMarc

Reply via email to