John Levon wrote:
> I can't see this changing any time soon to be honest - Jug ?

Well this would be really easy one would have to call

setUndo(bv, Undo::EDIT, bv->getLyXText()->cursor.par(),
         bv->getLyXText()->cursor.par()->next());

somewhere where the parameters are changed and I have access to bv.

One question however:

 > void ControlGraphics::applyParamsToInset()
 > {
 >         // Set the parameters in the inset, it also returns true if 
the new
 >         // parameters are different from what was in the inset already.
 >         bool changed = inset()->setParams(params(), 
lv_.buffer()->filePath());
 >        // Tell LyX we've got a change, and mark the document dirty,
 >        // if it changed.
 >        lv_.view()->updateInset(inset(), changed);
 > }

Why is the updateInset not called inside inset()->setParams(...) and
when I don't change anything in the insetparams why do I have to call
a updateInset?

BTW: This seems to be the place to call the setUndo :)

           Jug

-- 
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Mitterstrich 151/A      Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39050 Steinegg        Web:     http://www.lyx.org/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Reply via email to