Angus Leeming wrote:
> On Monday 10 September 2001 14:13, Juergen Spitzmueller wrote:
> > Err... <sigh>... while we are at this:
> > In Layout > Document > Extras, the "Author-Year/Numerical"-Choice
> > should only be enabled if the Natbib-Checkbox is chosen.
>
> Feel free ;-)
Well said...
I have no idea how to do this, but I tried it anyway. I had partial
success, but I don't know how to get the changes without closing and
reopening the dialog every time. So I finally gave up :-(
Juergen
> Angus
Index: src/frontends/xforms/FormDocument.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/FormDocument.C,v
retrieving revision 1.57
diff -u -r1.57 FormDocument.C
--- src/frontends/xforms/FormDocument.C 2001/09/06 12:42:47 1.57
+++ src/frontends/xforms/FormDocument.C 2001/09/10 19:20:51
@@ -721,6 +721,8 @@
fl_set_button(options_->check_use_natbib, params.use_natbib);
fl_set_choice(options_->choice_citation_format,
int(params.use_numerical_citations)+1);
+ setEnabled(options_->choice_citation_format,
+ (params.use_natbib == 1 ));
fl_set_counter_value(options_->slider_secnumdepth,
params.secnumdepth);
fl_set_counter_value(options_->slider_tocdepth, params.tocdepth);
if (!params.float_placement.empty())