Activate "use geometry" button if using custom paper size/margin.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1593 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-02-21 14:44:46 +00:00
parent 29d1ff39b5
commit 9715b1d974
2 changed files with 17 additions and 13 deletions

View File

@ -1,3 +1,8 @@
2001-02-21 Dekel Tsur <dekelts@tau.ac.il>
* FormDocument.C (checkMarginValues): Activate "use geometry" button
if using custom paper size/margin.
2001-02-21 Allan Rae <rae@lyx.org> 2001-02-21 Allan Rae <rae@lyx.org>
* forms/form_preferences.fd: larger, bold font for outer tabfolder * forms/form_preferences.fd: larger, bold font for outer tabfolder

View File

@ -835,19 +835,18 @@ void FormDocument::checkReadOnly()
void FormDocument::checkMarginValues() void FormDocument::checkMarginValues()
{ {
#if 0 bool const not_empty =
int const allEmpty = (!strlen(fl_get_input(paper_->input_top_margin)) && strlen(fl_get_input(paper_->input_top_margin)) ||
!strlen(fl_get_input(paper_->input_bottom_margin)) && strlen(fl_get_input(paper_->input_bottom_margin)) ||
!strlen(fl_get_input(paper_->input_left_margin)) && strlen(fl_get_input(paper_->input_left_margin)) ||
!strlen(fl_get_input(paper_->input_right_margin)) && strlen(fl_get_input(paper_->input_right_margin)) ||
!strlen(fl_get_input(paper_->input_head_height)) && strlen(fl_get_input(paper_->input_head_height)) ||
!strlen(fl_get_input(paper_->input_head_sep)) && strlen(fl_get_input(paper_->input_head_sep)) ||
!strlen(fl_get_input(paper_->input_foot_skip)) && strlen(fl_get_input(paper_->input_foot_skip)) ||
!strlen(fl_get_input(paper_->input_custom_width)) && strlen(fl_get_input(paper_->input_custom_width)) ||
!strlen(fl_get_input(paper_->input_custom_height))); strlen(fl_get_input(paper_->input_custom_height));
if (!allEmpty) if (not_empty)
fl_set_button(paper_->push_use_geometry, 1); fl_set_button(paper_->push_use_geometry, 1);
#endif
} }