On Friday 16 August 2002 4:12 pm, John Levon wrote: > On Fri, Aug 16, 2002 at 09:40:24AM +0200, Andre Poenitz wrote: > > Maybe I did not understand Angus' idea, but especially in connection with > > "LFUN_INTERPRET" this sounds as a big step towards scriptability... > > come on, how do I change the scale %age of an existing insetgraphics ? > how do I insert a graphics in the next paragraph with the same figure as > the one at the current cursor ?
You're barmy! LFUN_INSET_TO_LYXSERVER will result in this being output by the lyxserver: buffer BUFFER_ID inset INSET_ID \lyxformat 220 \begin_inset Graphics FormatVersion 1 filename time_40.eps display default size_type 0 rotateOrigin center lyxsize_type 0 \end_inset where INSET_ID is the ID of the next inset I assume its a graphics inset) after the current cursor position. Modify it as you desire (using your script) and then return it to the lyxserver with LFUN_INSET_MODIFY, whereup it will be passed by LyX::dispatch() to the approriate buffer, will be passed by Buffer::dispatch() to the appropriate inset and will be acted on by Inset::dispatch(). What's your problem? Angus