Angus Leeming wrote: > > > my question was: why to check, when the user cannot enter > > (at this time) wrong placements? > > > > it's not my problem to do a check, but why? > > Ok, understood. We should check EVERYTHING in all dialogs. Why? Because the ^^^^^^^^^^ I don't know ...
> GUIs are effectively external to LyX. They could pass any old rubbish back, you don't trust programmers ... ;-) > so we really should check that they haven't before the changes are applied. > Lars would like this done by the LyX core and I agree. This has > traditionally meant somewhere after LyXFunc::dispatch(), but we might > consider that the controllers have become sufficiently well-established that > they can now be considered a core part of LyX. In which case, the right place > to do the check IS in the controllers (encapsulation, blah, blah). Remember > that the controller-view was a suggested way of doing things, not the only > way. Until now, we have't insisted that GUIs use it. Perhaps we should? Understood. Herbert