On Mon, Mar 19, 2007 at 11:03:18PM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "José" == José Matos <[EMAIL PROTECTED]> writes: > > José> On Monday 19 March 2007 5:08:48 pm Jean-Marc Lasgouttes wrote: > >> Or have ProvidesNatbib and ProvidesNumNatbib (but the two should > >> be exclusive). In the future, the idea is to move to something like > >> Provides "foo" where "foo" is an arbitrary feature. It would have > >> been good to do that before 1.5, actually. > > José> What needs to be done? > > Currently we have an enum in lyxtextclass.h: > > /// Packages that are already loaded by the class > enum Provides { > /// > nothing = 0, > /// > amsmath = 1, > /// > makeidx = 2, > /// > url = 4, > /// > natbib = 8 > }; > > The idea is to replace it with a std::set<string> and change > LyXTextClass::provides() accordingly. The rest is purely mechanical > (replace enum by string). It could be possible to simplify further the > code, but it is not needed now (and may be more dangerous) > > Then layout2layout will need to update "ProvidesUrl 1" to "Provides > url". > > The result will be the we can specify for any feature that LyX knows > about that there is no need to bother.
+1 Very good idea. And we need "Provides Babel" at least for EGS. - Martin