On Tuesday 10 December 2002 10:21 am, Andre Poenitz wrote: > On Tue, Dec 10, 2002 at 10:27:08AM +0000, Angus Leeming wrote: > > Well then, I see no alternative but to write a bunch of 1-line functions > > for each frontend (below). If they default to true, then you'll have to > > overload only a few in the respective frontends... > > > > frontends/Dialogs.h > > > > class Dialogs { > > virtual bool haveAboutlyx() { return true; } > > What about > > virtual bool haveDialog(string const & name) { return true; } > > which has the additional benefit that 'name' could be something coming from > some configurtion file and the header does not have to be touched so often?
Excellent idea. It's a major pain that adding a new dialog causes the re-compilation of the whole LyX tree. Angus